Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I want to automatically create a date filter that always disregards the last 6 days.
For example, I have a database for the last 30 days and I want to get the data disregarding the last 6 days.
For example, today is the 30th, I have data from the 1st, if I disregard the last 6 days I would have to have data from the 1st to the 24th.
Can anyone help me, to do this filter in power query?
thanks!
= Table.SelectRows(PriorStepOrTableName, each [Date] < Date.AddDays(Date.From(DateTime.LocalNow()), -6))
--Nate
Hi @Anonymous
Didn't work. The expression error in "PriorStepOrTableName"
Do you have any other suggestions?
Tks
Hi @Anonymous
With "PriorStepOrTableName" @Anonymous is referring to the name of the prior step/table in your coding. Hope this helps!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 19 | |
| 14 | |
| 12 | |
| 10 | |
| 8 |