Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic Selection of Columns

sneha_bhiwagade1
8 - Asteroid

Hi Team,

 

I hope you all are doing well!!

 

I am reading the below template in Alteryx 

 

Q1 2024Q2 2024Q3 2024Q4 2024Q1 2025Q2 2025Q3 2025Q4 2025
1287495678
0882834597

 

 

Based on user selection of the year I would like to output only that particular  year quarters in the output file.

 

For example if the user selects the year as 2024 while running the workflow then the output file should contain only this columns

 

Q1 2024Q2 2024Q3 2024Q4 2024
12874
088283

 

Could you please help me on the same

 

Many Thanks in advance!!

7 REPLIES 7
flying008
15 - Aurora

Hi, @sneha_bhiwagade1 

 

Even you use App or WF, you can use the Dynamic Select tool to filter the Fields as your want year, the Expression like

Right([Name], 4) = '2024'
OTrieger
12 - Quasar

@sneha_bhiwagade1 

You can achieve it with the Dynamic Rename and Dynamic select tool

Connect the data to Field Info tool, then append the year selection to the data, With formula tool Create a Column name Description. Set a formula for this field that says Need if the year is part of the field name, then connect this with a Rename Tool to the rest of the data. Select the Option Take Field Description from Right Input Row. Connect to it the Dynamic Select tool. Select Formula and then set [Description]="Need".
Now the Alteryx will keep only the needed headers and will remove all the rest.

binuacs
21 - Polaris

@sneha_bhiwagade1 Analytic app approach

image.png

sneha_bhiwagade1
8 - Asteroid

@binuacs Thanks for the solution 

sneha_bhiwagade1
8 - Asteroid

@binuacs thanks for the solution 

 

just to add on after selecting the year from the drop down based on that I would like to also output all the previous year.

 

example if i select 2025 then 2024 data should also be in the output file

binuacs
21 - Polaris

@sneha_bhiwagade1 updated workflow attached

image.png

sneha_bhiwagade1
8 - Asteroid

@binuacs Thanks for the solution

Labels
Top Solution Authors