Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Sum of two measures as one measure in final displa

Author  Topic 

learntsql

524 Posts

Posted - 2014-02-28 : 08:32:22
Hi All,

I have 2 fact tables(created from datebase views) in my design.
Two fact tables have the same measure say "Sales" but each fact (view) gets its specific sales
for example fact1 contains Offline sales and fact2 contains Online sales.
but in cube finally i have to show only one measure called "Sales" and this should contain the sum of two fact tables Sales measure sum.

Can someone please guide me how to do that.
Thanks in advance.

learntsql

524 Posts

Posted - 2014-03-01 : 04:19:22
Hi all,

any idea please!!!.

TIA.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2014-03-01 : 11:46:19
quote:
Originally posted by learntsql

Hi All,

I have 2 fact tables(created from datebase views) in my design.
Two fact tables have the same measure say "Sales" but each fact (view) gets its specific sales
for example fact1 contains Offline sales and fact2 contains Online sales.
but in cube finally i have to show only one measure called "Sales" and this should contain the sum of two fact tables Sales measure sum.

Can someone please guide me how to do that.
Thanks in advance.



Create a calculated measure for that adding both

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

learntsql

524 Posts

Posted - 2014-03-02 : 12:46:36
thanks Visakh...let me try...
much appreciated your help...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2014-03-03 : 04:25:32
no probs
let me know how you got on

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -