Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Column header to become one of row values, and column values as a value of another column

mjh418
8 - Asteroid

I have a column (e.g. named C) with identical values that I want it to be part of the Row of "Type".

So I want the column Header C to be one of the Type (A,B,C, so there will be 3 rows of January data), and the just one value(they are identical) of C to go under Value Total column only.

If it makes easier, I don't mind having a separate column for a New Value Total if it can't be helped.

 

Current state:

DateTypeValue1Value2Value TotalC
2020-01-31A2351
2020-01-31B3581
2020-02-29A4262
2020-02-29B2132
2020-03-31A1563
2020-03-31B57123

 

Desired Outcome:

DateTypeValue1Value2Value Total
2020-01-31A235
2020-01-31B358
2020-01-31C  1
2020-02-29A426
2020-02-29B213
2020-02-29C  2
2020-03-31A156
2020-03-31B5712
2020-03-31C  3

 

Its harder than I thought to achieve this.

I would greatly appreciate if someone can offer me a simple as possible solution. Thank you so much for your time and help!!!

 

7 REPLIES 7
AngelosPachis
16 - Nebula

Hi @mjh418 ,

 

You can try something like this maybe?

 

AngelosPachis_0-1612955275719.png

 

Hope that helps.

 

Cheers,

 

Angelos

ImadZidan
12 - Quasar

Hello @mjh418 ,

 

May be this will give you an idea.

 

Let us know if you need more done.

messi007
15 - Aurora
15 - Aurora

@mjh418,

 

Please see below:

messi007_0-1612955530337.png

Attached the workflow, hope this helps,

 

Regards,

aluthra
8 - Asteroid

@mjh418 

I have created a flow to achieve the results you are looking for. it can be fine-tuned

aluthra_1-1612956709027.png

aluthra_2-1612956734341.png

 

 

 

mjh418
8 - Asteroid

Thank you so much for the simple solution.

I tried using Mode instead of average but I think its the same thing.

 

Will revert if I run into any issues with different data.

 

Much appreciated!

mjh418
8 - Asteroid

Does anyone know how I can dynamically sort the A B C in my desired order  (they are actually not A , B , C, so alphabetical sorting doesn't work) so that whatever data I input, as long as the row values under TYPE column always have the same wording, it will sort accordingly?

AngelosPachis
16 - Nebula

Hi @mjh418 ,

 

Can you provide an example of the values you have instead of A,B and C and the expected output please? That would help I believe.

 

Thanks

 

Angelos

Labels