Alteryx Designer Desktop Discussions

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

How do I get the column header for the first cell per row that is not empty

Majao
6 - Meteoroid

Dear all, 

 

I am trying to get the header name of the first non-empty cell in my data set, and adding that to a new column. From the screenshot below, I would have that the first row here would have "202011" as the value in the new column. The second row would be "202109". 


Can you help me with this? I also added a simple table as a simplified example of the format of the data and what I want to get.  

 

 

Screenshot (my data)

 

Majao_1-1647509631643.png

 

Simple example table

 202020212022My new column

Customer 1

 10 2021
Customer 210  2020
Customer 3  102022
Customer 4 10 2021

 

 

3 REPLIES 3
binuacs
21 - Polaris

@Majao 

binuacs_0-1647516631742.png

 

Qiu
21 - Polaris
21 - Polaris

@Majao 
I can see there are some columns is having multiple values. so I made somethig as below based on @binuacs  work.

 

Majao_1-1647509631643.png

Majao
6 - Meteoroid

Works like a charm - thank you!

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels