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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MattRoed
Helper I
Helper I

Mark smallest date value in group

I want to create a column similar to the far right one in this table:

LocationIterationDateStarter
A11/1/2020Y
A11/6/2020N
A11/14/2020N
A21/14/2020Y
A21/17/2020N
A21/23/2020N
B11/1/2020Y
B11/6/2020N
B11/14/2020N
B21/14/2020Y
B21/17/2020N
B21/23/2020N

 

Basically I want to mark the first instance of the new iteration as a Starter "Y". So it would be the smallest date value for the iteration. But there can be multiple iterations marked as 1, but both location A and B should be marked as "Y" for the first #1. Does that make sense?

 

Thanks in advance!

1 ACCEPTED SOLUTION

@FrankAT  I don't believe it is working. All records are marked as "N". The 1st and 2nd record should be marked as "Y". starter.PNG

View solution in original post

7 REPLIES 7
v-diye-msft
Community Support
Community Support

Hi @MattRoed 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly. If not, please kindly elaborate more. thanks!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
FrankAT
Community Champion
Community Champion

Hi @MattRoed,

use the following measure:

 

10-07-_2020_00-35-05.jpg

 

Regards FrankAT

@FrankAT  I don't believe it is working. All records are marked as "N". The 1st and 2nd record should be marked as "Y". starter.PNG

FrankAT
Community Champion
Community Champion

Hi @MattRoed,

it works with your sample data as expected. Don't hesitate about the CapturTime, it's in german format.

 

10-07-_2020_16-53-34.png

 Regards FrankAT

@FrankAT still not working on my end. Not sure what the issue is. Still marking all columns as "N". 

starter2.PNG

Hi @MattRoed 

 

Let me know if below works:

Measure 4 = var a = CALCULATE(MIN('Table (2)'[Date]),ALLSELECTED('Table (2)'),VALUES('Table (2)'[Location]),VALUES('Table (2)'[Iteration]))
return
IF(SELECTEDVALUE('Table (2)'[Date])=a,"Y","N")

 The suggestion from @FrankAT  should be OK, not sure why failed in your scenario, would you mind sharing your dummy pbix that we can check it further? 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Greg_Deckler
Community Champion
Community Champion

@MattRoed - See if this helps: https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434

 

Or perhaps this, See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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