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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Incorrect Total for Calculated Column

Hi

I have a calculated column called Percentage that shows the percentage of Col2 that is contained in Col1 (Simply: Col1/Col2 as a %). An example is shown below:

 

Col1Col2Percentage
10 100  10,00%
5 50000  0,01%
5000 20000  25,00%
5015 70100  35,01%

 

The issue is that the total row (shown in bold) sums up the percentages from the rows above (10% + 0.01% + 25% = 35.01%). What I WANT it to do is to follow the same calculation logic as the preceding rows. In this case the answer I expect would be (5015/70100 = 7.15%). How can I do this?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
Add column1 and column2 as measures. For example
Total Column1 = SUM ( TableName[Column1] )
Total Column2 = SUM ( TableName[Column2] )

Then:

Percentage Measure = DIVIDE ( [Total Column1], [Total Column2] )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 
Add column1 and column2 as measures. For example
Total Column1 = SUM ( TableName[Column1] )
Total Column2 = SUM ( TableName[Column2] )

Then:

Percentage Measure = DIVIDE ( [Total Column1], [Total Column2] )

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

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!

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.

Users online (25)