Alteryx Designer Desktop Discussions

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

dynamically remove null columns

MartWClimber
9 - Comet

So I've got a workflow that gets information from different folders to check if data is there or not.

the data because of different folders sometimes got as a result some null columns.

 

is there a way to remove null columns via the dynamic select? because right now the staticfilter field is a null column but if I dynamically switch to an other folder this column is filled with data.

 

see bellow for an example of input and desired output

ReloadTypeOutputFileNameLastExecutionFileNameStaticFilter
Incrementoutputname19/11/2022 00:00Filename 

 

output

ReloadTypeOutputFileNameLastExecutionFileName
Incrementoutputname19/11/2022 00:00Filename
6 REPLIES 6
Kakuffo
Alteryx
Alteryx

 @MartWClimber  the Datacleanse tool has an option to remove full null rows or columns

 

 

Kakuffo_0-1669046429881.png

 

ShankerV
17 - Castor

Hi @MartWClimber 

 

If I understand your requirement correctly, you want to remove the column which has null of [null] values.

 

You donot want to display the column in your output right?

 

Many thanks

Shanker V

 

 

binuacs
20 - Arcturus

@MartWClimber One way of doing this

 

binuacs_0-1669046549612.png

 

gautiergodard
13 - Pulsar

Hey @MartWClimber 

You can select the "remove null columns" options within the data cleanse tool.

gautiergodard_0-1669046624310.png

 

Another option I've used in the past is the attached macro.

ShankerV
17 - Castor

Hi @MartWClimber 

 

Here is an use case for your reference.

 

Input: 

 

ShankerV_1-1669047113591.png

 

Output:

 

ShankerV_2-1669047127147.png

 

ShankerV_3-1669047182384.png

 

 

You can do more with data cleansing tool.

https://help.alteryx.com/2019.2/DataCleansing.htm?TocPath=Tools%7CTool%20Categories%7CPreparation%7C....

 

Many thanks

Shanker V

 

 

 

 

 

MartWClimber
9 - Comet

Data cleaning tool was the solution. I wanted a way to difficult solution. but most of the times think simple :) 

anyway it works now. all the solution with data cleaning tool thx

Labels