Forum Discussion
Fyod
3 years agoRegular Visitor
Find next cell value with specific value
Hi ,
I have table below:
I want to add column with the next (based on name and date) occurence FLAG value (see image above)
How can i do it in DAX or POWER QUERY?
1 Reply
- amitchandak
Super User
Fyod , Try a new column like
New column =
var _min = minx(filter(Table, [Col1] = earlier([Col1]) && [Date] > earlier([Date]) ), [Date])
return
coalesce( minx(filter(Table, [Col1] = earlier([Col1]) && [Date]= _min ), [Col1]), "N/A")
Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=17820s