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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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