Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

please help in customize data filtering

anonymous008_G
8 - Asteroid

Hi – I am working on one of the automation project and below sample data already generated using custom filter tool which filters last 3-month date range using as of date column value. Now I want filter more this data such way that from last quarter end only input type id 7, 32 & 41 to be filtered along with records date ranging from 04/01/2024 to 06/30/2024. Rest everything to be filtered out.

How would I achieve this? Can someone please help.

Please refer below sample input table and expected output.

 

Input table:- 

 

acct_idsec_idinput_type_idinput_dateinput_valueAs of Date
99911153/31/20249000006/30/2024
999111113/31/202410000006/30/2024
999111133/31/202411000006/30/2024
999111203/31/202412000006/30/2024
999111363/31/202413000006/30/2024
99911173/31/20241000006/30/2024
999111323/31/20242000006/30/2024
999111413/31/20243000006/30/2024
99911115/6/20244000006/30/2024
99911166/13/20245000006/30/2024
999111416/30/20246000006/30/2024
99911176/30/20247000006/30/2024
999111326/30/20248000006/30/2024
99911156/30/20249000006/30/2024
999111116/30/202410000006/30/2024
999111136/30/202411000006/30/2024
999111206/30/202412000006/30/2024
999111366/30/202413000006/30/2024

 

expected output:- 

 

acct_idsec_idinput_type_idinput_dateinput_valueAs of Date
99911173/31/20241000006/30/2024
999111323/31/20242000006/30/2024
999111413/31/20243000006/30/2024
99911115/6/20244000006/30/2024
99911166/13/20245000006/30/2024
999111416/30/20246000006/30/2024
99911176/30/20247000006/30/2024
999111326/30/20248000006/30/2024
99911156/30/20249000006/30/2024
999111116/30/202410000006/30/2024
999111136/30/202411000006/30/2024
999111206/30/202412000006/30/2024
999111366/30/202413000006/30/2024
5 REPLIES 5
CoG
14 - Magnetar

Assuming the date fields are of the Date data type, you could use something like the following:

([input_date] >= "2024-04-01" AND

[input_date] <= "2024-06-30") OR

input_type_id in (7,32,41)

 

I'm not sure if this is what you were asking, so please provide more detail if not.

anonymous008_G
8 - Asteroid

@CoG - thanks for the response but this is not i am looking for. I want date range to be filter based on as of date value. In above expression if as of date value changes then it wouldn't work. 

Currently I am using below expression to filter last 3 month data from input source and i want to filter further as per above requirement.  

 

DateTimeParse([input_date],'%y/%m/%d')

>=

DateTimeAdd(DateTimeParse([As of Date],'%y/%m/%d'),-3,'month')DateTimeParse([input_date],'%y/%m/%d')
>=
DateTimeAdd(DateTimeParse([As of Date],'%y/%m/%d'),-3,'month')

anonymous008_G
8 - Asteroid

What I am expecting from above sample input data is :-

 

 I want to filter more such way that from last quarter end i.e (03/31/2024 in the case) input type id 7, 32 & 41 to be filtered and rest all the records date ranging from 04/01/2024 to 06/30/2024. Rest input type id of last quarter end to get filter out i.e 5,11,13,20 and 36.

binuacs
21 - Polaris
anonymous008_G
8 - Asteroid

This is great @binuacs. Thank you so much formula tool expressions. This will be helpful in future as well.

Labels
Top Solution Authors