Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

remove columns where all rows have the same value

DSH
5 - Atom

Dear Alteryx exprerts, 

 

I have the following table: 

 

IDparameter_1parameter_2parameter_3
#1254
#2284
#3274

 

My goals is to remove all the columns that have identical values for all rows (in this example, only "ID" and "parameter_2" will remain). Number of rows is dynamic (from 2 to 100s). 

I will be grateful for all suggestions, 

Thanks! 

 

 

 

3 REPLIES 3
Felipe_Ribeir0
16 - Nebula

Hi @DSH 

 

One way of doing this:

keep.png

 

 

OllieClarke
15 - Aurora
15 - Aurora

Just a small amendment to @Felipe_Ribeir0's solution:

The Field Summary tool will output the contents of a browse tool as data. You can filter to where

[Name]='Uniques'
AND
[Value]='1'

This will just show the fields which have only 1 value. The process thenceforth is identical.
The field summary tool is more performant than using the transpose/summarize combo though so if you have larger datasets, it can be twice as fast (based on some testing I just did)

 

image.png

 

Hope that helps,

 

Ollie

DSH
5 - Atom

Hi @Felipe_Ribeir0 , @OllieClarke 

thank you very much for your help - this works perfectly! 

 

 

Labels