dbTalk Databases Forums  

MDX Help please - Bewildering

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss MDX Help please - Bewildering in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
KarenM
 
Posts: n/a

Default MDX Help please - Bewildering - 12-06-2005 , 08:29 PM






Each record in my fact table as a currency key and unit of measure key.

I have two measures in my COST cube - Amount and Qty.

In the fact table every record as a value for Amount & Qty and each
record as a value for
Amount currency like USD, EUR, or CAD and Qty as a unit of measure like
- EA, KG, KM,etc

All our users are asking me to do is provide a report that can show the
values like the
following:

8200 USD
9800 CAD

102.5 KG
1200 KM


I am bewildered I cannot do such a simple thing in analysis Services
the cube is the COST cube and I have Currency key and Unit key for unit
of measure. All I want is display the amount with the currency key
concatenated in Excel as well as on Web similarly the unit of measure.

For displaying Amount this is what I have done. I have created a new
calculated member called CAmount with the following MDX:

iif (
[Currency].currentmember ='CAD',
Format([Measures].[Amount],
"0.00" + " " + [Currency].Currentmember.name + " " ), NULL
)


But this somehow seems not to work some syntax errors.

All I want is the system for each of the currencies to set a value for
the display format using the approrpiate currency key so I can get the
display as above.

But this is driving me insane I cannot get such a simple scenario of
concatenating and displaying a measure and its associated Unit of
measure or currency.

I would greatly appreciate your help.

Thanks
Karen


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.