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 August 31st. Request your voucher.

Reply
Lisa_2021
Helper II
Helper II

override total for calculation groups created in tabular editor

Hi,  Does anyone know how to override totals with calculation groups created in tabular editor?

My total line for Sales and Weighted Average Cost are fine. 

Lisa_2021_0-1649798594921.png

 


However, since the target cost is set by policy, I need to override the total for Target Cost (since it is not a sum, average, median, max..etc). 

The target cost for each customer is the same # every month and will not change.  Just like the total target cost.  The goal is to compare the weighted average cost versus target cost.

Thanks a million!
Lisa

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Lisa_2021 , You can use isfiltered or isinscope to change grand total

 

if(isinscope[Table[Customer]), [M1], [M2])

 

This should work in the calculation group. if you using selectedmeasure the it requires some calculation

 

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Lisa_2021 , You can use isfiltered or isinscope to change grand total

 

if(isinscope[Table[Customer]), [M1], [M2])

 

This should work in the calculation group. if you using selectedmeasure the it requires some calculation

 

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

Thanks amitchandak! The isinscope function worked!  Much appreciated!   

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.