My sample data looks like the following:
| Date | F1 | F2 | F3 | F4 | Amount1 | Amount2 |
| 1-1-2018 | t | u | a | q | 50 | 60 |
| 1-1-2018 | y | i | b | w | -10 | -60 |
| 1-2-2018 | c | p | c | e | -10 | 709 |
| 1-2-2018 | b | o | d | r | 500 | 20 |
The actual data is really huge and contains about 1 lakh records. I want to transform my data to get the below result:
| f1 | f2 | f3 | f4 | 1-1-2018_Amount1 | 1-1-2018_amount2 | 2-1-2018_amount1 | 2-1-2018_amount2 |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
Right now, I am using two cross tabs in parallel where in Cross tab 1 - I take New Colum headers as Date and value as sum of amount1 and I add another cross tab 2 - I take column headers as Date and value as sum of amount2. But, it's getting very difficult to align them and name them
What's the most efficient way of doing it?
Thanks in advance