Hi Deepak,
Thanks for your reply. But i want do this as part of the calculated member
with in the Analysis Manager.
I used the same format string in my calculated member and it does not work.
But your's works. The problem is i cannot use the the with clause in the
calculated member with in the Anlaysis Manager.
Please help. This is the last thing in my model.
MINE:
-------
format(IIF([Measures].[Units Sold]<> 0,
[Measures].[Selling Price]/[Measures].[Units Sold],0),
"##.00;(##.00);0.00;#.00")
YOURS:
---------
With Member [Measures].[Format0] as
'IIF([Measures].[Unit Sales]<> 0,
[Measures].[Unit Sales],0)',
FORMAT_STRING = '##.00;(##.00);0.00;#.00'
Select {[Measures].[Unit Sales],
[Measures].[Format0]} on columns,
[Time].[Month].Members on rows
from Sales
"Deepak Puri" wrote:
Quote:
Here's a sample query for Foodmart:
With Member [Measures].[Format0] as
'IIF([Measures].[Unit Sales]<> 0,
[Measures].[Unit Sales],0)',
FORMAT_STRING = '##.00;(##.00);0.00;#.00'
Select {[Measures].[Unit Sales],
[Measures].[Format0]} on columns,
[Time].[Month].Members on rows
from Sales
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com *** |