Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Shift Columns (different amount every time) into rows

jacobbarclay0
5 - Atom

Hey everyone,

 

I am attempting to shift dynamic columns I parse from an API pull into new rows. In the data vector, some pulls may have 1 value and time (1 line) and some have 500 lines (listed below shows 2 lines, in bold). Below is a simplified example of what is happening and what I want.

 

API Pull:

<Identifier>
   <ID_Value>0001</ID_Value>
</Identifier>
<Data>
   <DataVector>
      <Data Value="5" Time="09/01/2017"/>
      <Data Value="10" Time="10/01/2017"/>
   </DataVector>
</Data>

 

Outcome:

0001509/01/20171010/01/2017

 

Above is not how I want it structured. Below is the desired outcome. How might I do this?

0001509/10/2017
00011010/01/2017
1 REPLY 1
danrh
13 - Pulsar

I'd give something like this a try:

image.png

 

The Transpose puts the values vertically, then I label every other record to pull out dates vs values and flip them back horizontally, but stacked instead of side by side.  This should scale to however many entries you have.

Labels