Forum Discussion

Truelearner's avatar
Truelearner
Icon for Helper III rankHelper III
6 years ago
Solved

need help with dax

I have the table below where in i have original currency and transaction currency along with effective date and exchnage rate , 

 

i have this requirement where in which i want to create a table with with highest date when i have two or more exchange rates within same month and i want to have a column in which i would like to have the previous month exchnage rate if the current exchnage rate is not available.

 

@mgwena @cham @amitchandak @Greg_Deckler @Mariusz 

 

Input table :

 

Original currTransaction CurrEffective DateExchangerate
USDINR02-01-202071
USDINR18-01-202072.05
USDEUR07-01-202014
USDINR04-02-202071.5
USDCAD07-02-20201.01
USDINR03-03-202072

 

Output Table :

 

Original currTransaction CurrEffective DateExchangeratePrevious exchnage rate 
USDINR18-01-202072.05 
USDEUR07-01-20201472.0
USDCAD07-02-20201.01 
USDINR03-03-20207214