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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Giten
Regular Visitor

Average in sunburst chart

I'm creating a sunburst chart Microsoft provided (v2.6.0.0). Each value is calculated as the sum of the values of the previous level in hiearchy. Is it possible to calculate it based on the average?

 

Using the example Microsoft provided (with a little edit from my side):

 

 

CategorySubcategoryAreaSales
Category1SC1Asia5
Category1SC1Europe1
Category1SC1North America9
Category1SC2Asia6
Category1SC2Europe2
Category2SC3Asia7
Category2SC3Europe3
Category2SC3North America11
Category2SC4Asia8
Category2SC4Europe4
Category2SC4North America12

 

I need the sales value of SC1 to be 5, not 15. And SC2 needs to be 4, not 8.
Furthermore, I need the sales value of Category1 to be 4,5 (the average of SC1 and SC2), not 5 (the average of the 5 areas).

 

I can't seem to get the table in the right format, I hope it's readable.

8 REPLIES 8
Anonymous
Not applicable

Hi @Giten ,

Please create a new measure.

Subcategory_Avg_Sales = 
AVERAGEX(
    SUMMARIZE(
        'Table',
        'Table'[Category],
        'Table'[Subcategory],
        "AverageSales",
        AVERAGE('Table'[Sales])
    ),
    [AverageSales]
)

Please check if this is the output you are expecting。

1.png

Best regards,

Lucy Chen

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

Hi Lucy Chen,

Thanks! The table shows the right average (also for Category1 and Category2). However, if I put it in a sunburst, the subcategories and categories are still summed up. I guess that's what @ryan_mayu meant.

 

P.S. I'm new here, how do I attach a pbix?

Anonymous
Not applicable

Hi @Giten ,

Thank you for your kind reply!

I apologize for using the wrong visualization.

I made a lot of attempts. It's true that he can't calculate the average of the previous level (Sunburst), but I found another visualization.

6.png

Although he still can't show the averages of the categories, we can view the averages of the different categories in a table.

7.png8.png9.png10.png

In addition, you need to be a super user to attach files on messages.

The other option is to put your files in a dropbox, onedrive or googledrive folder and share the link with the community.

Best regards,

Lucy Chen

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

 

Thanks for all the effort, this helps a bit. Still, I'm looking for averages in the sunburst itself, but maybe that's just not possible. I'll keep looking.

Anonymous
Not applicable

Hi @Giten ,

Thank you for your kind reply!

The same goes for us, I will contact you if there is any follow up, and if you find a solution to the problem, please share it here as well, it will help more people!

Thank you for your understanding!

Best regards,

Lucy Chen

Thanks! If I find a solution, I will post it here.

Anonymous
Not applicable

Hi @Giten ,

Once you've shared your solution, please accept your own reply as the answer! It will make it easier for other users who may be experiencing the same problem to find a solution.

Thank you for your understanding!

Best regards,

Lucy Chen

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

 

ryan_mayu
Super User
Super User

I tried this chart. SC1 level can use average. However, the higher level will sum up automatically. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.