cancel
Showing results for
Did you mean:
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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
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]))``````

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

Highlighted
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]))``````

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

Announcements

#### August 2020 Community Challenge: Can You Solve These?

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

#### Community Blog

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

#### 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

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

Top Solution Authors
Top Kudoed Authors