cancel
Showing results for
Did you mean:
Regular Visitor

## DAX formula to work out max value of a measure - HELP!

Hello!

I am trying to build a report which shows CRM data accuracy per user. For each user there is a rule with either a blank (not relevant), N (not correct) and a Y (correct). I use the following formula to work out each users % accuracy:

Summary 1 % = CALCULATE(COUNTA('Data 1'[Value]),'Data 1'[Value]="Y")/(COUNTROWS('Data 1')-(COUNTBLANK('Data 1'[Value])))

Data is the list of data and [Value] is the Y/N/Blank. This works perfectly however I want to disply this on a radar chart and show the max percentage for each catagory to show the best/most accurate for each rule. I'm trying to search for a way to do it but I am not having much luck at all.

Simplified example of the Data:

 Entity User Rule Value Company 1 Bill 1 N Company 2 Bill 1 Y Company 9 John 1 Y Company 10 John 1 N Company 17 Rob 1 Y Company 18 Rob 1 Y Company 3 Bill 2 N Company 4 Bill 2 N Company 11 John 2 Y Company 12 John 2 Y Company 19 Rob 2 N Company 20 Rob 2 Y Company 5 Bill 3 N Company 6 Bill 3 Y Company 13 John 3 Y Company 14 John 3 N Company 21 Rob 3 Y Company 22 Rob 3 N Company 7 Bill 4 Y Company 8 Bill 4 N Company 15 John 4 N Company 16 John 4 Y Company 23 Rob 4 N Company 24 Rob 4 N

Expected retun:

 Rule Value 1 100% 2 100% 3 50% 4 50%

With this I could drop it onto the Y axis of the radar chart (with Catagory being the Rule number) to allow me to dynamically filter a copy of the data to show individuals against the best value in each. This will also stop the radar from changing the order of the rules based on the highest value as this will be static.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support

## Re: DAX formula to work out max value of a measure - HELP!

```Measure =
MAXX ( SUMMARIZE ( 'Data 1', 'Data 1'[User] ), [Summary 1 %] )
```
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support

## Re: DAX formula to work out max value of a measure - HELP!

```Measure =
MAXX ( SUMMARIZE ( 'Data 1', 'Data 1'[User] ), [Summary 1 %] )
```
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Regular Visitor

## Re: DAX formula to work out max value of a measure - HELP!

Amazing, thanks Sam. Works a treat.

Announcements

#### New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

#### ‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

#### Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

#### Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

#### Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors