I have created a workflow and the result of which is attached below.
There are few problems for which I want the solution.
1) Some of the columns were blank which I don't want to keep. However, I can't use select tool since the blank column names can be different each times and number of such blank columns can also be different
2) There is one blank column which I want to keep each time and the name of which is always same. Let's assume the column name to be "Column3"
Output I want to derive: -
Please help me to achieve the solution.
Happy weekends!!
Thanks & Regards,
Deepak
Solved! Go to Solution.
You can use data cleanse tool remove null columns options to remove these columns.
Hope this helps 🙂
Thanks for such a quick response.
1) My data cleansing tool not showing this option.
2) What about point number 2 mentioned above.
1. Data cleanse tool is a macro i can share it with you. It was introduced in 2020.2
If you already know the column names of required columns you can use select tool. Unused blank columns can have any names.it wont affect.
Hi @deepakshaw1991 ,
A data cleansing update can help you here!!!
Separate your columns into two streams via SELECT tool
1. Select the NULL column that you want in the output (uncheck *Unknown at the bottom of the Select tool config)
2. Let all columns go into the second stream (keep the *unknown checked in the SELECT tool)
In the second stream, Use data cleansing and Remove all NULL columns. Finally, rejoin your both streams using JOIN tool.
Make sure you number the records via a RECORDID tool at the beginning itself. Use RecordID back for joining your data.
Attaching a Sample workflow. Hope it helps.
NOTE:- If you can't upgrade DATA cleansing, you will have to achieve this using Transpose - Crosstab combination.
Regards,
Shreyansh
Attaching an updated workflow with this post.
Consists of two solutions in two containers.
With Data cleansing tool and without data cleansing tool.
Personal opinion, without data cleansing one is completely dynamic. (even if the mentioned NULL column is not present)
Regards,
Shreyansh