It's beginning to look a lot like...Advent of Code! Get in the holiday spirit by learning how you can participate in this friendly competition and earn a seasonal badge.

Alteryx Designer Desktop Discussions

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

How to add a functionality to select a value and then others with reference to it

abhinavrpk
6 - Meteoroid

Hi,
Thanks to the Alteryx community who helped me in making my first workflow ( as in the image)
I was able to get the desired results. 

Now I would like to add a functionality where in I select a period manually and then with reference to that selection, the next steps flow.

Below is the output at crosstab (Pivot table) .

JurisdictionAggr PeriodScenario 1Scenario 2Scenario 3Scenario 4
CANADA20200920-20201020202  
CANADA20201020-20201116400  
CANADA20201116-20201214550  
CANADA20201214-20210111240  
CANADA20210111-2021020720  
CANADA20210207-20210307210  
CANADA20210307-20210404520  
CANADA20210404-20210503120  
CANADA20210503-20210530120  
CANADA20210530-2021062720  
CANADA20210627-2021072500  
CANADA20210725-2021082200  
CANADA20210822-2021091920  
CANADA20210919-2021101780  
CANADA20211017-2021111400  
CANADA20211114-20211213650  
CANADA20211213-2022011020  
CANADA20220110-20220206428  
CANADA20220206-2022030655  
USA20200925-20201023  832859
USA20201023-20201120  722728
USA20201120-20201218  721400
USA20201218-20210116  771427
USA20210116-20210205  551082
USA20210205-20210312  1011887
USA20210312-20210409  851701
USA20210409-20210507  811642
USA20210507-20210604  831690
USA20210604-20210702  723449
USA20210702-20210730  723483
USA20210730-20210827  773604
USA20210827-20210924  551400
USA20210924-20211022  1011427
USA20211022-20211119  851082
USA20211119-20211217  811887
USA20211217-20220114  52221701
USA20220114-20220212  43911642
USA20220212-20220311  43971690

 

This selection needs to be made at cross tab. Now if I select the aggr period as 20211017-20211114, then the system should treat it as latest aggr and follow the next steps considering this as latest aggr period and then selecting 14 aggr period with reference to this one.
As we have diff aggr periods for Canada and US, we need to make sure that we select a particular value for both the type of jurisdiction.

Please guide as to what is the best possible way to include this functionality.

Thanks
Abhinav 

10 REPLIES 10
JarekSkudrzyk
11 - Bolide

@abhinavrpk hi, please take a look at my proposed solution. In the filters placed on yellow background the user has to choose the proper aggr period.

JarekSkudrzyk_0-1649882627823.png

 

JarekSkudrzyk
11 - Bolide

@abhinavrpk you can union both streams at the end to obtain a single output

binuacs
19 - Altair

@abhinavrpk another way of doing this by giving the dates in separate input file

 

binuacs_0-1649888971706.png

 

abhinavrpk
6 - Meteoroid

Thank you for your responses. I am basically looking for functionality where I select the current Aggr period and with reference to that, all the next calculations work. Is there something that I can do using the macro/ control parameter/drop-down tool or the list box? 

soccertil1108
8 - Asteroid

Interactive workflows can be created with the Interface tools thus creating an Alteryx Application. Depending upon the level of sophistication that you require you also might need to understand how to create chained applications. If you can provide some additional details about the user interface you require I can show you a sample workflow. Alteryx has some training on applications and I have a number of video that I can link you to as well.

abhinavrpk
6 - Meteoroid

Hi Soccertil 1108
Thank you for the response. Yes I am looking for such a solution. I will explain the whole workflow again. 
As shared in my initial workflow image, I have selected a path for both the input files. There are a number of files. Each file has the latest aggregation period and also the values of the last 19 aggregations for each scenario. 
The aggregation period corresponds to a range of dates. Now when I club all the files to have a historical data, I bring the values for all scenarios corresponding to each aggregation period as an average value. 
The interactive functionality I am looking for is this, consider the workflow image attached to initial post, when we select all the files, this workflow gives me the calculations I am looking for with the latest aggregation period. Here I am looking for an interactive menu that lists all the aggregation period and enables me to select one of them and does the onward calculations keeping that selected aggregation period as my latest aggregation period. 
Looking forward to your response. 
Thanks,
Abhinav

abhinavrpk
6 - Meteoroid

Thank you for this solution Jarek. This definitely works to a great extent. I am looking to make it interactive and it would be great if you can suggest me something on that lines too. 

soccertil1108
8 - Asteroid

Since applications start with prompting the user for input, you will need to first run an app that creates the data and writes it to an file. The first app will need to chain to a second app that reads the created file and prompts the user for input. The second app will the take action on the input and finish the workflow. Alteryx has a learning module for apps. I have a video that walks through the app chaining scenerio that can help you build the chaining application.

https://youtu.be/oSYe0-jsbyA

 

JarekSkudrzyk
11 - Bolide

@abhinavrpk as @soccertil1108 said - Alteryx has great learning materials on apps and chaining apps - you can check them out here:
https://community.alteryx.com/t5/Interactive-Lessons/tkb-p/interactive-lessons/label-name/Creating%2...

Labels