I have to translate the inventory from Euros to US dollars.
My fact table is in Euros
The report I created in Euros is very straight forward:
Opening Balance: Ending balance pushed back one month (DATEADD)
Purchases: all debits to the account
Consumption: all credit to the account
Ending Balance: Add all debits minus all credits life to date
To convert the Purchases to US dollars I use the average exchange rate of the month. Very easy.
The problem starts when I try to convert the Consumption. To do so, what I am trying to use is a blended rate of the opening balances. In other words, I am trying to do the following:
Consumption in Euros / (Opening Balance Euros / Opening Balance US dollars)
No matter how I try this, I end up getting a circular reference since I have to put on the Consumption in US dollars measure its very measure one month ago (i.e ending balance of prior month).
This same inventory conversion can be done in regular Excel very easily, but I think that given the logic of PowerPivot, it cannot be done using DAX.
Please let me know if mine is a worthless pursuit. Thank you.
My fact table is in Euros
The report I created in Euros is very straight forward:
Opening Balance: Ending balance pushed back one month (DATEADD)
Purchases: all debits to the account
Consumption: all credit to the account
Ending Balance: Add all debits minus all credits life to date
To convert the Purchases to US dollars I use the average exchange rate of the month. Very easy.
The problem starts when I try to convert the Consumption. To do so, what I am trying to use is a blended rate of the opening balances. In other words, I am trying to do the following:
Consumption in Euros / (Opening Balance Euros / Opening Balance US dollars)
No matter how I try this, I end up getting a circular reference since I have to put on the Consumption in US dollars measure its very measure one month ago (i.e ending balance of prior month).
This same inventory conversion can be done in regular Excel very easily, but I think that given the logic of PowerPivot, it cannot be done using DAX.
Please let me know if mine is a worthless pursuit. Thank you.