Forum Discussion
Convert currency without exchange rate
- Anonymous2 years ago
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:
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]))
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. - 2 years ago
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.
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!