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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors