Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shantanu97
Helper I
Helper I

DAX calculations for converting currencies to USD is not working??

I write a simple dax column for converting GBP,AUD to USD. Final Currency in AUD.

 

Value USD = SWITCH(Related('OLAP Organisation'[BaseCurrency]),
"USD",'OLAP CUBE_Finance_WB'[Amount],
"GBP",'OLAP CUBE_Finance_WB'[Amount]*RELATED('Exchange Rates'[Rate to GBP/USD]),
"AUD",'OLAP CUBE_Finance_WB'[Amount]*RELATED('Exchange Rates'[Rate to AUD/USD])
)
There is no error in DAX Calculations but when I put in a table it is showing nothing???
 
@Anonymous 
 
 
 
1 ACCEPTED SOLUTION

@shantanu97 , please find the file after signature 

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@shantanu97 , related is not working across two tables(A-B-C). I checked it using direct join between two tables by creating a date in 'OLAP CUBE_Finance_WB' and it worked

@amitchandak I didnot understand. Can you send me the file so I can understand better?

@shantanu97 , You are joining to date table and from date to rate table. Seem like related is limited to only one table. 

@amitchandak I didn't understand. Can you elaborate more on that???

 

shantanu97_0-1596180526807.png

I try to do this but it is not working. It will give error.

shantanu97_1-1596180576904.png

 

@shantanu97 , please find the file after signature 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.