Error on Date Time Filter?

dev2
New Member

Hi all,

I’m using a slice for sending a daily SMS, but the slice does not seem to get the expected rows.

I’m trying to get rows that have a “Date Chgt Statut’” within the last 24h (this is my column reporting TimeStamp from another Table).

I tried two formulas (which I think equivalent) in this purpose, but the result is always the same : I’m getting 3 rows instead of 7 expected.

This slice uses a filter formula as following :
[Date Chgt Statut]>datetime(NOW()-1)
Here is the second formula I tried:
AND(NOW() > [Date Chgt Statut], HOUR(NOW() - [Date Chgt Statut]) < 24)

The column field where originally “date” formatted, and my formula was instead :
[Date Chgt Statut]>DATE(NOW()-1) (and not DATETIME)
…the result was still 3 rows.

Here is what I have on the data slice view:
2X_7_788fbaeaa01547fd1a32095c64663895fcbb9f43.png
And what I expect :
2X_b_b885d041300d3f155a4615499f0edef6aadeff78.png

Do you have any clue of what I’m missing ?
Is it because the missing items are beyond the thousandth row ? I didn’t read about any limiting rows in the appsheet center.

Many thanks for your help,

Aurelien

Solved Solved
0 8 1,094
1 ACCEPTED SOLUTION

@dev
Your [Date Chgt Statut] column is a DataTime type and your evaluation produces a Date type. Actually; lets get an example data from Row#472 for this evaluation:


[Date Chgt Statut]>date(NOW()-1)


[Date Chgt Statut] = 1/20/2020 6:08:12
NOW() = 1/21/2020 19:09:23
NOW() - 1 = 1/20/2020 19:09:23
DATE(NOW() - 1) = 1/20/2020 12:00:00
which will evaluate to FALSE
In fact your expression shall evaluate to TRUE if and only if time portion of your DateTime column is greater than 12:00:00 AM.

View solution in original post

8 REPLIES 8
Top Labels in this Space