Forum Discussion
DAX for earliest value
- 3 years ago
rgalvez , a new column based on what I got
diff =
var _max = maxx(filter(Table, [Rep Id] = earlier([Rep id]) && [Intial Date] < earlier([Intial date]) ), [Intial Date])
return
maxx(filter(Table, [Rep Id] = earlier([Rep id]) && [Intial Date] =_max ), [Score]) - [Score]
Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
rgalvez , a new column based on what I got
diff =
var _max = maxx(filter(Table, [Rep Id] = earlier([Rep id]) && [Intial Date] < earlier([Intial date]) ), [Intial Date])
return
maxx(filter(Table, [Rep Id] = earlier([Rep id]) && [Intial Date] =_max ), [Score]) - [Score]
Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
Thanks! Not exactly what I was asking for, but the link to the Earlier approach was very useful.