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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.