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! Learn more

Reply
TheBaz_57
Frequent Visitor

Find the date a min value occured.

Hi there,

 

I perused the forum but could find what I'm looking at.

 

I have this data:

NameQtyDate
Peter1001/04/2024
Tom230/03/2024
Sam515/03/2024
Peter602/01/2024
Tom814/03/2024
Sam4027/02/2024

 

So I have in pbi a matrix with 

Rows: Name

Values: Min of Qty

 

But I would like to get as well the date the Min Qty occured. And I have no idea how to gt that. Tried different solutions but without sucess.

 

NameMin QtyDate
Peter602/01/2024
Tom230/03/2024
Sam5

15/03/2024

 

Thanks for the help 😉

 

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@TheBaz_57 ,

try this measure,

Min date = 
VAR _minQty = MIN('Table 1'[Qty])
VAR _minDate = CALCULATE(
    MIN('Table 1'[Date]),'Table 1'[Qty] = _minQty)
RETURN _minDate

Arul_0-1712659370141.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@TheBaz_57 ,

try this measure,

Min date = 
VAR _minQty = MIN('Table 1'[Qty])
VAR _minDate = CALCULATE(
    MIN('Table 1'[Date]),'Table 1'[Qty] = _minQty)
RETURN _minDate

Arul_0-1712659370141.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Ahmedx
Super User
Super User

pls try this

Screenshot_1.png

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