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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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