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
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
v-chuncz-msft
Community Support
Community Support

@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
v-chuncz-msft
Community Support
Community Support

@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.

 

Amazing, thanks Sam. Works a treat.

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.