Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello all,
I have come into a bit of a pickle, i have two slicers, one for years and one for months, the one for years is from 2013 to 2015, except for 2015 which has only records up to May, all the others have data, what i was wondering is that if anyone knows if its possible to add a filter or a dax to the Filter by Year slicer, so that it would restrict the months filter when the year is set to 2015.
If anyone knows how to do it i would really appreciate it, and if not, thank you still for your time and patience.
Best Regards,
Peter.
Solved! Go to Solution.
Create a Calendar Table:
Create Relationships:
Create a Measure to Filter Months:
Use a Slicer for Months:
Apply Conditional Formatting:
Create a Measure for Visibility:
Filter the Month Slicer:
First of, good morning! And thank you for your help.
I tried your solution and it worked really well so thank you very much, i messed around for a while and another way that i found, is to use the calendar date to filter the month slicer in the filters, by doing an advanced filter, when the value "is before" the date selected that enables me to filter the months by year as desired too.
You are hardcoding the Date and will have to change manually everytime. Not ideal to do this. There is another workaround check out the below video.
Months in Slicer Appearing when you don't have any data ? PowerBI Tutorial (youtube.com)
Thank you, will make sure to see it and try its solution.
Create a Calendar Table:
Create Relationships:
Create a Measure to Filter Months:
Use a Slicer for Months:
Apply Conditional Formatting:
Create a Measure for Visibility:
Filter the Month Slicer:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
84 | |
69 | |
68 | |
39 | |
37 |