Multiple Row Sum and statement Condition
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
Tommy23
7 - Meteor
‎02-15-2023
01:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I would like to Sum two value ( Revenue and Margin) and having a new row when it is wrote " Marge" with the result of the sum
Input:
Category | Number |
Margin | 333 |
Below EBID | 2024 |
EBIT | 2365 |
Revenue | 650 |
I would like to sum Revenue and Margin (results will be 983 in the category Marge)
Thanks in advance for you help
Output:
Category | Number |
Margin | 333 |
Below EBID | 2024 |
EBIT | 2365 |
Revenue | 650 |
Marge | 983 |
Labels:
- Labels:
- Best Practices
- Datasets
- Transformation
1 REPLY 1
17 - Castor
‎02-15-2023
01:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @Tommy23 here's one way you could go about this -
1) Isolate the rows of interest
2) Summarize to get the total
3) Add the new 'Category'
4) Union this new total back on to the main dataset
