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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.