Hi Team,
I have a dataset with the below format.
acct,date,resp-code
1234,0102,00
1234,0102,00
1234,0102,01
1234,0102,01
1234,0102,00
2341,0102,02
looking for the output in the below format.
acct,date,resp-code,count,SuccessRate
1234,0102,00,03
1234,0102,00,03
1234,0102,01,02
1234,0102,01,02
1234,0102,00,03
2341,0102,02,01,NeverSuccess1
Note:- Pivot should not be used.
SuccessRate to be mentioned as "NeverSuccess"with the transaction count if it does not have a respcode of 00 anytime.
Appreciate you help!!
Thanks in Advance.
I have a dataset with the below format.
acct,date,resp-code
1234,0102,00
1234,0102,00
1234,0102,01
1234,0102,01
1234,0102,00
2341,0102,02
looking for the output in the below format.
acct,date,resp-code,count,SuccessRate
1234,0102,00,03
1234,0102,00,03
1234,0102,01,02
1234,0102,01,02
1234,0102,00,03
2341,0102,02,01,NeverSuccess1
Note:- Pivot should not be used.
SuccessRate to be mentioned as "NeverSuccess"with the transaction count if it does not have a respcode of 00 anytime.
Appreciate you help!!
Thanks in Advance.