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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.