Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi there...
I start my Power BI dashboard by showing users a page that I call "Select". It's primary purpose is to allow users to use a filter that shows a series of end dates. i.e. 1st July, 7th July, 14th July, 21July... etc... you get the idea. Selecting this date Sync's the filter selection to other pages.
Having users (executives) select a new date is a bit prone to "user error"... and I'd like to be able to determine what the last available date is and perform that selection automatically.
Can this be done?
What is the recommended approach to implementing?
- David
I'm struggling to see how to preselect a slicer value based on the most recent day, so I'll be curious to see if someone chimes in.
To make it easier for the Execs though, you can change the slicer to a "Relative" visual with the dropdown in the slicer, then set it to last 1 days. Then they have to pick the last day.
Or set it to a list in descending order. Then there is just a simple box to check.
I also know you can set it in the desktop and publish it, but you'd have to do that every day, or time period, to push it up. Not ideal....
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingInteresting. Indeed selecting data for the last week works. Spot on.
The challenge comes when I want the user to select the week before that... Selecting data for the last 2 x weeks isn't as nice and the dashboard shows duplicate entries per customer.
So for useability... I return to wanting to magically (via DAX?) select the last entry in a list of dates.
- David
So for useability... I return to wanting to magically (via DAX?) select the last entry in a list of dates.
You cannot use measures as slicers, and DAX are like Excel functions. They can report data, but they cannot change anything in the file like VBA could., and there is no VBA in Power BI. At this point it might be a USERVOICE request to have slicers preset to certian data based on criteria.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThank you for the advice. Posting to Uservoice completed.
- David
Setting it to relative is a great option! - Last 1 week.
Testing now.
- David
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
55 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
62 | |
50 | |
46 |