How do I achieve the below required format in DOMO?
I want to transpose the below input format into expected output as below. Please suggest.
Input
Month Year | PLAT | PY | FY24 | B |
---|---|---|---|---|
Oct-2022 | F | 1.00 | 2.00 | 3.00 |
Nov-2022 | F | 1.00 | 2.00 | 3.00 |
Dec-2022 | F | 1.00 | 2.00 | 3.00 |
Jan-2023 | F | 1.00 | 2.00 | 3.00 |
Feb-2023 | F | 1.00 | 2.00 | 3.00 |
Mar-2023 | F | 1.00 | 2.00 | 3.00 |
Apr-2023 | F | 1.00 | 2.00 | 3.00 |
May-2023 | F | 1.00 | 2.00 | 3.00 |
Jun-2023 | F | 1.00 | 2.00 | 3.00 |
Jul-2023 | F | 1.00 | 2.00 | 3.00 |
Aug-2023 | F | 1.00 | 2.00 | 3.00 |
Sep-2023 | F | 1.00 | 2.00 | 3.00 |
Output
PLAT | Month Year | Oct-2022 | Nov-2022 | Dec-2022 | Jan-2023 | Feb-2023 | Mar-2023 | Apr-2023 | May-2023 | Jun-2023 | Jul-2023 | Aug-2023 | Sep-2023 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
F | PY | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 |
F | FY24 | 2.00 | 2.00 | 2.00 | 2.00 | 2.00 | 2.00 | 2.00 | 2.00 | 2.00 | 2.00 | 2.00 | 2.00 |
F | B | 3.00 | 3.00 | 3.00 | 3.00 | 3.00 | 3.00 | 3.00 | 3.00 | 3.00 | 3.00 | 3.00 | 3.00 |
Best Answers
-
As @GrantSmith suggest ETL will need to happen first, something like this should work:
The Constants just identify the column you want to keep, while the alter renames it and removes the other two.
This produces an output which then you can pivot the way you want.
Keep in mind that for Month Year to be sorted properly, you need them to actually be dates, and select the granularity to show by month, if this value is text the way you have it right now, it'll be sorted wither the way they are in the dataset, or alphabetically which might not be what you want.
0 -
The same can be achieved with a single Dynamic Unpivot btw (I always forget this one is there).
1
Answers
-
The first thing I would try would be to use the Transpose option in the table chart. It is in the Chart Properties → General → Transpose
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
@MarkSnodgrass I have tried that already but it would transpose the PLAT field as well which I don't want to do it. The PLAT field should remain as it is.
0 -
In that case, you are going to need to use Magic ETL to selectively pivot some columns. Here's the KB article about pivoting.
https://domo-support.domo.com/s/article/360044951294?language=en_US**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
You can achieve a similar behavior with a Pivot Table, but PY, FY24 and B will be displayed as Columns not Rows.
Sadly there is no current way to indicate DOMO to display the values as Rows as opposed to columns (Ideas Exchange submission so you can upvote). You could most likely achieve this if you do transform it with ETL first but it'll take a bit to try it out and come up with a workable solution.
0 -
It sounds like you want to pivot your data. You can utilize a magic ETL and a pivot column tile to change the structure of your dataset. You can refer to https://domo-support.domo.com/s/article/360044951294?language=en_US
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
Thanks all. I will try in Magic ETL and update with any issues.
0 -
As @GrantSmith suggest ETL will need to happen first, something like this should work:
The Constants just identify the column you want to keep, while the alter renames it and removes the other two.
This produces an output which then you can pivot the way you want.
Keep in mind that for Month Year to be sorted properly, you need them to actually be dates, and select the granularity to show by month, if this value is text the way you have it right now, it'll be sorted wither the way they are in the dataset, or alphabetically which might not be what you want.
0 -
The same can be achieved with a single Dynamic Unpivot btw (I always forget this one is there).
1 -
@marcel_luthi laid it out very nicely (and faster than I could put together 😄 ). One of those options should do the trick for you.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
Thank you @marcel_luthi :) That would be of significant help to me as i am new to DOMO.
0
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
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive