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
Anonymous
Not applicable

Calculate percentage of subcolumn

Hi Guys

I am trying to calculate the % of the subtotal instead of overall. 

In the example below, SA Found_Own_Employment flag of N or Y should show the % of total SA, instead of grand total. 

Is there a way to solve this? 

 

adnanzakir_0-1616751893069.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Guys. I've actually found a solution. The formula for % of parent total is 

% = DIVIDE( SUM(Placements[Column 2]), CALCULATE(SUM(Placements[Column 2]), ALL(Placements[Found_Own_Employment_Flag]))).
Thanks for your help @Jihwan_Kim @amitchandak 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi Guys. I've actually found a solution. The formula for % of parent total is 

% = DIVIDE( SUM(Placements[Column 2]), CALCULATE(SUM(Placements[Column 2]), ALL(Placements[Found_Own_Employment_Flag]))).
Thanks for your help @Jihwan_Kim @amitchandak 
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 
Please correct me if I wrongly understood.

If you are using ALL function like,

ALL (Table),

then, please try to replace something like, 

ALL (Table[StreamType])

 

I hope it helps.

Thanks.

 

Jihwan Kim

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


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Hi @Jihwan_Kim thanks for the message. Can you please specify the whole formula. I am actually after % of parent total

Hi, @Anonymous 

Sorry, I cannot know the whole formula by seeing the visualization only.

Could you please share your formula, with hiding some of the important information if there is any?

Then, I can try to amend it.

 

Jihwan Kim

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


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
amitchandak
Super User
Super User

@Anonymous , You can try like. If need , you can have additional removefilter

 

divide([measure], calculate([measure], removefilters(Table, Table[Stream Type])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

hi @amitchandak thanks for the message. Can you please specify the whole formula. I am actually after % of parent total

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.