Forum Discussion
ghostonpower225
4 years agoFrequent Visitor
Delete Row after condition is met
I am trying to delete status "P" row once there is a date in due date actual for status "I". I can not seem to wrap my head around this one. Any support or help is much needed. Status I...
HotChilli
Community Champion
4 years agopost your advanced editor code here and i'll have a look
- ghostonpower2254 years agoFrequent Visitor
let
Source = Blank,
#"Removed Duplicates" = Table.Distinct(Source, {"041_circuit_layout_order_base_nbr"}),
#"Added Custom" = Table.AddColumn(#"Removed Duplicates", "DTAndI", each if [CLO_Status] = "I" and [Due_Date_Actual] <> null then 1 else 0),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Custom.1", each let AnID = [Combined_CLLI] in if [CLO_Status] = "P" then Table.MatchesAnyRows(#"Added Custom",each [Combined_CLLI] = AnID and [DTAndI] = 1) else null)
in
#"Added Custom1"