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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Watson
New Member

How to execute calculation based on specific row value from different data source

Hi Community,

 

I am stucking here in this topic and went through quite some web support including youtube video. Must appreciate if someone could help.

 

Excel file 1. Sales record from (past year, month, week day) including price with currency code.

  • most items are recorded in USD, but some items are recorded in alternative currency, the currency code are left empty(Cap1)

Capture1.JPG

 

Excel file 2. Fx rate from previous month, will be updated monthly by our financial.

Watson_0-1669266626535.png

 

Now here comes my task.

I have to create a report showing weekly result, yearly, monthly, weely, as well as month to date. But the mentioned items above somehow need to be mulitplied with the monthly fx rate.

Currently I created two Power query link to the excel files. Now, I need to find a way to let it do the math with corresponding rate and then the output should be part of the report.

 

The logic behind should be (my current assumption)

If the currency code <> USD, then revenue =  revenue in altnertive currency * fx rate from the correponding month.

 

 

 

Thank you very much.

 

 

 

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @Watson ,

 

You could try to merge tables in Power Query.

Merge queries (Power Query) - Microsoft Support

Merge queries overview - Power Query | Microsoft Learn

Then you could add a conditional column to get the judgment statement you want.

Add a conditional column (Power Query) - Microsoft Support

Add a conditional column - Power Query | Microsoft Learn

 

 

 

Best Regards,

Stephen Tao

 

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

 

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.

Top Solution Authors