How to do date ranges?

Gonzzo
New Member

Hi !
I have a question of dates expressions.
I have the next condition:
3X_3_d_3d706e35eb58d6e29cf6b8a987ac8ba4711906e0.png

I have a lot of dates, but each date has the same condition, it function if [Fecha Cierre] = Today, but i need a range of dates for example:

[Fecha Cierre]= 12/07/2020

[Fecha Cierre]-1= 11/07/2020
[Fecha Cierre]-2= 10/07/2020
[Fecha Cierre]-3= 09/07/2020

How i do a range with [Fecha Cierre]-1, [Fecha Cierre]-2, [Fecha Cierre]-3 in one variable?

(This is for a range of dates to notify emergencies)

0 3 199
3 REPLIES 3

Try with this:

IN(
    [Fecha Cierre],
    {TODAY()-3 , TODAY()-2 , TODAY()-1 , TODAY() , TODAY()+1 , TODAY()+2 , TODAY()+3}
)

You can implement the List parameter of the IN() expression as per your query range.

If i create a virtual column with a typedata โ€œdateโ€

[Fecha Cierre]= 12/07/2020

Range of dates that i want to take:
[Fecha Cierre]-1= 11/07/2020
[Fecha Cierre]-2= 10/07/2020
[Fecha Cierre]-3= 09/07/2020

How i take the date range?

Clearly, we donโ€™t understand what you mean by โ€œhow do I take a date rangeโ€ or โ€œhow i do a rangeโ€, or you donโ€™t understand the advice youโ€™re being given. Please provide a lot more detail about what you want.

Top Labels in this Space