In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Batch remove null columns and output into multiple tabs

kharabpati
5 - Atom

Hi all, 

 

I am trying to output a table into multiple tabs after removing null columns. 

 

Example input: 

 

EntitySub 0Sub 1Sub 2Sub 3

A

100

200 400
B300 300 
C   200

 

Te output excel would have the three tabs with following differenct tables:

Tab A

EntitySub 0Sub 1Sub 3

A

100

200400

 

Tab B

EntitySub 0Sub 2
B300300

 

Tab C

EntitySub 3
C200

 

I am currently using a batch macro that filters the "Entity" and runs a crew macro that removes null columns. This then has an output tool that takes file name from the "Entity" column 

 

Problem: The output file does have three different tabs, with just relevant rows, but it outputs all the columns, including the empty ones. I have searched everywhere to try and resolve this issue, I really hope you guys will be able to help! 

3 REPLIES 3
jasperlch
12 - Quasar

Capture.PNG

 

Hi @kharabpati , 

 

The batch macro above should do the job. Please check the sample workflow + macro attached.

 

Jasper

kharabpati
5 - Atom

Thanks @jasperich

 

This seems to work on my workflow as well! 

MI1
7 - Meteor

Hi  

 

I try to leverage the flow how can I change entity with an other fields name ?

 

Mederic

Labels
Top Solution Authors