Forum Discussion
Filter PowerBI, current date + 31 days
How can you get +30 days data? if you are taking the current date.
You can do forecasting for the next 30 days on the basis of previous data.
OR
Date.From(DateTime.LocalNow())+30)
Hey @adityavighne,
Thanks for your help.
I am indeed searching for something like this:Date.From(DateTime.LocalNow())+30)
But, unfortunately when i apply this i get an error.
#"Filtered Rows1" = Table.SelectRows(#"Reordered Columns", each [Eind datum] <= Date.From(DateTime.LocalNow())+30),
Expression.Error: We cannot apply operator + to types Date and Number.
Details:
Operator=+
Left=27/05/2019
Right=30
- adityavighne7 years ago
Continued Contributor
provide more information related to tables.
- TomMartens7 years ago
Super User
Hey Anonymous
just write your function like so:
Table.SelectRows(#"Reordered Columns", each [Eind datum] <= Date.From(DateTime.LocalNow() + #duration(30,0,0,0)))
Regards,Tom
- Anonymous6 years agoNot applicable
Wonderful 🙂 thanks.
I am wondering how do you add OR today - 10 years?