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

Hiding calculated measures

$
0
0
Hi guys,in order to get around the seurity issues with not being able to deselect certain calculated measures for certain roles, I have created a dummy measure in the view from the DW.I then use a SCOPE statement to populate this measureDummy measure:SELECT DISTINCT CAST(0 AS REAL) AS [Vendor Contractor Cost by Month], CAST(0 AS REAL) AS [Payroll Contractor Cost by Month], CAST(0 AS REAL) AS [Full Time Employee Cost by Month], TimeByDayFROM Dim_Timethe SCOPE statementSCOPE ([Measures].[Full Time Employee Cost By Month]); THIS = ([Measures].[Actual Cost By Month], [Resource].[Resource Employee Type].[Full Time Employee]);END SCOPE; SCOPE ([Measures].[Payroll Contractor Cost By Month]); THIS = ([Measures].[Actual Cost By Month], [Resource].[Resource Employee Type].&[Payroll Contractor]);END SCOPE; SCOPE ([Measures].[Vendor Contractor Cost By Month]); THIS = ([Measures].[Actual Cost By Month],[Resource].[Resource Employee Type].&[Vendor Contractor] );END SCOPE; this works fine for User not in the restricted groupas soon as i test for a user in the restricted group, I get the error that the measure dont exist.I presume its looking for them, but they hidden.Any idea how to get around thisthanks guysIan

Viewing all articles
Browse latest Browse all 1341

Trending Articles