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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
jacobmiller2322
Frequent Visitor

Sum values with a certain group excluded

Hi,

 

I am trying to do a project and am running into an issue.

 

I am attempting to take the sum of a column, but want to only take the sum of the rows that are under a certain grouping of 22 I have made.

 

Normally I would be fine, but I have 22 groupings and want to take the sum of $ for 21/22 of them.

 

Here is an example:

Group  $ Amt

Parts  $75 

Parts   $65

Raw  $55

FG  $75

Rent  $85

Rent  $15

In this example I would like to find out how to sum the $ with everything besides the raw group. 

 

So basically how would I write a measure that would return $315 in this example

 

 

2 ACCEPTED SOLUTIONS
Mkarwa-123
Resolver II
Resolver II

@jacobmiller2322  

Total = CALCULATE(SUM('Table'[Amt]), 'Table'[Grp] <> "Raw")

View solution in original post

Mkarwa-123
Resolver II
Resolver II

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

View solution in original post

2 REPLIES 2
Mkarwa-123
Resolver II
Resolver II

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

Mkarwa-123
Resolver II
Resolver II

@jacobmiller2322  

Total = CALCULATE(SUM('Table'[Amt]), 'Table'[Grp] <> "Raw")

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.