hey eb
i have a long list of calculated measures. format of each measure is either:
- percentage measures "#,##0.00%;-#,##0.00%"
- days measures "#,##0D;-#,##0D"
- currency measures "$#,##0.00M;$-#,##0.00M" OR "€#,##0.00M;€-#,##0.00M" (depending on current member of currencies dimension)
i have written a scope to handles this task:
Scope ({[Currency Dim].[CURRENCY].[USD],[Currency Dim].[CURRENCY].[EUR]});
FORMAT_STRING(this) = case
when [Measures].currentmember is [A] or [Measures].currentmember is [B] then "#,##0.00%;-#,##0.00%"
when [Measures].currentmember is [C] or [Measures].currentmember is [D] then "#,##0D;-#,##0D"
else iif([Currency Dim].currentmember is [Currency Dim].[CURRENCY].[USD],"$#,##0.00M;$-#,##0.00M","€#,##0.00M;€-#,##0.00M")
end;
end scope;
This saves alot of FORMAT_STRING clauses in the defenition of each calculated measure.
Question - can taking care of measures format in scope hinder queries perforemance?
TIA
Rea