Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Ssas 2008 r2 - SUM Sales problem with specific ROLE

$
0
0
Hi to all.I use SSAS 2008 R2.I have a SALES Cube.In this cube i have (scenario simple to understand what i cannot do )Dimension STORES (about 100) Dimension CUSTOMERS Dimension CHIEFSTORE (A person who is the boss of the store).Dimension Calendar (Dimension Time)Measures [Sales Amount]Policy of company says that a CHIEFSTORE can view only its own store and not all stores.and that a CUSTOMER can buy in every stores.So for each CHIEFSTORE i applied a specific role to permit to view only data about its store.PROBLEM:If i do an analysis about Total Sales , no problem , every CHIEFSTORE view only sales of its own store,BECAUSE IN ITS ROLE I Specified that he can view only its own store data[b]If i do (that is my problem) an analisys about A specific CUSTOMER [/b], i'd like to view alla sales in all stores...even if this customer buys something in stores different form its own store set in the role.I'd like to have this CUSTOMER STORE SALES AMOUNT [b]TOTAL SALES AMOUNT OF ALL STORES[/b]James Rome 300 [b]15670[/b]15670 EURO are the sum sold to this customer in Rome and in all other stores...So mantaing the role of the users , i tried to create a new calculted measure to have this :[b]IIF([Measures].[Sales Amount] > 0, SUM (( [Customer].currentmember,[Stores].[Stores].[All Stores]), [Measures].[Sales Amount] ), Null)[/b]But i obtain the same value of measures SALES AMOUNT.;-)Is it possible to sum sales of all stores , without considering the filter in the role of the CHIEFSTORE ???Regards in advance.

Viewing all articles
Browse latest Browse all 1341

Trending Articles