Beginner - managing a wide table, creating sum of..
Hi there, newbie here.
I have a wide table with a column format a bit like this:
name, question1, OPP1, EXP1, ACH1, question2, OPP2, EXP2, ACH2
I will need to make calculations for each row on the values (integers) grouped by OPP, EXP, ACH.
I thought to create new columns with the sum of OPPx, EXPx and ACHx (where x corresponds to the number in the column name) and append these to the end of the table to create a structure like this:
name, question1, OPP1, EXP1, ACH1, question2, OPP2, EXP2, ACH2, SUM OPP, SUM EXP, SUM ACH
I tried the group by and formula tiles in the ETL and also tried to create a beast mode calculation without success.
There are 37 question columns in total, with 7 answer columns each, per row, making for a fairly extensive table...
Any hints are gratefully received!😊
Thanks
Barrie
Answers
-
@bdx I don't believe there is a way to reference the column name in your calculation, though it should be a fairly straightforward (albeit tedious) solution. Since you want to calculate across values in the same row, you can set up either a formula tile or beast mode like this for each new column:
`OPP1` + `OPP2` + `OPP3` + ... + `OPP37`
1 -
@bdx If you want to use the Group By and not need to type out each item and modify your beast mode each time a question is added, you can use the Unpivot tile in ETL. This can change your data to be:
question 1 OPP1
question 1 EXP1
question 1 ACH1
question 2 OPP2
etc.
Or however you want the unpivot to happen. This can then let you use Group By and you can use beast modes to calculate totals.
https://domohelp.domo.com/hc/en-us/articles/360044951294-Magic-ETL-Tiles-Pivot
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 101 SQL DataFlows
- 622 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 748 Beast Mode
- 59 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 396 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 125 Manage
- 122 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 109 Community Announcements
- 4.8K Archive