Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Dynamic Field selection based on month selection

alt_tush
9 - Comet

Hi All,

 

I have below table.

My requirement is if i select the any date from datetime tool from any month then only only those columns proceed where the till month selected from datetime.

 

If i select month Feb then only data proceed or (field select) from mt_ytd_jan till mt_net_feb fields process.

If i select month Mar then only data proceed or (field select) from mt_ytd_jan till mt_net_mar fields process.

if i select month Aug then only data proceed from mt_yt or (field select) from mt_ytd_jan till mt_net_jul fields process and like wise

 

Input :-

cd_categorycd_type_curcd_nat_datamt_ytd_janmt_net_janmt_ytd_febmt_net_febmt_ytd_marmt_net_marmt_ytd_aprmt_net_aprmt_ytd_maymt_net_may
ACTUAL2020PERIODICALABC102030405060708090100
ACTUAL2020LOCALPQR2030405060708090100110
ACTUAL2020HISTORICALXYZ30405060708090100110120
ACTUAL2021PERIODICALABC405060708090100110120130
ACTUAL2021LOCALPQR5060708090100110120130140
ACTUAL2021HISTORICALXYZ60708090100110120130140150

 

Please suggest.

 

Thank you in advanced.

8 REPLIES 8
apathetichell
18 - Pollux

Make an app with a date tool/connected to a filter.

 

It should be possible to do this without transpose/crosstab via dynamic select but I'm still working on getting my formula down.  I'll update with a second version - but this one works via transpose/filter/crosstab.

apathetichell
18 - Pollux

version with dynamic select.

alt_tush
9 - Comet

Hi apathetichell,

 

Thank you so much for your quick response.

 

I have checked the workflow but it gives me selected month fields only.

 

My expectation is if i select April then it should be select all fields from Jan till Apr instead of giving only Apr month field.

If i select month feb then i should select the fields from Jan till Feb likewise.

 

I hope you understand my requirement.

 

Thanks again 🙂

apathetichell
18 - Pollux

sorry - just noticed - you wanted the range up to month. Here it is.

apathetichell
18 - Pollux

Yeah - fixed it in the non-dynamic version... Off to try to fix it in the dynamic select one...

apathetichell
18 - Pollux

this version should work for dynamic select tool...

alt_tush
9 - Comet

Hi apathetichell,

 

It works. Thank you Thank you so much for your quick response.

 

 

 

 

apathetichell
18 - Pollux

glad to hear and thanks!

Labels