Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi! I've got a report with a table filled with data. I am trying to create a slicer for a date type of data. The slicer is supposed to let me choose a year and a month to see all the transactions from that period. However the slicer adds the months and years with no data as well.
I have tried enabling and disabling the Show Items with no data option but nothing happened.
Is there a way to get rid of all the years where I have no data registered?
Solved! Go to Solution.
Hi,
You can achive this by using a dax measure as below.
Regards,
Hi @shteff24
Slicers behave differently.
I am assuming you're using a date column from a calendar table. Create a measure that counts the number of rows in the fact table and use that as a visual filter.
Fact Table Row Count =
COUNTROWS(Data)
Hi,
You can achive this by using a dax measure as below.
Regards,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |