Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi community!
Do you know if Power BI provide a direct way to dynamically control the default selection of one slicer based on the selection of another slicer?
I’d like to hear your advice in the next topic:
I have a set of measures, which calculation takes as reference a month from my main slicer (please take a look to my first screenshot):
Now, in oirder to "the main slicer" only shows the months of one single year, and that the user could choose an specific year, I inserted a second slicer and changed the "Interaction Propperties" between them (this, to prevent, for example, taht when selecting a month of the 2023 year in my main slicer, my second slicer could still show the year 2022):
The problem is, that if my main slicer selects an specific month of one year, and then I want to select another year in my second slicer; my measures shows an ugly error message, untill I select a month of the new "Selected Year" that I want to see. Please see below the whole behaivor:
Do you know how can I mange the error, between the interval of choosing "a month of the new year selected"??
(i want to avoid those error messages, but in my slicers always must be "one selected field").
Or do you have another type of solution?
I attached a sample .pbix (URL) file if that can improve the communication, https://drive.google.com/file/d/19hFoaUFmiYdOIO7Xr0siVPPxuPlYwCw0/view?usp=sharing
Hope you can advise!!!
Rather than the concatenated field in the slicer with year and month, perhaps just use a year filter and a month filter.
Proud to be a Super User! | |
Hi @audreygerred ,
I tried that step, but even though different years share the same "Month name", Power Bi keeps linking the "Month" to a specifi year, and when make the switch returns same error.
It's really strange; do you knwo if there's a way in which you can catch that error, indicating a "default date selection"?
Thanks in advance!
Do you have a date table in your model? If not, I would add one. Here is a blog I wrote about date tables and a link to get my favorite date table to add to your model. Once you have the date table in and connected to your fact table, you can use year and month separately like I had in my screenshot.
http://powerbiwithme.com/2023/08/01/the-custom-date-table-edition/
Proud to be a Super User! | |
Hi @audreygerred,
I Followed your advice (Amazing blog btw!!).
The thing with that approach, is that when having 2 slicers: "Month" & "Year":
Do you know if Power BI provide a direct way to dynamically control the default selection of one slicer based on the selection of another slicer?
Hope you have faced and resolved similar issues 🙌
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
83 | |
64 | |
61 | |
55 |
User | Count |
---|---|
179 | |
108 | |
105 | |
71 | |
70 |