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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
rawiswarden
Helper I
Helper I

Calculate Total Excluding Row Contribution

Hello,

 

If I have a simple table like this, where amount is a measure.  What is the DAX to get the total of column Amount excluding that row?

 

As you can see, the What If Amount is just the total (194) less the amount for each person.  But I can't figure this out and it must be something simple.

 

NameAmountWhat If Amount
A22172
B20174
C38156
D40154
E12182
F34160
G28166
H0194
Total194 

 

I did the calculation with something like this:

 

= CALCULATE( sum(Dimension_Dealer[B]), ALL(Dimension_Dealer)) - [Booked Count]

But I'm trying to do this all in a calculate or interator function to learn.  Thanks!
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @rawiswarden 

try a measure like

Measure = 
calculate(sum(Table4[Amount]);FILTER(ALL('Table4');Table4[Name]<>SELECTEDVALUE(Table4[Name])))

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @rawiswarden 

try a measure like

Measure = 
calculate(sum(Table4[Amount]);FILTER(ALL('Table4');Table4[Name]<>SELECTEDVALUE(Table4[Name])))

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Awesome!  Selected value is what I needed to know.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.