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
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
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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors