I want to change the data from row into to column and sum
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Sshasnk
8 - Asteroid
‎11-16-2022
03:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi I have dataset below where I have to group by class and sum the amount for each of the columns
Fund | Class | Amount | purchase | total net | sell |
ABC | A | 145 | 78 | 21 | 45 |
ABC | B | 123 | 46 | 23 | 23 |
ABC | A | 23 | 78 | 12 | 12 |
ABC | B | 14 | 54 | 32 | 0 |
Ouput:
Fund | Description | A | B |
ABC | Amount | 168 | 137 |
ABC | Purchase | 156 | 100 |
ABC | Difference | 12 | 37 |
ABC | Total net | 33 | 55 |
ABC | sell | 57 | 23 |
Difference = amount - purchase
I sort of know it can be done with the cross tab tool but I am using cross tab for 4 times, is there any other better way to do it
Labels:
3 REPLIES 3
Felipe_Ribeir0
16 - Nebula
‎11-16-2022
03:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
binuacs
21 - Polaris
‎11-16-2022
05:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Felipe_Ribeir0
16 - Nebula
‎11-20-2022
12:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
