Forum Discussion
DAX Formula
- 2 years ago
Hi,
Try this
Latest due date = calculate(max(Data[Due date]),filter(Data,Data[Date]=earlier(Data[Date])&&Data[Status]=earlier(Data[status])&&Data[Volume]>0))
ryan_mayu...the intent is to create a field that I can use on a visual to show the latest Due Date for every Date & Status combination. So with the small subset in the screenshot, I want to build a visual that shows three columns, the Date, the Status, and the [latest] Due Date, but only one row. So the visual should show one row like this:
ldwf @
you can try this to create a column
- ldwf2 years agoHelper V
Thanks, but this solution gives me the latest date of all the records in the entire result set, not for each combination of Date and Status that appears in the visual
- ryan_mayu2 years agoSuper User
could you please provide more sample data and expected output?
- ldwf2 years agoHelper V
I rephrased the question. The DAX formula needs a filter as well