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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
AussieClyde
Frequent Visitor

Measure to find value in a column based on MIN value of another column

I have a summary table as per below.

Capture.JPG

 

I have the MIN and MAX values of Avg Sales by Season.

I have created a measure to determine the value of Season that corresponds to the MAX value.

But I cannot work out how to create a measure to determine the value of Season that corresponds to the MIN value.

Any help would be greatly appreciated.

1 ACCEPTED SOLUTION
Nathaniel_C
Community Champion
Community Champion

Hi @AussieClyde ,

Min season = CALCULATE(min('Table'[SEASON]),Filter(ALL('Table'),'Table'[aVG SALES]= MIN('Table'[aVG SALES])))

I used my own values, but put your table names and column names in and this will work

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Nathaniel_C
Community Champion
Community Champion

Hi @AussieClyde ,

Min season = CALCULATE(min('Table'[SEASON]),Filter(ALL('Table'),'Table'[aVG SALES]= MIN('Table'[aVG SALES])))

I used my own values, but put your table names and column names in and this will work

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




Thank you so much @Nathaniel_C - works perfectly! 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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