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

Find min date ignore closed date

Hi Team,

 

Please help me out below

I am expecting Cat wise MinDate but Status is closed just we have to ignore the line item and only consider Open Status.

 

NIHA3141_0-1637224226689.png

 

Thank you

 

@ Greg_Deckler @Fowmy

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a calculated column or meausre like below.

 

Columns:

MinDatebyCat_Column1 = 
CALCULATE (
    MIN ( 'Table'[Date] ),
    FILTER (
        'Table',
        'Table'[Cat] = EARLIER ( 'Table'[Cat] )
            && 'Table'[Status] = "Open"
    )
)
MinDatebyCat_Column2 = 
CALCULATE (
    MIN ( 'Table'[Date] ),
    FILTER ( ALLEXCEPT ( 'Table', 'Table'[Cat] ), 'Table'[Status] = "Open" )
)

Icey_2-1637563878597.png

 

Measure:

MinDatebyCat_Measure1 = 
CALCULATE (
    MIN ( 'Table'[Date] ),
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[Cat] = MAX ( 'Table'[Cat] )
            && 'Table'[Status] = "Open"
    )
)
MinDatebyCat_Measure2 = 
CALCULATE (
    MIN ( 'Table'[Date] ),
    FILTER ( ALLEXCEPT ( 'Table', 'Table'[Cat] ), 'Table'[Status] = "Open" )
)

Icey_3-1637564045982.png

 

Best Regards,

Icey

 

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

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a calculated column or meausre like below.

 

Columns:

MinDatebyCat_Column1 = 
CALCULATE (
    MIN ( 'Table'[Date] ),
    FILTER (
        'Table',
        'Table'[Cat] = EARLIER ( 'Table'[Cat] )
            && 'Table'[Status] = "Open"
    )
)
MinDatebyCat_Column2 = 
CALCULATE (
    MIN ( 'Table'[Date] ),
    FILTER ( ALLEXCEPT ( 'Table', 'Table'[Cat] ), 'Table'[Status] = "Open" )
)

Icey_2-1637563878597.png

 

Measure:

MinDatebyCat_Measure1 = 
CALCULATE (
    MIN ( 'Table'[Date] ),
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[Cat] = MAX ( 'Table'[Cat] )
            && 'Table'[Status] = "Open"
    )
)
MinDatebyCat_Measure2 = 
CALCULATE (
    MIN ( 'Table'[Date] ),
    FILTER ( ALLEXCEPT ( 'Table', 'Table'[Cat] ), 'Table'[Status] = "Open" )
)

Icey_3-1637564045982.png

 

Best Regards,

Icey

 

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

Anonymous
Not applicable

I need "Result Column", Cat wise "min date" if status is "Open"

SanketBhagwat
Solution Sage
Solution Sage

Hi @Anonymous .

Can you please elaborate what exactly your requirement is or provide an expected output?

Regards,
Sanket

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.