Alteryx Designer Desktop Discussions

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

Extract Diagonal Matrix in Alteryx

fsarmien
5 - Atom

How can I extract one diagonal from it and put it in a column? Please refer to the pictures below

Thank you so much for helping me out

 

fsarmien_0-1630460543198.png

 

4 REPLIES 4
RolandSchubert
16 - Nebula
16 - Nebula

Hi @fsarmien ,

 

maybe there is an easier way, but the first solution that came to my mind is to add a row number using the Record Id tool, transpose data using the Transpose tool, add column numbers using a Multi-Row Formula tool and select the cells with "Row" = "Column":

 

2021-09-01_08-22-27.jpg

 

What do you think?

 

Best,

 

Roland

atcodedog05
22 - Nova
22 - Nova

Hi @fsarmien 

 

Here is my take on this

 

Workflow:

atcodedog05_0-1630478440878.png

 

1. Using record id to set row id.

2. Using transpose tool to convert data columns to rows.

3. Using filter tool to keep only diagonal elements.

 

Hope this helps : )

fsarmien
5 - Atom

Thank you so much for your help! Great community 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @fsarmien 

Cheers and have a nice day!

Labels