community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

Filtering column based on the data for column header

Highlighted
Meteor

Hello Expert,

 

I have three questions:

1. How can columns be filtered based on the column header.

 

For eg, Below is the format of my data:

 

From below table, I would like to filter months for the year 2019, which is 201901 to 201912.

 

Select tool can do this but is there a dynamic filter which can be made ?

Corp Rep Group170117021703170417051706170717081709171017111712180118021803180418051806180718081809181018111812190119021903190419051906190719081909191019111912
A2.75.78.711.714.717.720.723.726.729.732.735.738.741.744.747.750.753.756.759.762.765.768.771.774.777.780.783.786.789.792.795.798.7101.7104.7107.7
B2.663.664.665.666.667.668.669.6610.6611.6612.6613.6614.6615.6616.6617.6618.6619.6620.6621.6622.6623.6624.6625.6626.6627.6628.6629.6630.6631.6632.6633.6634.6635.6636.6637.66

 

2. After filtering the months for the year 2019, how can substitute month numbers to month word.

example: 201901 as Jan , 201902 as Feb, 201903 as March and so on

 

3. All the values for the month 201901 to 201912 is imported as a string. I would like to convert all the values to double/ numeric at once. How can this be achieved without select tool.

 

Regards, Ravi

 

Alteryx Certified Partner
Alteryx Certified Partner

Hi @Ravy12 

 

In this case you should use Dynamic Select tool.

ToNumber([Name]) >= 1900 should work

 

To change the names of the fields to Regular month Names, you should use the Dynamic Rename tool with Formula option.

 

DateTimeFormat(DateTimeParse('20' +[_CurrentField_], "%y%m"), "%b")

 

This should work.


Cheers,

 

 

Alteryx Certified Partner
Alteryx Certified Partner

@Ravy12 

 

See WF attached.

 

wf1.PNG

 

Cheers,

Meteor

Hi Thableaus, 

 

Can you share a sample workflow. From the list of tools, I cannot find a dynamic select tool.

 

Regards, Ravi

Alteryx Certified Partner
Alteryx Certified Partner

@Ravy12 

 

Dynamic Select is under the Developer Tab.

 

You can also type the name of the tool on the Search Bar, at the top right of Designer.

 

Cheers,

Meteor

Thanks Thableaus. It worked.

Labels