Free Trial

Alteryx Designer Desktop Discussions

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

Is there a way for me to remove other column that is not part to that sheet/ tab?

abardaje
8 - Asteroid

Would like to remove some columns that is not really part of that sheet/tab it appears to other tab because I used the 'Group by' in Table tools. Let me know if there's a tool that I can use after the table tool for me to remove some columns that is not part of that sheet/tab in Excel.

9 REPLIES 9
vlad_kutateladze
8 - Asteroid

@abardaje  you can use the Select tool after the Table tool.

 

vlad_kutateladze_0-1665566072979.png

 

 

abardaje
8 - Asteroid

Hi, this is the displayed here in the results - table. so, In Select Tool, how can I remove some column there that won't affect that column to another sheet/tab?

 

abardaje_0-1665566293972.png

 

vlad_kutateladze
8 - Asteroid

@abardaje Not very clear to me. Field 'Credit Ratings ' is an extra column after the Table tool, but after it is used in Text tool. so what column do you want to remove? 

DataNath
17 - Castor
17 - Castor

@abardaje I'm not aware of any way of doing this and using a select after the table tool won't work as the table is now a reporting snippet. It's not very elegant but it may be the case that you have to just filter out your dataset into the 'Group by' sections you want, create a different table for each containing only the desired fields and then union the tables together before rendering. If there's a better way of doing this within the Table tool itself I'd love to see though so hoping someone else can jump in!

abardaje
8 - Asteroid

Please see the sample below after I used the 'Group by' in Table tool. So, what I want is to remove column that is blank/s in each sheet/tab. 

Christina_H
14 - Magnetar

If you need different columns in the table each time, you can do this with a batch macro, see attached.  The macro input only knows about the grouping field, and I use a trick from here to any remove null columns:

Solved: Automatically Remove all null Colums - Alteryx Community

(This won't work correctly if you have Boolean columns you need to include)

 

The correct columns then get included in the table through "Dynamic or Unknown Fields"

 

Christina_H_0-1665571468551.png

 

abardaje
8 - Asteroid

Would like to use your solution however we don't have batch macro tool yet in my Alteryx as of this moment. 

Christina_H
14 - Magnetar

@abardaje 

The batch macro isn't a separate tool, it's a different workflow used as a sub-routine.  The one I created is included in the package on my previous reply, you should be able to use it as it is or modify it to meet your needs.  Right click on the blue circle and select Open Macro to make changes to it.

 

Feel free to ask more questions to get it working, I can't think of any other way to achieve what you want without splitting out all the different possibilities to different table tools.

abardaje
8 - Asteroid

Already found the best solution for my problem :D I used Formula tool and there create another column for if else condition and that new column will separate based on the logic I did. Thank you for all your help! :)

Labels
Top Solution Authors