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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
drrai66
Resolver I
Resolver I

How can I get Minimum Date For each ID and Status

Hi All,

I would like to get the Minimum Date for Each ID and Status, So I should be getting the  Values in COLUMN (MIN Date) in following example. What is the formula to get that.

Thanks

Deepak

 

IDStatusChanged DateMIN Date
2303A11/7/2017 14:0011/7/2017 14:00
2303A11/7/2017 14:0111/7/2017 14:00
2303A11/7/2017 14:0111/7/2017 14:00
2303A11/7/2017 14:0211/7/2017 14:00
4657B11/6/2017 14:5311/6/2017 14:53
4657B11/6/2017 14:5311/6/2017 14:53
4657B11/8/2017 10:5111/6/2017 14:53
4988C11/8/2017 11:1811/8/2017 11:18
4988C11/9/2017 11:0511/8/2017 11:18
4988C11/9/2017 11:0811/8/2017 11:18
4988C11/9/2017 11:1011/8/2017 11:18
1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@drrai66

 

Try this

 

=
CALCULATE (
    MIN ( Table1[Changed Date] ),
    ALLEXCEPT ( Table1, Table1[ID], Table1[Status] )
)

Regards
Zubair

Please try my custom visuals

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Capture.PNG

 

Hello all.. I want to do similar thing but I can't.. for all same 'TID', I want to create a new column name "BuyDate" and I want to get Buy Date "01.03.2019" as in the image. 

I put following formula 

CALCULATE(MIN(Table[Date];ALLEXCEPT(Table;Table[TID])))

 

but I get error 

A single value for column 'Date' in table 'Table' cannot be determined.

CALCULATE(MIN(Table[Date]), ALLEXCEPT(Table,Table[TID]))

 

I believe the issue is because the first closing parethensis is in the wrong spot. 

Zubair_Muhammad
Community Champion
Community Champion

@drrai66

 

Try this

 

=
CALCULATE (
    MIN ( Table1[Changed Date] ),
    ALLEXCEPT ( Table1, Table1[ID], Table1[Status] )
)

Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

it is measeure right how we can create column

Thanks, It worked!!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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