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! Request now

Reply
Anjunadeep
New Member

How to add "% of Total" row at the bottom of the table?

Hello everyone, 

 

I have this table currently built on powerbi,

 

Anjunadeep_0-1644865327452.png

 

The values are Balances

 

I want to add a % of Total row at the bottom for each column. The formula would look like this :

 

3,194,443 / 7,828,577

2,246,932 / 7,828,577

 

This formula should report until last total for column 181+. 

 

Any suggestions? Thanks in advance for your help! 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anjunadeep ,

 

Please try to create a measure like below:

Total2 =
IF(ISBLANK(MAX('Table'[id]))=FALSE(),
IF(COUNT('Table'[id])=COUNTX(FILTER(ALL('Table'),'Table'[group]=MAX('Table'[group])),'Table'[id]),
FORMAT(DIVIDE(SUM('Table'[value]),CALCULATE(SUM('Table'[value]),ALL('Table'))),"Percent"),
SUM('Table'[value])))

 

Vlianlmsft_0-1645166655306.png

 

 

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

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Anjunadeep ,

 

Please try to create a measure like below:

Total2 =
IF(ISBLANK(MAX('Table'[id]))=FALSE(),
IF(COUNT('Table'[id])=COUNTX(FILTER(ALL('Table'),'Table'[group]=MAX('Table'[group])),'Table'[id]),
FORMAT(DIVIDE(SUM('Table'[value]),CALCULATE(SUM('Table'[value]),ALL('Table'))),"Percent"),
SUM('Table'[value])))

 

Vlianlmsft_0-1645166655306.png

 

 

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

amitchandak
Super User
Super User

@Anjunadeep , I doubt you can add an additional row , but you can change grand total using isinscope or

hasonevalue

 

if( isinscope([Row Column]) , [Measure], divide([Measure], calculate([Measure], allselected())) )

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

 

 

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

Power BI Monthly Update - November 2025

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

Top Solution Authors