Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi
for example. 1/31/2024 is changing,
How can we ensure that the date in time slicer in Power BI is the latest date in database ? I don't wan to change it every month.
Thanks
Solved! Go to Solution.
@jsjcjsjc , In that case, you can use below measure that you can use as a filter.
Measure =
VAR _date =
CALCULATE ( MAX ( Sheet1[date range] ), ALL ( Sheet1[date range] ) )
RETURN
IF ( MAX ( Sheet1[date range] ) <= EOMONTH ( _date, -1 ), 1, 0 )
Output ;-
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @jsjcjsjc , I am afraid if I am missing something. However, if you have not added any explicit filter on the slicer it will take all the available data from the dataset that includes the latest dates.
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
yes, you are right. I missed some infomarion.
I hope to keep the date is The last day of the previous month of the new date in the database.
@jsjcjsjc , In that case, you can use below measure that you can use as a filter.
Measure =
VAR _date =
CALCULATE ( MAX ( Sheet1[date range] ), ALL ( Sheet1[date range] ) )
RETURN
IF ( MAX ( Sheet1[date range] ) <= EOMONTH ( _date, -1 ), 1, 0 )
Output ;-
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 21 | |
| 20 | |
| 13 |
| User | Count |
|---|---|
| 59 | |
| 53 | |
| 41 | |
| 31 | |
| 26 |