Forum Discussion

Sylvain74's avatar
Sylvain74
Helper III
3 years ago
Solved

Multi conversions problem

Hi Everyone   I need to calculate a weighted average price from an invoice and convert it back to the price unit of the related contract. For examples: An invoice of 100'000USD corresponding to 1...
  • AlexisOlson's avatar
    3 years ago

    If you want to convert 100'000 USD / 1'000 MT to CAD/LB then you'd do

    [100'000 USD * (1.33 CAD/USD)] / [1'000 MT * (2205 LB/MT)] = 0.06 CAD/LB

     

    To set this up in your model, I'd start with the currency conversion patterns:
    https://www.daxpatterns.com/currency-conversion/

    Weight conversions are simpler since they don't change over time.