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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
key_master_95
Frequent Visitor

Convert currency without exchange rate

Hi, all!

I have an issue that I can't overcome.

I have one table Coffee with countries, sales in EUR and volume of sale

1table.png

and I have other table with countries, EUR, CHF

2table.png

Question  -how I can calculate total Sales in Eur and Total Sales in CHF?

Thank you in advance!

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @key_master_95 ,

Your data table may be complicated, if possible, please provide a simplified sample data for us to test, thank you.
This is a test dataset I created myself and I'm not sure if it matches the data model you are using:

vjunyantmsft_0-1704246004556.png

vjunyantmsft_1-1704246013673.png

vjunyantmsft_3-1704246104243.png


I am using the following two DAXes for this calculation:

Total Sales in EUR = 
SELECTEDVALUE(Coffee[sales in EUR(unit price)]) * SELECTEDVALUE(Coffee[volume of sale])
Total Sales in CHF = 
SUMX('Coffee', 'Coffee'[Total Sales in EUR] / RELATED('Table'[EUR]) * RELATED('Table'[CHF]))

vjunyantmsft_4-1704246125779.png


Best Regards,
Dino Tao
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

with country columns related it should work just the same. Only requirement would be that both need to be in the same data type (text) and both contain the same values: BE-BE or Belgium-Belgium. I am suposing here that in the country/currency table you have only one line per country. Please shere the error message.

View solution in original post

5 REPLIES 5
Harper_King_1
New Member

You can calculate total sales in EUR and CHF by applying a conversion rate. If you have a table with sales in EUR and the volume of sales, you can multiply the volume by the sales price in EUR to get the total sales. Then, to convert the total sales into CHF, you need the current exchange rate between EUR and CHF. You can find more about how to adjust your menu and customize orders by checking out 7 Brew Menu Options for creative drinks that match your preferences!

Anonymous
Not applicable

Hi @key_master_95 ,

Your data table may be complicated, if possible, please provide a simplified sample data for us to test, thank you.
This is a test dataset I created myself and I'm not sure if it matches the data model you are using:

vjunyantmsft_0-1704246004556.png

vjunyantmsft_1-1704246013673.png

vjunyantmsft_3-1704246104243.png


I am using the following two DAXes for this calculation:

Total Sales in EUR = 
SELECTEDVALUE(Coffee[sales in EUR(unit price)]) * SELECTEDVALUE(Coffee[volume of sale])
Total Sales in CHF = 
SUMX('Coffee', 'Coffee'[Total Sales in EUR] / RELATED('Table'[EUR]) * RELATED('Table'[CHF]))

vjunyantmsft_4-1704246125779.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

zenisekd
Super User
Super User

The best solution would be to have a relationship between the coffee sale table and the rate table

zenisekd_1-1704221478540.png

zenisekd_3-1704221817872.png

 

zenisekd_4-1704221874322.png

 

Next, you can use a measure:

zenisekd_6-1704221931801.png

 

 or calculate a column.

 

Hi!

Thank you for the answer.

I can't build relation like Currency to currency 'cos in Coffee table haven't currency - only contries. 

I tried to implement your formula with connection Country to Contry, but it didn't work - PBI can't find related table (it's text of error)

with country columns related it should work just the same. Only requirement would be that both need to be in the same data type (text) and both contain the same values: BE-BE or Belgium-Belgium. I am suposing here that in the country/currency table you have only one line per country. Please shere the error message.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.