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.
Good
I have a question regarding the handling of dates. I have a calendar with days, ISO week numbers, ISO years...
I have a very extensive calendar from 2010 to 2050.
My goal is to get a Slicer type "Mosaic" only for the years between 2022-2025 to be able to choose separately only from these four options. I don't want the 40 years I have on the calendar to come out in the slicer.
So I put the information in a matrix and take out the slicer.
I know that the slicer has an option "Between" that you can choose the years that interest you. But this does not help me because it gives me the data of the four years together.
The problem is that what I want is a "Mosaic" type slicer and let me only choose the years from 2022 to 2025 that is the object of my study, and thus choose each year separately from only those four options.
What is the best way to get this slicer? Do I have to remove from my calendar table the years I don't need?
Thank you very much for your help.
Best regards.
Thanks for the reply.
But what if what I'm doing is simply visualizing the data and I'm not executing a measurement? That is, I am visualizing the data in a table without any measurement and I take out a slicer of years. How can I filter it? NOT(ISBLANK... It works only if you run a measurement.
Hi There, I would suggest using the 'Chiclet slicer' custom visual for this, you can also add a measure as a filter to the slicer so that only the years with data are shown e.g. NOT(ISBLANK('Fact Sales'[SalesAmount])) and add additional filters to limit the selection further as required
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 |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
60 | |
60 | |
49 | |
45 |