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
PowerbyEye
Regular Visitor

Displaying the Average Per Type of a Non-Sliced Column

Hi all, I was wondering if anyone may be able to help with a solution to the following:

 

We have a source data table that has a list of locations, that location's 'Location Type', and that location's score against a series of metrics. A simplified example of what this data table looks like is as follows:

PowerbyEye_0-1698667592120.png

In PowerBI, we would like the user to be able to select a location number from a slicer and to see that location's score against each metric, compared to the Average Figure for that location's location type. A simplified example of the desired result looks something like this:

PowerbyEye_1-1698667748315.png

We have tried using a Matrix visual, and various different approaches for for getting these figures side by side. We have tried using measures and calculated columns to acheive this, but are struggling to solve this. When we have a calculated column, we are struggling to get this presented side by side in a matrix!

 

If anyone may be able to help us with a solution to this, it would be very much appreciated!

1 ACCEPTED SOLUTION
Data-estDog
Resolver II
Resolver II

Step 1: Unpivot your data

DataestDog_0-1698671290965.png

should look like this: 

DataestDog_4-1698672973297.png

 

Step 2: You need 3 measures:

DataestDog_1-1698672875559.png

DataestDog_2-1698672896985.png

DataestDog_3-1698672924271.png

Step 3: Add fields to matrix

DataestDog_5-1698673066172.png

You can then rename the fields in the "Values" section of above. SumOfMetric will always be the values for the chosen location.

DataestDog_6-1698673135198.png

 

Step 4: Mark this post as the solution and give Kudos if you feel so inclined. 

 

View solution in original post

4 REPLIES 4
Data-estDog
Resolver II
Resolver II

Step 1: Unpivot your data

DataestDog_0-1698671290965.png

should look like this: 

DataestDog_4-1698672973297.png

 

Step 2: You need 3 measures:

DataestDog_1-1698672875559.png

DataestDog_2-1698672896985.png

DataestDog_3-1698672924271.png

Step 3: Add fields to matrix

DataestDog_5-1698673066172.png

You can then rename the fields in the "Values" section of above. SumOfMetric will always be the values for the chosen location.

DataestDog_6-1698673135198.png

 

Step 4: Mark this post as the solution and give Kudos if you feel so inclined. 

 

Thank you very much, this looks like it might be the one! We'll give it a try and confirm!!

Sure. Some minor things. Turn off column and row sums on matrix. 

Formatting of values to reflect %, $, etc. will be another hurdle. 

We can confirm that this is the solution - thank you again very much for the help! We have indeed now hit those %, $ etc. hurdles and will have a go at trying to sort them. Thanks!

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.