Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Power BI : Previous Day Value

Hi, I have table like below, for each Loan ID, there are values assigned to it for every date. 

 What I need is, a new calculated column to be created which will store the value of previous day for the same loan.

 

 

What I have tried so far are below two DAX but it is populating Blank value only throughout.

 

1. Previous Day Value = CALCULATE(MAX(Table[Value]), DATEADD('Date_Dim'[Date], -1, DAY))
2. Previous Day Value = CALCULATE(MAX(Table[Value]), PREVIOUSDAY('Date_Dim'[Date]))
 
I do have a Date/Calendar table in place. Please help me creating a new column. The reason I need a column instead of measure is that I need it for future calculations. amitchandak GilbertQ  

2 Replies