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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
pranit828
Community Champion
Community Champion

HI @ht2567306 

 

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





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

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.

ht2567306
Helper I
Helper I

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

HI @ht2567306 

 

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

And filter to exclude zero.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

@pranit828 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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