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.
I have a table that has different currency values. I am trying to add a new measure that will convert just the total currency values to US $. I will not be using a conversion table but will put the exchange rate into the dax formula for each differeny currecy. I need help in the creating of the DAX stament that will allow me to do this. Thanks
Solved! Go to Solution.
Hello @Anonymous ,
You can do this with a SUMX and SWITCH against your data table.
SCRAP_COST USD = SUMX ( Table, Table[SCRAP_COST] * VAR RowCurrency = Table[CURRENCY] RETURN SWITCH ( TRUE (), RowCurrency = "USD", 1, RowCurrency = "GBP", 1.26992, RowCurrency = "MXN", 0.5250859, 1 ) )
Hello @Anonymous ,
You can do this with a SUMX and SWITCH against your data table.
SCRAP_COST USD = SUMX ( Table, Table[SCRAP_COST] * VAR RowCurrency = Table[CURRENCY] RETURN SWITCH ( TRUE (), RowCurrency = "USD", 1, RowCurrency = "GBP", 1.26992, RowCurrency = "MXN", 0.5250859, 1 ) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |