Forum Discussion
Max date for calculated column DAX Measure
Hi Experts
How can i modify the following to return back the max date...for FINCNTRL[wostatus.CHANGEDATE]
Measure Calculated Column
Hi Anonymous ,
According to your description, I create a sample.
If you want to create a calculated column to show the max date of wostatus.CHANGEDATE when wostatus.STATUS meet the condition, here's my solution. Create a calculated column.
Works Completion Date = IF ( FINCNTRL[wostatus.STATUS] IN { "FINAPPR", "FINCOMP", "COMP", "CLOSE" }, MAXX ( FILTER ( 'FINCNTRL', FINCNTRL[wostatus.STATUS] IN { "FINAPPR", "FINCOMP", "COMP", "CLOSE" } ), FINCNTRL[wostatus.CHANGEDATE] ), BLANK () )Get the result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- v-yanjiang-msftCommunity Support
Hi Anonymous ,
According to your description, I create a sample.
If you want to create a calculated column to show the max date of wostatus.CHANGEDATE when wostatus.STATUS meet the condition, here's my solution. Create a calculated column.
Works Completion Date = IF ( FINCNTRL[wostatus.STATUS] IN { "FINAPPR", "FINCOMP", "COMP", "CLOSE" }, MAXX ( FILTER ( 'FINCNTRL', FINCNTRL[wostatus.STATUS] IN { "FINAPPR", "FINCOMP", "COMP", "CLOSE" } ), FINCNTRL[wostatus.CHANGEDATE] ), BLANK () )Get the result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AilleryOMemorable Member
Hi,
Did you try ?
Works Completion Date = IF(FINCNTRL[wostatus.STATUS] IN {"FINAPPR", "FINCOMP", "COMP", "CLOSE"}, MAX(FINCNTRL[wostatus.CHANGEDATE]), BLANK())
Let us know