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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Ania26
Helper III
Helper III

Total without one colum

Hello, 
I would like to create measue which calculates Total for each State but Grand Total shows sum for all States except for values from column A:

StateABCDGrand TotalShould be 
California111143
Colorado222286
Connecticut3333129
Delaware44441612
Florida55552015
Illinois66662418
Grand Total212121218463
1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Ania26 

Assuming your actual data is unpivoted (A, B, C, D are in a single column with another column for their corresponding values), try:

measure without A in total = 
IF (
    NOT ( HASONEVALUE ( 'table'[ABCD colummn] ) ),
    CALCULATE ( [your measure], KEEPFILTERS ( 'table'[ABCD colummn] <> "A" ) ),
    [your measure]
)




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @Ania26 

Assuming your actual data is unpivoted (A, B, C, D are in a single column with another column for their corresponding values), try:

measure without A in total = 
IF (
    NOT ( HASONEVALUE ( 'table'[ABCD colummn] ) ),
    CALCULATE ( [your measure], KEEPFILTERS ( 'table'[ABCD colummn] <> "A" ) ),
    [your measure]
)




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Tahreem24
Super User
Super User

@Ania26  Create a Measure like mentioned below:

Grand Total = SUM('Table'[B])+SUM('Table'[C])+SUM('Table'[D])
 
Tahreem24_0-1759826357913.png

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
GrowthNatives
Solution Specialist
Solution Specialist

Hi @Ania26 ,
Use ISINSCOPE (detects whether a row value is in scope) and CALCULATE with ALL(...)[Column] <> "A".

1. Create this measure (replace table/column names with yours):

Total_Adjusted =
VAR Base = SUM( 'YourTable'[Value] )                -- per-cell total
VAR IsGrand = NOT( ISINSCOPE( 'YourTable'[State] ) ) -- true for the bottom grand total row
RETURN
IF(
    IsGrand,
    CALCULATE( Base,
               ALL( 'YourTable'[ColumnName] ),       -- remove any column filters
               'YourTable'[ColumnName] <> "A"        -- exclude column A
    ),
    Base
)


2. Put Total_Adjusted in your Matrix values

- Per-state rows will show the normal sum (A+B+C+D).

- The Grand Total row (bottom) will show the overall sum excluding column A (i.e. totalAllColumns − totalA).

3. Notes / variants

- If you have multiple row levels, detect the exact subtotal level with ISINSCOPE on the correct field, or use HASONEVALUE('YourTable'[State]) if appropriate.

- If your columns are actual separate numeric fields (not a single ColumnName pivot), unpivot in Power Query or sum them explicitly in Base (Base = 'T'[A]+'T'[B]+...).

- If you want to also exclude A from intermediate column subtotals, adjust the IsGrand test accordingly.

Hope this solution helps you make the most of Power BI! If it did, click 'Mark as Solution' to help others find the right answers.
💡Found it helpful?
Show some love with kudos 👍 as your support keeps our community thriving!
🚀Let’s keep building smarter, data-driven solutions together
!🚀 [Explore More]

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