cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
Super User
Super User

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
Super User
Super User

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors