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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Sowdeswari
New Member

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 @Sowdeswari 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 @Sowdeswari 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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.