Hi,
I have a dataset which looks like:
except that, there could be multiple columns col1-col500 and multiple output cols output1-output10. The image above shows only one col and two outputs. The outputs values are same but they might note be in real case.
I want to convert this data to somewhat like this format:
No col1 number output
1 10000 1 0.6288623
2 10000 2 0.6288623
3 10001 1 0.9900...
4 10001 2 0.9900...
It is also possible that I have output5 and output7 (or any number), in that case it would look like this
No col1 number output
1 10000 5 0.6288623
2 10000 7 0.6288623
3 10001 5 0.9900...
4 10001 7 0.9900...
I have tried using conditional split but that doesnt serve the purpose.
After that, I intend to produce some group aggregates:
Group By Id and calculate output*sum(Value), Value is another float column. I have tried Aggregate activity, but it raises error that output should be part of GroupBy which doesnt make sense. Also, If I use expression $$ = first($$) then it returns only the first output for each groupby.
Thanks