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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Lumpypillow
New Member

Calculating percentage of level above in matrix and displaying on line chart?

Hi Experts,

 

I am very new to PowerBI and am trying to basically create interactive line charts for layers of data with cellular data. This is more related to science than buiness but the concept should be the same. I have the data in a table like below: 

Lumpypillow_1-1720546709164.png

 

I created a hierarchy from this table into a matrix where I would like to display the count at each level and the percetange compared to the level above.

Lumpypillow_2-1720546721906.png

PowerBI however is calculating the % of the grand total but I would like to have it calculate values compared to just the level above, not from the total count. Finally once I have that done I would like to be able to display those percentages on a line chart that filters as I drill through levels. Any help would be greatly apprecaited!

 

1 ACCEPTED SOLUTION
NaveenGandhi
Super User
Super User

Hi @Lumpypillow 

Check the attached PBIX.

NaveenGandhi_0-1720549110853.png



Let me know if this works.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!


LinkedIn

View solution in original post

2 REPLIES 2
Lumpypillow
New Member

Works great, thanks!

NaveenGandhi
Super User
Super User

Hi @Lumpypillow 

Check the attached PBIX.

NaveenGandhi_0-1720549110853.png



Let me know if this works.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!


LinkedIn

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors