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

Tagged:

Best Answers

  • marcel_luthi
    marcel_luthi Coach
    edited October 6 Answer ✓

    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.

  • marcel_luthi
    marcel_luthi Coach
    Answer ✓

    The same can be achieved with a single Dynamic Unpivot btw (I always forget this one is there).

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 <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • @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.

  • 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 <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • 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.

  • 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!**
  • Thanks all. I will try in Magic ETL and update with any issues.

  • marcel_luthi
    marcel_luthi Coach
    edited October 6 Answer ✓

    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.

  • marcel_luthi
    marcel_luthi Coach
    Answer ✓

    The same can be achieved with a single Dynamic Unpivot btw (I always forget this one is there).

  • @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 <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • Thank you @marcel_luthi :) That would be of significant help to me as i am new to DOMO.