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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
EmmaLiuLiu
Frequent Visitor

Really need help soon but my post is marked as spam

Hello,

 

I spent a long to write this post and create smaple data for it. My post got marked as spam. Tried 3 times and all got marked. Why? What's in there that could possibly looks like spam? I really need help soon! 

 

https://community.fabric.microsoft.com/t5/Desktop/How-to-identify-a-row-based-on-another-row/m-p/413...

 

Please unmark it.

 

6 REPLIES 6
v-jiewu-msft
Community Support
Community Support

Hi @EmmaLiuLiu ,
The post How to identify a row based on another row? - Microsoft Fabric Community  problem have been solved.

Please consider Accept current post as the solution.

 

Best Regards,

Wisdom Wu

v-jiewu-msft
Community Support
Community Support

Hi @EmmaLiuLiu ,

Based on the description, I got your post back to normal for you.

vjiewumsft_0-1725844667160.png

How to identify a row based on another row? - Microsoft Fabric Community

 

Best Regards,

Wisdom Wu

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

 

EmmaLiuLiu
Frequent Visitor

What I want to achieve:

  1. If it's a duplicate in column "key", the column "Quantity" has a positive value that has an offset negative value in another row, and the Plant codes are different. Then mark the negative quantity row "delete". Like the last two rows, I want to keep the last second one and delete the last one. So these two records indicate the same transaction. One receiving and one supplying. I only want to keep one.
  2. If the movement type "351" is a duplicate in column “key”, the plant codes are the same, then mark "delete" to the row that has a Posting Date that’s no later than the one in the row with movement type “352” . So movement 352 has a corresponding movement 351, which needs to be identified.

It can be in two columns since these are two different requests there. 

 

Sample table:

PlantMaterialMovement typePurchase orderItemkeyPosting DateQuantity
64170-810-030-8053514000121095700-810-030-8054000121095703/13/20248.00
64170-810-030-8053524000121095700-810-030-8054000121095703/13/2024-1.00
64170-810-030-8053514000121095700-810-030-8054000121095708/8/20233.00
64170-810-034-5173514000121095900-810-034-5174000121095908/7/20231.00
66020-810-015-6543514000121902100-810-015-6544000121902109/5/20232.00
66020-810-015-6543514000121902100-810-015-65440001219021011/8/20233.00
66020-810-015-61935140001219021000-810-015-619400012190210010/3/20232.00
66020-810-018-91035140001219022100-810-018-910400012190221010/18/20234.00
66020-810-020-80735140001219022200-810-020-807400012190222010/18/20233.00
66020-810-018-90835140001219022300-810-018-908400012190223010/18/202312.00
66020-810-018-90835240001219022300-810-018-908400012190223010/19/2023-6.00
66020-810-018-90835140001219022300-810-018-908400012190223011/2/20236.00
64820-810-037-4713514000122926100-810-037-47140001229261010/9/20231.00
65090-810-037-4713514000122926100-810-037-47140001229261010/9/2023

-1.00

 

What I want to achieve:

 

PlantMaterialMovement typePurchase orderItemkeyPosting DateQuantityTarget Column 1Target Column 2
64170-810-030-8053514000121095700-810-030-8054000121095703/13/20248.00 Delete
64170-810-030-8053524000121095700-810-030-8054000121095703/13/2024-1.00 Keep
64170-810-030-8053514000121095700-810-030-8054000121095708/8/20233.00 Keep
64170-810-034-5173514000121095900-810-034-5174000121095908/7/20231.00 Keep
66020-810-015-6543514000121902100-810-015-6544000121902109/5/20232.00 Keep
66020-810-015-6543514000121902100-810-015-65440001219021011/8/20233.00 Keep
66020-810-015-61935140001219021000-810-015-619400012190210010/3/20232.00 Keep
66020-810-018-91035140001219022100-810-018-910400012190221010/18/20234.00 Keep
66020-810-020-80735140001219022200-810-020-807400012190222010/18/20233.00 Keep
66020-810-018-90835140001219022300-810-018-908400012190223010/18/202312.00 Delete
66020-810-018-90835240001219022300-810-018-908400012190223010/19/2023-6.00 Keep
66020-810-018-90835140001219022300-810-018-908400012190223011/2/20236.00 Keep
64820-810-037-4713514000122926100-810-037-47140001229261010/9/20231.00Keep 
65090-810-037-4713514000122926100-810-037-47140001229261010/9/2023-1.00Delete 

 

rajendraongole1
Super User
Super User

Hi @EmmaLiuLiu - Can you please copy your question and paste again?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





@rajendraongole1 

I tried 3 times, the system marked my post as a spam all 3 time. Let me see if I can paste in this post as a reply. 

Hi @EmmaLiuLiu - this message is visible for us, can you please post the same here.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.