Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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:
User | Count |
---|---|
117 | |
75 | |
62 | |
50 | |
44 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |