cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mattwilliams194
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:

 

EntityUserRuleValue
Company 1Bill1N
Company 2Bill1Y
Company 9John1Y
Company 10John1N
Company 17Rob1Y
Company 18Rob1Y
Company 3Bill2N
Company 4Bill2N
Company 11John2Y
Company 12John2Y
Company 19Rob2N
Company 20Rob2Y
Company 5Bill3N
Company 6Bill3Y
Company 13John3Y
Company 14John3N
Company 21Rob3Y
Company 22Rob3N
Company 7Bill4Y
Company 8Bill4N
Company 15John4N
Company 16John4Y
Company 23Rob4N
Company 24Rob4N

 

Expected retun:

 

 

RuleValue
1100%
2100%
350%
450%

 

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
Community Support

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

@mattwilliams194,

 

You may add an additional measure as follows.

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.

View solution in original post

2 REPLIES 2
Community Support
Community Support

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

@mattwilliams194,

 

You may add an additional measure as follows.

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.

View solution in original post

mattwilliams194
Regular Visitor

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

 

Amazing, thanks Sam. Works a treat.

Helpful resources

Announcements
New Ranks Launched March 24th!

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!

‘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

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 Microsoft Power Platform event series.

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

Community Summit North America

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

Top Solution Authors