Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Pmags
Frequent Visitor

Developing a Radar Chart

I'm trying to make a Radar Chart using the average of several attributes in comparison to the average satisfactory level for each attribute.

 

I also want the data to have a splicer by year and department so what I'm thinking is to have a source table and make a new table using data from the source table.

 

 

Currently the source table looks like this:

A.png

 

 

 And I want to make a new table in PowerBi that'll look like this:

B.png

 

 I can then use this to make the spider chart but I still haven't figured out how to aggregate data from the source table to create the new table.

 

 

I'm sort of new using PowerBi so please help 😞

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

Hi @Pmags,

 

Do you want to create slicers using department and year fields  and then use the slicers to filter the New table? If that is the case, as there is no relationship between new table and source table, the slicers will not work.

You can perform the following steps to achieve your requirement.

1. Duplicate a query of your source table and rename the query to NewTable in Query Editor of Power BI Desktop.
1.PNG

2. Select the three columns (Efficacy, Resillience, Sustainability), then click “Unpivot columns” in the following screenshot.
2.PNG

3. Rename the “Attribute” column to Criteria.
3.PNG

4. Add a custom column named “Average Of satisfactory” and set the value  of it to 3.
5.PNG

5. Create a table using fields in NewTable, and make sure that select “Average” for value field.
6.PNG

6. Create slicer using department and year fields in source table and using them to filter the table visual. Power bi Desktop create relationship between NewTable and source table using Project field, thus it is ok to filter the table visual using the department and year slicers.
7.PNG

 


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
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

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

Hi @Pmags,

 

Do you want to create slicers using department and year fields  and then use the slicers to filter the New table? If that is the case, as there is no relationship between new table and source table, the slicers will not work.

You can perform the following steps to achieve your requirement.

1. Duplicate a query of your source table and rename the query to NewTable in Query Editor of Power BI Desktop.
1.PNG

2. Select the three columns (Efficacy, Resillience, Sustainability), then click “Unpivot columns” in the following screenshot.
2.PNG

3. Rename the “Attribute” column to Criteria.
3.PNG

4. Add a custom column named “Average Of satisfactory” and set the value  of it to 3.
5.PNG

5. Create a table using fields in NewTable, and make sure that select “Average” for value field.
6.PNG

6. Create slicer using department and year fields in source table and using them to filter the table visual. Power bi Desktop create relationship between NewTable and source table using Project field, thus it is ok to filter the table visual using the department and year slicers.
7.PNG

 


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Phil_Seamark
Employee
Employee

Here is one approach in DAX. 

 

Not sure where your Satisfactory aggregation comes from your sample data, so I hard coded it to 3.  But if you share more we can probably fix that for you.

 

New Table = UNION (
                    --- Efficacy ----
                    SUMMARIZECOLUMNS(
                        "Criteria" , "Efficacy", 
                        "Average Value" , AVERAGE(SourceTable[Efficacy]),
                        "Average Of satisfactory" , 3 )
                        ,
                    --- Resilience ----    
                    SUMMARIZECOLUMNS(
                        "Criteria" , "Resilience", 
                        "Average Value" , AVERAGE(SourceTable[Resillience]),
                        "Average Of satisfactory" , 3 )  ,                      
                    --- Sustainability ----    
                    SUMMARIZECOLUMNS(
                        "Criteria" , "Sustainability", 
                        "Average Value" , AVERAGE(SourceTable[Sustainability]),
                        "Average Of satisfactory" , 3 )                                
                        )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

The satisfactory aggregation is just a mandatory amount for each attribute. It isn't computed. I was able to make the exact same table which I referenced in the original post (thanks to your code!) to develop the radar chart but an issue came up. Since I want to make a splicer by DEPARTMENT and by YEAR I made a splicer using the data from the Source Table since the department and year was listed there hoping that the aggregation would automatically adjust given that the New Table used data from the Source Table but it isn't working. Any ideas?

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.