Forum Discussion
Dynamic preselected selection in PowerBI slicer
- 1 year ago
Hi IshaDahra
As you can see i have created a calculated column
In which i have named for current month to show Latest Month ( in calculated col)
and in the slicer i just selected Latest Month, Now whenever the new month data is added then that calculated column is re-run when it get refresh then again Latest Month will give the current month which is added into it .
I have just tried with a sample by adding next month for 1999. and it's working
If this answers your questions kindly accept it as a solution and give kudos.
Hi IshaDahra
Ensure your month column is sorted by a number column.
Add your slicer and make sure it's sorted by the month column descending.
Enable single select.
If you want to dynamically filter your page every time, just add the month column to the filter pane.
Select 'relative date', 'is in this month'
I hope this helps, please give a thumbs up and mark as solved if it does, thanks!
Hi IshaDahra
Can you please try the below steps to get your result ?
This is based on the max date you have in your table ( either it is max date as per you data or it is related to today)
1. Create a calculated column in your date table using below dax
whenever the use open the report it is always Latest Month is selected, later or you can change the month or by the help of year slicer you can also adjust this.
Result
If this answers your questions, kindly accept it as a solution and give kudos.
- IshaDahra1 year agoRegular Visitor
I have put Month name's name in slicer, if the latest month data in slicer is July-2025 and I publish it. Then, the data of August is loaded in folder to automatically refresh the dashboard, the selection of slicer doesn't changes to August
- mdaatifraza55561 year ago
Super User
Hi IshaDahra
As you can see i have created a calculated column
In which i have named for current month to show Latest Month ( in calculated col)
and in the slicer i just selected Latest Month, Now whenever the new month data is added then that calculated column is re-run when it get refresh then again Latest Month will give the current month which is added into it .
I have just tried with a sample by adding next month for 1999. and it's working
If this answers your questions kindly accept it as a solution and give kudos.