I can't figure out how to group rows. I want to group and transform the rows from this:
...to this:
Row denormalizer seems the most appropriate, but I can't tell it to aggregate the amount column. Help please!
account | websiteId | currency | type | amount |
paypal | 1 | EUR | shipped | 25 |
paypal | 1 | GBP | income | 14.5 |
paypal | 1 | GBP | shipped | 12 |
paypal | 1 | GBP | unshipped | 3 |
paypal | 2 | EUR | shipped | 3 |
paypal | 2 | EUR | unshipped | 6.5 |
paypal | 2 | GBP | income | 45 |
secpay | 3 | GBP | income | 34 |
...to this:
account | websiteId | currency | income | shipped | unshipped |
paypal | 1 | EUR | 14.5 | 25 | 0 |
paypal | 1 | GBP | 0 | 12 | 3 |
paypal | 2 | EUR | 45 | 3 | 6.5 |
paypal | 2 | GBP | 0 | 0 | 0 |
secpay | 3 | GBP | 34 | 0 | 0 |
Row denormalizer seems the most appropriate, but I can't tell it to aggregate the amount column. Help please!