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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
ht2567306
Helper I
Helper I

How to delete the two rows that are offset each other

Hi all,

 

I have a sales table and one column is called "shipment quantity", some quantities are negative and I want to delte them, but the harder part is that I also want to delete the associated positive one. 

Screen Shot 2020-08-19 at 4.55.07 PM.png


For example, I surely want to delete line 3, but I also need to delete line 2. Line 2 and line 3 are exactly the same except for shipment quantity.

 

Thank you in advance,

7 REPLIES 7
Anonymous
Not applicable

HI @ht2567306 

 

I would rather sum them up and get 0. and filter to exclude 0.

Hi man,

 

How do you sum it up?

I have many rows, most of them are normal ones with shipment quantity a positive number.

 

How do you only sum up those 2 that are problematic.

@Anonymous 

ht2567306
Helper I
Helper I

what happened in reality is that some shipments are shipped and bounced back. hope this helps,

Anonymous
Not applicable

HI @ht2567306 

 

measure = Calculate(sum(table[col]), allexcept(table,table[column]))

And filter to exclude zero.

@Anonymous hey,

would you mind explaning a bit about 

measure = Calculate(sum(table[col]), allexcept(table,table[column]))

I dont think this will do the trick.

 

Hi @ht2567306 ,

 

Create a calculated column:

 

 

Column = CALCULATE(SUM('Table'[shipment quantity]),ALLEXCEPT('Table','Table'[SO NO],'Table'[date]))

 

 

Then filter your data:

 

Capture3.PNG

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric 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.