I have the following lookup:
C1 | C2| C3| C4
===|===|===|====
A | 1 | x | test
===|===|===|====
A | 2 | y | test
===|===|===|====
B | 1 | x | test
===|===|===|====
B | 1 | y | test
===|===|===|====
B | 1 | z | test
I want this to be converted to:
C1 | C2| C3| C4
===|===|===|====
B | 1 | x | test
===|===|===|====
B | 1 | y | test
===|===|===|====
B | 1 | z | test
So the idea is that if for unique value of C1, if there are multiple values in C2, the such combinations of C1 + C2 should be filtered out.
What I tried was:
| inputlookup LUT.csv
| fillnull value="NULL"
| stats list(*) as * dc("C2") as count by "C1"
| where count=1
but this results in:
C1 | C2 | C3 | C4
===|=======|=======|==============
B | 1,1,1 | x,y,z | test,test,test
I DONOT want comma separated values. I want different row.