Tuesday, February 07, 2012 Signin Sign-up
Hi I am trying to calculate the remainder using mod(%) operator in a calculated member in SSAS. But it is throwing a parsing error. The formula i am trying to use is [Measures].[Working Time]%60 Please suggest a solution/workaround.
Hi
I am trying to calculate the remainder using mod(%) operator in a calculated member in SSAS. But it is throwing a parsing error.
The formula i am trying to use is [Measures].[Working Time]%60
Please suggest a solution/workaround.
The % operator doesn't exist in MDX. If you can't do it in the relational tables or the DSV, then use this:
(([Measures].[Working Time]/60) - int([Measures].[Working Time]/60)) * 60