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
davidwsw
Frequent Visitor

Need help filtering a radar chart

I have a simple table where users have scores for different categories. There are 5 categories in total but some users don't have a score in certain categories. For example, Paul has a score in categories A, B and C but not in D and E.

 

Scores1.png

 

I want to calculate the average score across all users for each category, ignoring any filters applied to User, so I created this measure:

CategoryScore = CALCULATE ( AVERAGE ( Table1[Score] ), ALL (Table1[User] ) )

 

I then want to show each user's scores on a radar chart and compare them to the average in each category. When no user is selected, it looks like this as expected (both polygons are on top of each other):

 

Scores3.png

 

This part is tricky to explain; I'm going to try my best. I want to make it so that when I filter by a user, his polygon is superimposed on top of the polygon that represents the average scores in all categories. For example, if I select John, I want to see B-C-D-E on top of A-B-C-D-E shown above. The problem is that when I filter by John, CategoryScore also gets filtered by the categories that John has. The end result is this:

 

Scores4.png

 

 

Is there any way to get the result that I am looking for? Any help would be greatly appreciated.

 

 

 

1 ACCEPTED SOLUTION
v-haibl-msft
Employee
Employee

@davidwsw

 

You can create another User table with following formula. And create relationship between Table1 and Table2 with User key but inactive the relationship.

Table2 = 
VALUES ( Table1[User] )

Need help filtering a radar chart_1.jpgNeed help filtering a radar chart_2.jpg

 

Then create a Measure with following formula.

AverageScore = 
CALCULATE (
    AVERAGE ( Table1[Score] ),
    USERELATIONSHIP ( Table1[User], Table2[User] )
)

For the Slicer visual, select Table2[User] in the Field. Then the selection in Slicer will not filter the category in the Rader chart.

Need help filtering a radar chart_3.jpgNeed help filtering a radar chart_4.jpg

 

Best Regards,

Herbert

View solution in original post

2 REPLIES 2
v-haibl-msft
Employee
Employee

@davidwsw

 

You can create another User table with following formula. And create relationship between Table1 and Table2 with User key but inactive the relationship.

Table2 = 
VALUES ( Table1[User] )

Need help filtering a radar chart_1.jpgNeed help filtering a radar chart_2.jpg

 

Then create a Measure with following formula.

AverageScore = 
CALCULATE (
    AVERAGE ( Table1[Score] ),
    USERELATIONSHIP ( Table1[User], Table2[User] )
)

For the Slicer visual, select Table2[User] in the Field. Then the selection in Slicer will not filter the category in the Rader chart.

Need help filtering a radar chart_3.jpgNeed help filtering a radar chart_4.jpg

 

Best Regards,

Herbert

@v-haibl-msft

 

Thanks! Your solution worked.

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.