Transpose columns into multiple rows
I have this data set:
Member ID | 23-Jan | 23-Feb | 23-Mar | 23-Apr | 22-Jan | 22-Feb | 22-Mar | 22-Apr |
---|---|---|---|---|---|---|---|---|
123 | 33 | 41 | 23 | 23 | 32 | 32 | 34 | 34 |
456 | 4 | 15 | 15 | 15 | 6 | 6 | 2 | 2 |
789 | 2 | 4 | 8 | 8 | 8 | 4 | 8 | 12 |
111 | 24 | 24 | 26 | 26 | 27 | 22 | 27 | 27 |
222 | 3 | 12 | 12 | 13 | 14 | 14 | 12 | 12 |
333 | 2 | 1 | 1 | |||||
444 | 2 | 2 | 2 | 5 | 6 | 8 | 10 | 11 |
The date columns represent the amount of logins to their account by month. I want to be able to consolidate this data into one column so that I can put this into cards more easily. I assume there would be \ 33 rows for member "123" that say Jan 23, and then 41 rows for the same member that show Feb 23, etc. This will be a monthly update, so the less manual labor the better.
How can I combine these columns into 1? Thanks in advance!
Best Answers
-
You can utilize Magic ETL and the Dynamic Unpivot tile to take your columns and convert it to rows.
Here's more information:
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
Just to be clear, using the Dynamic Unpivot tile in ETL will not quite get the results you described. You would end up with three columns:
"MemberID" | "Date" | "Value"
123 23-Jan 33
You would not get 33 rows for member 123 in Jan.
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0
Answers
-
You can utilize Magic ETL and the Dynamic Unpivot tile to take your columns and convert it to rows.
Here's more information:
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
Just to be clear, using the Dynamic Unpivot tile in ETL will not quite get the results you described. You would end up with three columns:
"MemberID" | "Date" | "Value"
123 23-Jan 33
You would not get 33 rows for member 123 in Jan.
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive