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

dax for conversion rate

Hi,


I have a report with two different currencies, one is GBP(£) and the other is Euros. 
However when combined on power bi I want the total to be SEK = Swedish krona.


How would this be possbile?

 

Thanks

7 REPLIES 7
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I create a sample.

vkalyjmsft_0-1642386253567.png

Here's my solution, create a measure.

Measure =
SUMX (
    'Table',
    IF (
        'Table'[Country] = "UK",
        'Table'[Currency] * 246.54,
        IF ( 'Table'[Country] = "Ireland", 'Table'[Currency] * 308.37 )
    )
)

Whether the slicer is single-choice or multiple-choice, it will get the correct result.

vkalyjmsft_1-1642386362508.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

 

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

 

Anonymous
Not applicable

Hi 

I've made a change to the formula by multiplying the country by the conversion rate for SEK however I need to include in the measurement 
If the one country is selected keep it as the value in its own currency before multiplying by the conversion rate.
for example if its £200 and £300 for uk only the total will be £500 but if both uk and ireland are selected that when it changes to the totaled value multiplied by conversion rate.


e.g

if 'uk' its normal = £500 
if 'ireland' then normal = 600 
but if its both then 
uk and ireland = uk * sek conevrsion rate + ireland * sek 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:

Thejeswar_2-1642599197006.png

 

 

When one country is selected:

Thejeswar_0-1642599047074.png

When both the countries are selected

Thejeswar_1-1642599093984.png

If this works fine, mark it as answer and I would love to be appreciated with a Kudo!!

Best Regards,

 

Anonymous
Not applicable

Hi that looks like its working for you 

I've done this

SEK =
var selected_country = IF(ISFILTERED('Pipeline'[Country Name]), CONCATENATEX(CALCULATETABLE(VALUES('Pipeline'[Country Name])), 'Pipeline'[Country Name], ","), "")
return
IF(COUNTROWS(ALLSELECTED('Pipeline'[Country Name])) > 1, SUMX('Pipeline', 'Pipeline'[Financed Amount] * RELATED('Sheet1'[conversion_rate])),
IF(selected_country = "UK" , SUM('Pipeline'[Financed Amount]), SUM('Pipeline'[Financed Amount])
))
 
but when i click one country it still doesnt show me the value with out it being multiplied by conversion rate so the original number isnt shown

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

Anonymous
Not applicable

By combine I mean when my report slicer is selecting UK and Ireland which have different currencies how can I create an automatic dax measure which converts the two into SEK and adds them together 

20 GBP 
30 EU

 

246.54 - UK TO SEK
308.37 - EU TO SEK 

 

TOTAL COMBINED = 554.91

Thejeswar
Super User
Super User

Hi @Anonymous , 

What do you mean when you say combine?

 

It would be better if you can give  sample data and expected output. Also explain based on what you combine GBP and Euros?

Regrads,

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.