Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Date filter in Alteryx App

praneshsapmm
8 - Asteroid

Hello there,

 

I am trying to extract data from SQL server with a posting date condition , which means that lines that are between the posting date from & to range must be extracted . 

 

Can someone let me know how to do it via Alteryx App using in-db tools and data entry user interface.

 

Thanks.

 

3 REPLIES 3
pedrodrfaria
13 - Pulsar

Hi @praneshsapmm 

 

The set up would look something like this:

 

Two Calendar tools to update a single filter in DB tool. Need to obviously update the SQL code written to match with what you have.

pedrodrfaria_0-1616501974927.png

 

praneshsapmm
8 - Asteroid

Hi @pedrodrfaria ,

 

Thanks for the solution . But seems like there is a problem . When i provide the input of dates via a user interface , solution still takes the data available in filter . 

 

How to rectify this . 

 

THanks.

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @praneshsapmm,

 

Once you've got your SQL filter condition in the in-DB filter tool you'll need to define how the date interface tools interact with the filter condition. This happens through the use of the action tools. If you look into the configuration of each action tool you'll need to make sure it's updating one of the dates in the filter condition. One action tool to update each date in the condition. Ensure the circled part in the screenshot below is highlighted (which tells the action tool which part of your filter tool you'll be affecting - in this case the formula) and use the "Replace a specific string" section at the bottom of the configuration pane.

 

Jonathan-Sherman_0-1617098849935.png

 

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Kind regards,

Jonathan

 

 

Labels
Top Solution Authors