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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
alssingh
New Member

% of columns - how to stop summing

Hi all,

 

Here is my data table; i have calculated the % of rev column:

 

The Total REV column is the total amount at each company level where the type is 'Revenue'. So for Company  A this is 200 and for B this is 100.

 

alssingh_0-1684103209546.png

 

When i table the data this is what i get:

alssingh_2-1684103393952.png

 

I would like the third column to read as 100% total for sales, 19% (57/300) for expense group 2 and 22% (65/300) for expense group 1.

When i filter by 'Company' the % are correct:

alssingh_4-1684103553863.png

alssingh_5-1684103567015.png

 

So to summarise, the % is correct when looking at filtered Company level, but the overall is incorrect....i have tried to select the 'Don't Summarise' option for the % of rev column but this is not ideal as i would like the data summarised by Category:

alssingh_6-1684103669632.png

 

Thanks for your help!

 

4 REPLIES 4
Kishore_KVN
Super User
Super User

Hello @alssingh , 

Firstly as you are not mentioning the split of Company in the table visual, you are not finding the correct percentages. 

Secondly your requirement will not deliver clear picture to the end users. But still as you have mentioned percentages are not calculated like that. 

1. For sales it will be 300/500 which is 60% 

2. For Event Group 1 it will be 65/400 which is 16.25%

3. For Event Group 2 it will be 57/300 which is 19%

If this is your requirement, then your column should be written like this:

 

% Contr = CALCULATE(SUM('Table'[Amount])/SUM('Table'[TotRev]),ALLEXCEPT('Table','Table'[Cat]))

 

Then drag it into the table visual where you have to use dont summarize as well. Then your output looks like this:

Kishore_KVN_0-1684121741507.png

 

If this explanation helped you in achieving your requirement, please mark my post as solution so that other can reach to it quickly. Thanks. 

amitchandak
Super User
Super User

@alssingh , You should always create a measure

 

% = divide(Sum(Table[Amount]), sum(Table[Total Rev]))

 

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

Unfortunately that didn't work. This is what i get when i try:

 

alssingh_1-1684120442019.png

 

@Kishore_KVN , if you can put the Total Rev in visual I can test that. But seem fine to me


Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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