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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Ktt
Frequent Visitor

Percentage of parent column total (parent row total)

It is possible to show the % of column total (row total).
Is it also possible show the % of parent column total (parent row total) ? 

For example:

We have a number of shops: Shop1, Shop2, Shop3, .... that all sell ice cream.
There is a wide variety of ice cream flavours: vanilla, chocolate, caramel...
What I need to know is the % percentage of flavours sold per month.

The first table has the count of each ice cream flavour.

The second table shows the percentage of the row total, that means for example if you sum up the % of Shop1 you get 100%.
This is what I have in PowerBI at the moment.

The third table is what I need to get in PowerBI. 
As you can see Shop1 sold 50 chocolate ice creams in June, the % of chocolate ice creams in June is 50/(50+27)= 65%


icecreamiscream.png

Thanks in advance! I'm pretty new with PowerBI so maybe I missed the solution somewhere.




1 ACCEPTED SOLUTION
Ktt
Frequent Visitor

FOUND A SOLUTION!!!!
I did everything that was shown here
https://dwhgeek.wordpress.com/2015/01/18/percent-of-parent-in-hierarchy-dax/

Only replaced SUM with COUNT.
So alltogether it looked smth like this

ParentMeasure =
CALCULATE(
COUNT(Table[flavour]),ALL(Table[flavour])
)

RatioToParent =
COUNT(Table[flavour])/
ParentMeasure
)

View solution in original post

2 REPLIES 2
Ktt
Frequent Visitor

FOUND A SOLUTION!!!!
I did everything that was shown here
https://dwhgeek.wordpress.com/2015/01/18/percent-of-parent-in-hierarchy-dax/

Only replaced SUM with COUNT.
So alltogether it looked smth like this

ParentMeasure =
CALCULATE(
COUNT(Table[flavour]),ALL(Table[flavour])
)

RatioToParent =
COUNT(Table[flavour])/
ParentMeasure
)

v-sihou-msft
Microsoft Employee
Microsoft Employee

@Ktt

 

If your question is solved, please put your solution in a "REPLY" instead of editing your question context so that you/moderator can mark your thread as "Solved".

 

Regards,

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.