Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Bengaluru, IN

Welcome to the Bengaluru User Group

Click in the JOIN GROUP button in Home to follow our news and attend our 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.