This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi All,
My source is excel and the data is number of items (count) for each day. I have the counts on a score card. Since it is bringing sum of all the days i added a date filter and choose the latest date from the drop down. I want to do away with this manual selection of the latest dayte every time. I was wondering if there is an easy way , like the filter defaults to the latest data from the excel sheet. I tried creating a measure (max(date)) but there is no option where i can use it as a Filter. Please advice.
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
1. Mark the largest date.
2. Set the maximum date as the default value.
Each time the date column is updated, the slicer will select the maximum date by default.
The same is true for the solutions provided by @amitchandak, @DataZoe
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
1. Mark the largest date.
2. Set the maximum date as the default value.
Each time the date column is updated, the slicer will select the maximum date by default.
The same is true for the solutions provided by @amitchandak, @DataZoe
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous You can use this to have it mark the the latest date in a calculated column, then use that in a slicer:
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
Thanks DataZoe , i want to clarify. First create a measure and then use the IF condition? please explain.
Thanks
@Anonymous , Create a column like this in date table or table and filter that on MaxDate
Is max Date =
var _max = maxx(Table, Table[Date])
return
if('Date'[Date]=_max,"MaxDate",[Date]&"")
You can sort this on date column https://youtu.be/hfn05preQYA
Can you please make it modular. For layman like me ,
Create a column --- which one is a new column from your example (Is max date = ???)
Then filter (?????) ok completely locst here , does this whole thing must be used in a filter
var _max = maxx(Table, Table[Date])
return
if('Date'[Date]=_max,"MaxDate",[Date]&"")
Thanks
Thanks Amitchandak,
I think my maxdate is not working, please see the attached screen shot and the calculation i used. My measure
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 19 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 20 | |
| 20 | |
| 19 |