tejapowerbi
New Member
- Joined
- Nov 30, 2018
- Messages
- 19
Hello,
I want to remove receipts no which have opposite values (Y vs N,1 vs -1 etc.).if each receipt's row has opposite row. I.e. if also will be row 500.2 (with any content) - receipt 500 will not be removed.
[TABLE="width: 463"]
<tbody>[TR]
[TD]Receipt No[/TD]
[TD]Indicator[/TD]
[TD]Count[/TD]
[TD]Rate[/TD]
[TD]Region ID[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]500[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]100[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]600[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]200[/TD]
[TD]12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]601[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]300[/TD]
[TD]13[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]500.1[/TD]
[TD]Y[/TD]
[TD]-1[/TD]
[TD]-100[/TD]
[TD]-11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]603[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]400[/TD]
[TD]14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 6"]Final Result[/TD]
[/TR]
[TR]
[TD]Receipt No[/TD]
[TD]Indicator[/TD]
[TD]Count[/TD]
[TD]Rate[/TD]
[TD]Region ID[/TD]
[TD]Comments[/TD]
[/TR]
[TR]
[TD]500[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]100[/TD]
[TD]11[/TD]
[TD]Remove[/TD]
[/TR]
[TR]
[TD]500.1[/TD]
[TD]Y[/TD]
[TD]-1[/TD]
[TD]-100[/TD]
[TD]-11[/TD]
[TD]Remove[/TD]
[/TR]
[TR]
[TD]600[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]200[/TD]
[TD]12[/TD]
[TD]Keep[/TD]
[/TR]
[TR]
[TD]601.1[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]300[/TD]
[TD]13[/TD]
[TD]Keep[/TD]
[/TR]
[TR]
[TD]603.2[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]400[/TD]
[TD]14[/TD]
[TD]Keep[/TD]
[/TR]
</tbody>[/TABLE]
I want to remove receipts no which have opposite values (Y vs N,1 vs -1 etc.).if each receipt's row has opposite row. I.e. if also will be row 500.2 (with any content) - receipt 500 will not be removed.
[TABLE="width: 463"]
<tbody>[TR]
[TD]Receipt No[/TD]
[TD]Indicator[/TD]
[TD]Count[/TD]
[TD]Rate[/TD]
[TD]Region ID[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]500[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]100[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]600[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]200[/TD]
[TD]12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]601[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]300[/TD]
[TD]13[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]500.1[/TD]
[TD]Y[/TD]
[TD]-1[/TD]
[TD]-100[/TD]
[TD]-11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]603[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]400[/TD]
[TD]14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 6"]Final Result[/TD]
[/TR]
[TR]
[TD]Receipt No[/TD]
[TD]Indicator[/TD]
[TD]Count[/TD]
[TD]Rate[/TD]
[TD]Region ID[/TD]
[TD]Comments[/TD]
[/TR]
[TR]
[TD]500[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]100[/TD]
[TD]11[/TD]
[TD]Remove[/TD]
[/TR]
[TR]
[TD]500.1[/TD]
[TD]Y[/TD]
[TD]-1[/TD]
[TD]-100[/TD]
[TD]-11[/TD]
[TD]Remove[/TD]
[/TR]
[TR]
[TD]600[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]200[/TD]
[TD]12[/TD]
[TD]Keep[/TD]
[/TR]
[TR]
[TD]601.1[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]300[/TD]
[TD]13[/TD]
[TD]Keep[/TD]
[/TR]
[TR]
[TD]603.2[/TD]
[TD]N[/TD]
[TD]1[/TD]
[TD]400[/TD]
[TD]14[/TD]
[TD]Keep[/TD]
[/TR]
</tbody>[/TABLE]