Forum Discussion
Dimi_2207
2 years agoHelper I
To show previous value based another column in DAX
Hello ! I have a big set of data and need to show in the column "Previous agent" the agent who took the previous call from the same phone number, please see the example below: Date Phone ...
- 2 years ago
Hi,
Write this calculated column formula
Column = LOOKUPVALUE(Data[Agent],Data[Date],CALCULATE(MAX(Data[Date]),FILTER(Data,Data[Phone]=EARLIER(Data[Phone])&&Data[Date]<EARLIER(Data[Date]))),Data[Phone],Data[Phone])Hope this helps.
Dimi_2207
2 years agoHelper I
Thank very much !
Works perfectly
Ashish_Mathur
2 years agoSuper User
You are welcome.