Start Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic filter for last 8 quarters

Idyllic_Data_Geek
8 - Asteroid

How do I create a dynamic filter for last 8 quarters. I have data coming in as 2020 Q1, 2021 Q2 etc. And, the data type is Vwstring,

 

Thanks in advance!

5 REPLIES 5
Prometheus
12 - Quasar

@Idyllic_Data_Geek Does the data tell you what quarter the data ends with?

binu_acs
21 - Polaris

@Idyllic_Data_Geek Find the last 8 quarters using the generate row tool then join the quarter with your file quarter field

image.png

Idyllic_Data_Geek
8 - Asteroid

@binu_acs  I did the exact same thing but the join is not working. Because the Quarter end date is not a unique field. One quarter has multiple categories and prices. so this approach is not working out for me! Thank you for you response.

Idyllic_Data_Geek
8 - Asteroid

@Prometheus  No. The data is coming in monthly and I'm finding the quarters using this formula 

DateTimeFormat([Date],'%Y Q') + ToString(Ceil(ToNumber(DateTimeFormat([Date],'%m'))/3))

 

which gives me the output as 2020 Q1,2020 Q2 and as such..

binu_acs
21 - Polaris

@Idyllic_Data_Geek @Would you be able to upload some data and expected result? That would be easy to come to a solution 

Labels
Top Solution Authors