Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

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

Works Completion Date = IF(FINCNTRL[wostatus.STATUS] IN {"FINAPPR", "FINCOMP", "COMP", "CLOSE"}, FINCNTRL[wostatus.CHANGEDATE], BLANK())
 
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I create a sample. 

vkalyjmsft_0-1664960604591.png

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.

vkalyjmsft_1-1664960785800.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I create a sample. 

vkalyjmsft_0-1664960604591.png

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.

vkalyjmsft_1-1664960785800.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

AilleryO
Memorable Member
Memorable 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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors