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

How to Calculate Sum in Grand Total instead of taking Automatic function

We are migrating the report from Tableau to Power BI. In Tableau we could see the function like Sum, Automatic etc. for the Grand total. But the Similar function is not available in Power BI. Need a help to do Sum in Grand Total instead of taking Automatic function.

Tableau:

Sowdeswari_0-1740719999801.jpeg

Power BI :

Sowdeswari_1-1740720052100.png

Calculation used for this coulmn:

Additional Cost due to Expedite (Kgs) = IF([Standard Kgs]=BLANK(),BLANK(),[Expedited Kgs]* 'shp_data'[Delta in Expedite & Standard Cost per Kg])
The Grand total should take the Sum of this column instead using the above calculation.
1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

Hi @Anonymous You could go for a measure which overrides this 

  • Define a custom measure for the sum:

    Additional Cost Total = IF( ISINSCOPE('Table'[RowIdentifier]), [Additional Cost due to Expedite (Kgs)], SUMX('Table', [Expedited Kgs] * 'shp_data'[Delta in Expedite & Standard Cost per Kg]) )
  • Use this measure in your visual: Replace your existing measure with this custom measure, and the Grand Total will display the sum.

View solution in original post

1 REPLY 1
Akash_Varuna
Super User
Super User

Hi @Anonymous You could go for a measure which overrides this 

  • Define a custom measure for the sum:

    Additional Cost Total = IF( ISINSCOPE('Table'[RowIdentifier]), [Additional Cost due to Expedite (Kgs)], SUMX('Table', [Expedited Kgs] * 'shp_data'[Delta in Expedite & Standard Cost per Kg]) )
  • Use this measure in your visual: Replace your existing measure with this custom measure, and the Grand Total will display the sum.

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
Top Kudoed Authors