Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Help with datetime

Hi all... 

 

I need help.

 

I need filter  querry 

 

help with this #"Filas filtradas1" = Table.SelectRows(#"Columna condicional agregada1", each [FechaVencimiento] < DateTime.LocalNow() +7),

 

Dont work.. how filter for fechavencimiento today to 7 days more.

 

please help.

 

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. You can't add a plus and number just like that to date. Try this

#"Filas filtradas1" = Table.SelectRows(#"Columna condicional agregada1", each [FechaVencimiento] < Date.AddDays(DateTime.LocalNow(), 7) ),

Hope this helps,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

3 REPLIES 3
ibarrau
Super User
Super User

Hi. You can't add a plus and number just like that to date. Try this

#"Filas filtradas1" = Table.SelectRows(#"Columna condicional agregada1", each [FechaVencimiento] < Date.AddDays(DateTime.LocalNow(), 7) ),

Hope this helps,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Anonymous
Not applicable

thanx for help. This error 

 

Expression.Error: No se puede aplicar el operador < a los tipos DateTime y Date.
Detalles:
Operator=<
Left=17-09-2019 10:31:28
Right=30-10-2019

Anonymous
Not applicable

i Change DATE to DATETIME type of date.. and work.

 

Thanx..

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors