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
umtailgate
New Member

Separate Slicing for Value, Target, Max on Gauge

Sorry folks, unabashed newb here.

 

I have a slicer on my report that allows for selection from a list of 25 names.  Each one of those names has a score associated with it.  Each one of those names also has a group name associated with it (Red Group, Yellow Group, Green Group, Blue Group.)

 

I want a Gauge that shows the score for that name (Value), the Target value to be the group score average of the group that name belongs to, and the max based on the max of that same group.

 

When I drop in score to Gauge Value, it appears as expected, but then the average and max are also that same score, because it's not averaging the group, its averaging just the one sliced data point.  

 

This seems so simple, and I know I'm missing something.  How can I get the Target and Max to reflect the average score while maintaining the individual score as the Value.  

 

Thanks in advance for your time!

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @umtailgate ,

 

You can create two measures in desktop to calculate the average value and maximum value of each group.

avg_group = CALCULATE(AVERAGE('TABLE'[score ]),ALLEXCEPT('TABLE','TABLE'[Group]))

max_group = CALCULATE(MAX('TABLE'[score ]),ALLEXCEPT('TABLE','TABLE'[Group]))

Sample .pbix 

 

Best Regards,
Liang
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

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @umtailgate ,

 

You can create two measures in desktop to calculate the average value and maximum value of each group.

avg_group = CALCULATE(AVERAGE('TABLE'[score ]),ALLEXCEPT('TABLE','TABLE'[Group]))

max_group = CALCULATE(MAX('TABLE'[score ]),ALLEXCEPT('TABLE','TABLE'[Group]))

Sample .pbix 

 

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

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.

Top Solution Authors
Top Kudoed Authors