Forum Discussion

Neomax1012's avatar
Neomax1012
New Member
3 years ago

Use Power Query M Value.Divide various column per results on row?

Hello,


I have a data set with various Currency (COP,MEX, and CAD). I'm looking to convert all into USD by dividing the net value with the FX rate for that day. I have FX rates pulling in by API per day and FX rates are within their own column. Please see screenshot (Below).

 

Example: The new column should look at SD Document Currency and divide by the respected FX rate. Let’s look at COP (Example). An adjustment was made for $4,005,820 and the question how much is it in USD? The idea is to take column COP Values and divide it by COP Net Value of the Billing Item. This should give me the USD adjustment. Ideally the new column should read each currency on the row.

 

4,005,820/4,823.01= 830.56 USD (results)

Thansk in advance!!!

No RepliesBe the first to reply