dbTalk Databases Forums  

ValidMeasure() function behavior

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


Discuss ValidMeasure() function behavior in the microsoft.public.sqlserver.olap forum.



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

Default ValidMeasure() function behavior - 09-01-2003 , 07:15 AM







Hello All!



I have reached a problem while using this function.



Details:

I have two cubes Sales_USD (dimensions Goods, Time, Country and measure
Sale) and CurrencyRate (dimensions Currency, Time and measure Rate).

I made a calculated member Sales_UAH to get Sales in local currency as
Sum({Descendants([Time].CurrentMember, [Month])}, Sale *
ValidMeasure(Currency.UA)) and got nothing as a result!



Am I doing something wrong?


--
Posted via http://dbforums.com

Reply With Quote
  #2  
Old   
Chris Webb [MS]
 
Posts: n/a

Default Re: ValidMeasure() function behavior - 09-01-2003 , 08:47 AM






I think the problem could be that you're not explicitly stating that you
want to multiply Sale * Rate - in the VALIDMEASURE function you only specify
the Currency dimension, so it would return the default measure in the
virtual cube, which would probably be Sale. Try something like:

Sum({Descendants([Time].CurrentMember, [Month])},
Validmeasure(Measures.Sale) * ValidMeasure((Measures.Rate, Currency.UA)))

HTH,

Chris

--

Chris Webb
Consultant, Microsoft Services Switzerland
(to email: remove 'online.' from the address this was posted with)

Microsoft Services Switzerland and our partners can help you with your
Analysis Services project!

Disclaimer: This posting is provided 'AS IS' with no warranties, and confers
no rights.

"Gvynt" <member37608 (AT) dbforums (DOT) com> wrote

Quote:
Hello All!



I have reached a problem while using this function.



Details:

I have two cubes Sales_USD (dimensions Goods, Time, Country and measure
Sale) and CurrencyRate (dimensions Currency, Time and measure Rate).

I made a calculated member Sales_UAH to get Sales in local currency as
Sum({Descendants([Time].CurrentMember, [Month])}, Sale *
ValidMeasure(Currency.UA)) and got nothing as a result!



Am I doing something wrong?


--
Posted via http://dbforums.com



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.