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

Calculate MAXX from a dynamic measure

Calculate MAXX from a Dynamic Measure
yesterday

I have the following table:

Here ID and Product numbers are columns and Total Count of runs is a Dynamic measure which gives the count based on some calculations.

IdProduct NrTotal Count of runs
R11145145431
R60045145431
R81135145435
R11145254975
R60205254973
R811352549717

 

I need to create a Measure that gives me the MAX of the Total count of runs per product number

 

IdProduct NrTotal Count of runsMAXCount
R111451454315
R600451454315
R811351454355
R1114525497517
R6020525497317
R81135254971717

 

I tried the combinations of ALL, ALL SELECTED, ALL Execpt, SUmmarize, MAX, MAXX, but seems they are not working as intened. Also, tried measures such as 

MAXTotalcountofruns =
MAXX (
    VALUES ( Conversion[Product Nr] ),
    [Total count of runs]
)
Got the following output (which doenst work as well)
 
Prathameshsable_0-1712557302728.png

 

 

MAXTotalcountofruns =

VAR _a =
    MAXX(
        SUMMARIZE('Conversion', 'Conversion'[Product Nr], "MaxCount", [Total Count of runs]),
        [MaxCount]
    )
RETURN
    IF(
        HASONEVALUE('Conversion'[Product Nr]),
        _a,
        BLANK()
    )

Need help to solve the above problem.
I have checked for various articles and videos but none of them help (majorly all videos are towards column creation only. 
thanks
1 ACCEPTED SOLUTION
v-junyant-msft
Community Support
Community Support

Hi @Prathameshsable ,

Please try this DAX:

_MAX = 
MAXX(ALLEXCEPT('Table', 'Table'[Product Nr]), [Measure])

The final output is as below:

vjunyantmsft_0-1712711623068.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-junyant-msft
Community Support
Community Support

Hi @Prathameshsable ,

Please try this DAX:

_MAX = 
MAXX(ALLEXCEPT('Table', 'Table'[Product Nr]), [Measure])

The final output is as below:

vjunyantmsft_0-1712711623068.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes, it got solved the same day itself. Thank you for your help

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.