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
gaikwadaa123
Helper II
Helper II

urgent-get the max value per attribute

Hello,

This platform has been always a great help for me. I am looking for one more urgent solution;

 

I have table that looks like below 

gaikwadaa123_0-1616178295234.png

The Measurement name has three rows DEC area,, DEP area, DOM area, then there is value, Date and month column,

I would like to calculate the Max value  for each DEC area, DEP area, DOM area by each month. 

so that there will be new column as maxvalue. and it will have max for  DEC area,, DEP are, DOM area for each month. 

I am looking for custom  column .

 

thank you in adavnce.

1 ACCEPTED SOLUTION
pranit828
Community Champion
Community Champion

Hi @gaikwadaa123 

I would use the below DAX for the above requirement.

 

_max = CALCULATE(MAX(table[value]), ALLEXCEPT(table,table[Month]))

If this doesn't work you will have to provide more details about how your MeasurementMeasure is calcualted and if you have sum or average in the value column based on the measure.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

View solution in original post

4 REPLIES 4
mhossain
Solution Sage
Solution Sage

@gaikwadaa123 

See this blog and follow the instruction, I think this is what you are looking for:

http://dataap.org/blog/2019/12/19/min-and-max-value-in-power-query-power-bi/

 

 

This worked like charm. Thank you so much.

pranit828
Community Champion
Community Champion

Hi @gaikwadaa123 

I would use the below DAX for the above requirement.

 

_max = CALCULATE(MAX(table[value]), ALLEXCEPT(table,table[Month]))

If this doesn't work you will have to provide more details about how your MeasurementMeasure is calcualted and if you have sum or average in the value column based on the measure.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

thank you for the response, instead of the dax can we do custome column ?

do you know anyway to add that way?

 

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.

Top Solution Authors