Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
shteff24
New Member

Show Items with no data

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. 

shteff24_0-1725961391936.png

shteff24_1-1725961406043.png

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?

 

1 ACCEPTED SOLUTION
PBIViz_2024
Advocate I
Advocate I

Hi,

 

You can achive this by using a dax measure as below.

filtermeasure = INT ( NOT ISEMPTY (Table1)).Here Table1 is the table with data.Create this measure and put this to the filter pane do as below.
PBIViz_2024_0-1725962445183.png

Regards,

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

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)

 

danextian_0-1725962622647.png

danextian_1-1725962633651.png

 

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
PBIViz_2024
Advocate I
Advocate I

Hi,

 

You can achive this by using a dax measure as below.

filtermeasure = INT ( NOT ISEMPTY (Table1)).Here Table1 is the table with data.Create this measure and put this to the filter pane do as below.
PBIViz_2024_0-1725962445183.png

Regards,

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.