How to split values from one column to multiple columns?

I am working with retailer sales reports and sometimes they are a bit messy.
Right now, one our retailers reports sales in this format like this:
Product | Units sold |
---|---|
SKU 1 | 45 |
SKU 2 | 10 |
SKU 3 | 94 |
SKU 4 | 48 |
SKU 5 | 12 |
SKU 6 | 19 |
SKU 7 | 36 |
SKU 8 | 56 |
SKU 9 | 48 |
Total Online | 368 |
SKU 1 | 56 |
SKU 2 | 13 |
SKU 3 | 118 |
SKU 4 | 60 |
SKU 5 | 15 |
SKU 6 | 24 |
SKU 7 | 45 |
SKU 8 | 70 |
SKU 9 | 60 |
SKU 10 | 45 |
SKU 11 | 45 |
total Store 1 | 550 |
I would like to separate total sales by SKU per channel (online and stores).
Any ideas on how to accomplish that in MagicETL?
Answers
-
Is this the complete data table for this retailer?
If I solved your problem, please "accept" my answer as the solution
0 -
Hi Cole! There are about 7 more stores and not all stores sell the same exact SKUs!
0 -
Okay, are the number of SKUs each store sells fixed? I have a solution that is a bit hard coded, but works. It involves using lead functions with beastmodes. It wouldn't work if the # of SKUs each store sold was always changing.
If I solved your problem, please "accept" my answer as the solution
0 -
Hi Cole, unfortunately the number of SKUs change in most months.
0
Categories
- All Categories
- 1.1K Product Ideas
- 1.1K Ideas Exchange
- 1.2K Connect
- 966 Connectors
- 254 Workbench
- Cloud Amplifier
- 1 Federated
- 2.4K Transform
- 75 SQL DataFlows
- 499 Datasets
- 1.8K Magic ETL
- 2.7K Visualize
- 2.2K Charting
- 360 Beast Mode
- 19 Variables
- 481 Automate
- 101 Apps
- 376 APIs & Domo Developer
- 6 Workflows
- 22 Predict
- 6 Jupyter Workspaces
- 16 R & Python Tiles
- 316 Distribute
- 64 Domo Everywhere
- 252 Scheduled Reports
- 59 Manage
- 59 Governance & Security
- 1 Product Release Questions
- 5K Community Forums
- 37 Getting Started
- 23 Community Member Introductions
- 63 Community Announcements
- 4.8K Archive