Forum Discussion
Problem in Calculating the Subject and Comparison Period Revenue with multiple currencies
Hi Anonymous ,
According to your description, you could create Comparison_Period_Revenue like the way to create Subject_Period_Revenue( replace 'STAY DATE'[Calendar Date] with 'Compare Date'[Compare_Date] ).
But i am unable to calculate the Comparison Period Revenue ( Revenue * Exchange Rate)
Is your result wrong or is your DAX not working? I am not very clear about it.
Thank you so much for the reply.
Following is the DAX i created for the Comparison Period Revenue.
Compare Revenue = VAR MYRATE= CALCULATE(FIRSTNONBLANK('CONVERSION CURRENCY'[Exchange Rate Amount],1), ALLSELECTED('COMPARE DATE'[Calendar Date]),
FILTER('CONVERSION CURRENCY','CONVERSION CURRENCY'[Currency Code]=SELECTEDVALUE('CONVERSION CURRENCY'[Currency Code])))
RETURN (CALCULATE(SUM(STAY[Stay Room Revenue]),ALL('STAY DATE'[Calendar Date]),USERELATIONSHIP(STAY[Calendar Date Copy],'COMPARE DATE'[Calendar Date])))*MYRATE
But it is giving me the subject period exchange rate* Comparison Period Revenue.