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
Prathameshsable
Advocate V
Advocate V

Maxx of a dynamic measure with all selected not working

IdProduct NrTotal Count of runsMAXCount
R111451454315
R600451454315
R811351454355
R1114525497517
R6020525497317
R81135254971717

 

The above is my table, wherein Total count of runs is a dynamic measure and caculates the values dynamically. however, when I create a MAXX to create the MAX count column, it does not work. I tried creating calculcations based on summarize, allselected, values but none of them are giving the correct output. need help is solving the query

1 ACCEPTED SOLUTION

Those answers seem correct.  For 437725, the max is 2 and for 437745, the max is 3.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

Measure = MAXX(ALL(Data[ID]),[Total Count of runs])

If it does not, then share the download link of the PBI file.  Show the visual where you want to see this result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

not really, using the above. Because here need to look at the productNr and not ID.  If you look at the below example; the max value should have been 3, but it gives 2 and 3 both

 

Prathameshsable_0-1712561051588.png

 

Those answers seem correct.  For 437725, the max is 2 and for 437745, the max is 3.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Yes, it was solved the same day with the same measure. Sorry for the late response and thanks for the measure.

Prathameshsable
Advocate V
Advocate V

Further adding to the reply, I tried looking at various posts and comments in the community provided tried maxx(Allselected) combination as well, but they do not seem to work.

 

Actually I am trying to evaluate a sumproduct function in powerbi which can be achieved via sumX wherein it looks for the max value, so if I get the max value against the product number I can easily calculate the condition

Prathameshsable_0-1712559591135.png

@amitchandak @lbendlin @Ritaf1983 @Idrissshatila @Ashish_Mathur 

 

 

 

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.