Alteryx Designer Desktop Discussions

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

Multi column count if not empty

Axis
7 - Meteor

Hello everyone, 

 

A small question for you because I'm stuck. 

 

If I have a table like this but with a large number of columns (>200) and large number of rows :

Column 1Column 2Column 3Column 4
454Apple 
21  Green
  OrangeYellow
    
12 Apple 

 

I'm looking for a way to creath a 5th column that will count the not empty values in the row to have a table like this :

 

Column 1Column 2Column 3Column 4Countif not empty
454Apple 3
21  Green2
  OrangeYellow2
    0
12 Apple 2

 

Do you have a way to do so for a large table? 

 

Thanks a lot for your help. 

 

Best regards,

Axis

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @Axis,


I have prepared a workflow for you:

Emil_Kos_0-1617173490632.png

The key was to use the transpose tool.

 

Please see the output below:

Emil_Kos_2-1617173575093.png

 

Axis
7 - Meteor

Hi @Emil_Kos , 

 

Thanks a lot for your help, that worked perfectly. 

 

Have a nice day. 

 

Best regards,
Axis

Labels