The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. 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

Bangalore, IN

Welcome to the Bangalore User Group

Click the 'Join Group' button to get updates on group news and events.

Excel output columns selection

MahanteshS
8 - Asteroid

Hi Guys,

 

Requirement:

Input File : Excel file with 10 columns

Condition : If total row "count >= 5" then

 

If TRUE --> Write output with all 10 columns

 

If FALSE --> Write output with 9 columns. ( I have to remove one column, in this case)

 

Output file should be only one file.

 

Solution tried: 

 

I have used Filter and select tool then at the end if i use union not able to get only 9 columns.

 

PFA screenshot,

6 REPLIES 6
Vijuzy
8 - Asteroid

May be attached workflow helps! When you union all your files, you may still get null values in the rows coming from the file, where have removed field (count is less then 5).

 

Regards,

 

Vijay

GowthamRaja
6 - Meteoroid

Please see a way , we can differentiate the file based on row filter...

 

 

Flow.png

MahanteshS
8 - Asteroid

yeah, that is the problem, I don't want those null columns in the end output

GowthamRaja
6 - Meteoroid

Try using Dynamic Select Tool From Developer Section.. Its helps you to select the columns in dynamic fashion.

MahanteshS
8 - Asteroid

But this dynamic selection is allowing based on the only on "Data Type".

 

So, In my requirement, it will not help

GowthamRaja
6 - Meteoroid

You can write a formula in Dynamic Select Tool, Check for the drop down. In That Formula you have to write for the logic to pick your columns....

 

This would work in your case.