Alteryx Designer Desktop Discussions

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

Filtering data Dynamically

Alteryxexpert
7 - Meteor

I have Data Like Below and I need to write output excluding the columns which has no data, In this case Columns till 31-Mar-2024 (Excluding all the null columns after 31-Mar-2024 columns), and the same flow should write output of all columns when data is available in future executions. 

 

 

ItemProfit Split %31-Mar-2430-Apr-2431-May-2430-Jun-24
Chair14.31%28508873.05   
Pen7.03%13998997.02   
Table11.93%23757394.21   
Mouse66.74%132946378   
Keyboard-14.09%-145000000   

 

I have tried using data cleansing , but it is not dynamic, when new columns are added it won't pick, Is there a way to achieve this?

 

Current Required output:

ItemProfit Split %31-Mar-24
Chair14.31%28508873.05
Pen7.03%13998997.02
Table11.93%23757394.21
Mouse66.74%132946378
Keyboard-14.09%-145000000

 

Future require output when data is available:

ItemProfit Split %31-Mar-2430-Apr-2431-May-2430-Jun-24
Chair14.31%28508873.05454564566669355
Pen7.03%13998997.022545546546446596
Table11.93%23757394.21155635468489589589
Mouse66.74%1329463785465651655589899
Keyboard-14.09%-145000000565621625454545
6 REPLIES 6
cjaneczko
13 - Pulsar

You can use a Transpose, filter and crosstab to accomplish this.

 

image.pngimage.pngimage.png

peterr_h
8 - Asteroid

Hi,

 

The above solution works, but if all you need is to remove Null columns, the Data Cleansing tool has this built in.


This will work dynamically.

 

Please let me know if this doesn't help in your case. You may need to set 'blank' (empty) cells to Null() before in some cases, but this should work given the data shown.

 

Cheers

Alteryxexpert
7 - Meteor

Is there a n other way rather then using transpose and data cleansing? Using both will extent the workflow so don't want that to happen, let me know if there is an other way like using multi field formula tool

cjaneczko
13 - Pulsar

What do you mean by extending the workflow?

Raj
14 - Magnetar

@Alteryxexpert are you trying to achieve it by single tool?
while you say not to increase the length of workflow.

peterr_h
8 - Asteroid

Hi @Alteryxexpert, I added a solution above which uses the Data Cleansing tool, performing the task in one tool. Does that work for you?

Labels