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
ArleneJose
Regular Visitor

finding max and min values based on 2 or more criteria in a table

Hi there,

 

Can somebody please help me pick up the max and min values from a table summarize by month-year and locations?  I created a calender table linked to the data table that can show data by month-year.

 

I tried to create a measure using MIN and AllEXCEPT, but the result is showing me min and max amounts per location regardless of date.  

THis was the measure I created:   MinValue=CALCULATE(MIN(Data[Amount]),ALLEXCEPT(Data[date],)ALLEXCEPT(Data[Location])

 

My table looks like this:

dateLocation Amount
1/04/2018Brito-15
20/04/2018Brito10
5/04/2018Brito14
5/05/2018Brito2
6/05/2018Brito16
29/05/2018Brito-22

Expected view result:

Month-YearLocationMinMax
Apr-18Brito-1514
May-18Brito-2216

thanks in advance,

ArleneJ

1 ACCEPTED SOLUTION

awesome Dale.  thanks.

View solution in original post

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi ArleneJ,

 

Actually, we don't need a measure in your scenario. Please check out the demo in the attachment.finding max and min values based on 2 or more criteria in a table.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Dale

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

awesome Dale.  thanks.

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.