cancel
Showing results for
Did you mean:

## Show maximum value in an array

Hello, I hope you are well

I need to create a measure that allows you to display the maximum value of a column. The funny thing is that this value can vary depending on the filters used.

 category number Maximum A 0,54598347 0,94512971 B 0,02868099 0,94512971 C 0,5445268 0,94512971 D 0,19868194 0,94512971 E 0,09633249 0,94512971 F 0,94512971 0,94512971 G 0,02301643 0,94512971 H 0,61961557 0,94512971

I've tried MAXA and MAXX and the formula doesn't work for me 😞

Thanks a lot!

1 ACCEPTED SOLUTION
Community Support

You could use ALL(), ALLSELECTED() and ALLEXCEPT() function to get different result.

ALL() function could be used to calculate the max value for entire table.

ALLSELECTED() function could be used to calculate the max value for filtered table.

ALLEXCEPT() function could be used to calculated the max value for groups.

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
2 REPLIES 2
Community Support

You could use ALL(), ALLSELECTED() and ALLEXCEPT() function to get different result.

ALL() function could be used to calculate the max value for entire table.

ALLSELECTED() function could be used to calculate the max value for filtered table.

ALLEXCEPT() function could be used to calculated the max value for groups.

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Super User II

you can do it like this:

Max of selected values =
CALCULATE (
MAX ( 'Table'[number] ) ,
ALLSELECTED ( 'Table'[number] )
)

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Announcements

#### 2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

#### Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

#### Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Top Kudoed Authors