Forum Discussion
NadaFathy193
2 years agoFrequent Visitor
remove all rows with same id when a condition applies.
Hi, i have multiple lines with same 'Problem Id' and i need to remove all lines related to this 'Problem Id' when this condition applies ('Request Type' = 'Infrastructure Chang').
MOVC
Resolver I
2 years agoYou want to create a conditional column where your request type is Infrastructure then 1 else 0.
Afterwards, duplicate this whole table and then group by on Problem ID with a Max aggregation on your conditional column to give a unique list of Problem IDs with 1 when they have infra and 0 if they never do.
You can then merge this back into the original table joining on Problem ID then filter out the 1's.
NadaFathy193
2 years agoFrequent Visitor
thank you so much 😊