Forum Discussion
dax for conversion rate
Hi Anonymous ,
You need to create a new measure as like given below. Also for this to be achieved, I created one more table where I am maintaining the conversion rates along with the Country column
Measure_new =
var selected_country = IF(ISFILTERED('Table'[Country]), CONCATENATEX(CALCULATETABLE(VALUES('Table'[Country])), 'Table'[Country], ","), "")
return
IF(COUNTROWS(ALLSELECTED('Table'[Country])) > 1, SUMX('Table', 'Table'[Currency] * RELATED(currency_conversion[Conversion_rate])),
IF(selected_country = "UK" , SUM('Table'[Currency]), SUM('Table'[Currency])
))New table and how it is related to the country table:
When one country is selected:
When both the countries are selected
If this works fine, mark it as answer and I would love to be appreciated with a Kudo!!
Best Regards,
Hi that looks like its working for you
I've done this
- v-yanjiang-msft4 years agoCommunity Support
Hi Anonymous ,
Thejeswar 's formula works in my sample, you can compare the difference of my sample and yours, I attach it below. Analyzing where things went wrong can solve problems faster, or you can provide your sample without sensitive data, to let me know the difference.
Best Regards,
Community Support Team _ kalyj