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
Anonymous
Not applicable

Create a measure that sums different currencies

Hello all,

 

I have a table with several values in different currencies (7 currencies in total).

 

How do I get the total sum of a HeadCount, considering the currency conversion?

Eg.: I would like to get the sum of all the values from the attached table in dollar.

 

Any idea?

 

SA_Budget

1 ACCEPTED SOLUTION

@Anonymous ,

 

You may use LOOKUPVALUE Function to add a calculated column in DAX.

http://community.powerbi.com/t5/Desktop/Excurr/m-p/361854#M163415

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, for your query, first i've performed "unpivot" transformation to dates column in "Arg_Orçado" table. After, i've created the relationship between "ID_moeda" and "currency" columns. Then i've created "DOLLAR" measure for aplied the exchange rate to the values.

 

unpivot.pngEXCHANGE.png

 

anyway, this is the pbix that i've worked:

 

EXCHANGE RATE

tarunsingla
Solution Sage
Solution Sage

Converting other currencies to USD is clear, but how is HeadCount dependent on Currency Conversion?

Or are you looking for the Sum of HeadCount for records that are in USD.

 

Regards,

Tarun

Anonymous
Not applicable

Really, my doubt is very vague. I will try to explain my situation better now.

 

I have a spreadsheet with several values budgeted of South America. There are 7 countries in total (Brz, Arg, Chi, Col, Per, Ecu, Uru). The budgeted amounts are in the local currencies of the respective country. That is, 7 different currencies.

 

My idea is to create 5 tabs:

South America

Brz 

Arg, Chi, Uru

Col, Ecu

Per

 

To get the sum of the total budgeted for HeadCount, I created a measure using CALCULATE and SUMX (after I unpivot the columns):

 

Total Budget = CALCULATE(SUMX('SA_Budget','SA_Budget'[Value]))
But this formula does not consider the currency conversion. I am adding Argentine Peso with Brazilian Real, with Chilean Peso, etc...
 
In the tab "South America", I want to show the Total Budget Amount (Brz+Arg+Chi+Col+Per+Ecu+Uru) in dollar.
In the Brz tab, I want to show only the Brazil Total Budget Amout (in reais).
And so on...
 
My spreadsheet is basically this: SA_Budget_Currency
 
Is it clearer now? I started using PowerBI for 1 month, but the DAX formulas are still a mystery to me (for now).

@Anonymous ,

 

You may use LOOKUPVALUE Function to add a calculated column in DAX.

http://community.powerbi.com/t5/Desktop/Excurr/m-p/361854#M163415

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.