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

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Separate Slicing for Value, Target, Max on Gauge

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
Highlighted
Microsoft
Microsoft

Re: Separate Slicing for Value, Target, Max on Gauge

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors