Forum Discussion
Anonymous
6 years agoNot applicable
Filtering dates in two date columns
Hi, I can't get my head around filtering of date columns. I have two columns - Report date and Project date. When I choose a Report date (say 04.07), I would like to see the latest Project date in ...
mahoneypat
6 years agoMicrosoft Employee
Are the Report Date and Project Date columns in the same table? In any case, here is an expression you can try
Latest Project Date =
VAR __thisreportdate =
SELECTEDVALUE ( Table[ReportDate] )
RETURN
CALCULATE (
MAX ( Table[ProjectDate] ),
ALL ( Table[ReportDate] ),
Table[ReportDate] <= __thisreportdate
)
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Anonymous
6 years agoNot applicable
Hi mahoneypat Thanks! The report date column has been copied into the same column. The measure, however, returns always the latest Project date independent of the current Report date...
- v-lili6-msft6 years agoCommunity Support
hi Anonymous
Could you please share your sample pbix file and your expected output, that will be a great help.
Regards,
Lin