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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
VulcanPromance
Helper II
Helper II

Power Query Help

Hi. I have a global license system based in EURO, and I want to be able to show the license costs in various currencies based on a Country slicer. 

 

I have a Live Currency table

Currency_170619.jpg

Which provides the live currency to table that translates Department names into country, currencies and other stuff

HelpPQ1_170619.jpg

 

To be able to swap between currencies in visuals, I believe the best way would be to a have a seperate pricing column pr currency, so I have pricing table as well

Pricing_170619.jpg

 

Now.. in Power Query, I need to create x amount of new columns (1 for each currency found in Geography table) that calculates Price for that currency. Alternatively a less dynamic formula, that calculates for NOK, Dollar, SEK, DKK, PKR and any other Currency code I add into the formula manually).

See below for wanted output

wanted result.jpg

 

I was not able to find this through searches..

 

I'm pretty sure its an easy nested IF statement, but I cant figure out how to make it work.. 

 

Tried this to see if I could just get the results across, but it only returns 0

 

if GeoData[Currency Code]= "NOK"
then GeoData[Currency rate]*Pricing[Price]
else 0

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @VulcanPromance ,

 


I have a global license system based in EURO, and I want to be able to show the license costs in various currencies based on a Country slicer. 

 


As you said you want to achieve that by slicer. Then I think to create measures should be your best choice. Kindly share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors