Start Free Trial

Alteryx Designer Desktop Discussions

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

filter to previous day only

chiragpatel_1
8 - Asteroid

Hi,

 

For some reason when I try to filter data for previous day from today it appears blank. I cant see date format being the problem as it is in format altreyx uses.

 

Any suggestions, I have tried multiple other ways suggested online including adding column called 'yesterday date' then a using filter to equal report date = yesterday date but no luck on that either.

 

chiragpatel_1_0-1669715841899.png

 

4 REPLIES 4
davidskaife
14 - Magnetar

Hi @chiragpatel_1 

 

If you only want it to filter on yesterday you don't need to write a formula, the basic filter has that option:

 

DavidSkaife_0-1669716164716.png

 

IraWatt
17 - Castor
17 - Castor

Hey @chiragpatel_1,

You need to convert it to a date, your function returns a datetime:

[Report Date] = ToDate( DateTimeAdd(DateTimeNow(),-1,"days"))
chiragpatel_1
8 - Asteroid

wow didn't even notice that the basic filter is very underrated! thanks for the solution

chiragpatel_1
8 - Asteroid

thank you, now I know how to make this approach works as well.

Labels
Top Solution Authors