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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PurpleWave22
Advocate II
Advocate II

Slicer Filters Data but not Visuals

Hello,

I am having some difficulty with a slicer when used with a date table. The slicer is the date from the date table, which has a relationship with a date field in a data table. When I choose a year in the slicer, the data is filtered, but the visual is not. Image for reference: 

PurpleWave22_0-1699040878198.png

 

You can see the data is limited to the year selected in the slicer, but the x-axis on the graph and years in the table are not limited to that year. 

 

This is not an issue when I use the date field in the data table (not the date table), but then I'm limited in what kind of time intelligence I can do due to the dates not being acceptable as a date table.

 

Any help in obtaining the behavior I'd like would be appreciated.

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@PurpleWave22 that is the issue, check this blog post 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@PurpleWave22 that is the issue, check this blog post 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@PurpleWave22 what is your measure? Are you returning 0 instead of blank?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

My measure is a distinct count of IDs plus 0, so it does return 0s where there are no IDs. I just removed that from my measure and it resolved the issue, but there are some situations where the 0s are useful.

 

Is there a resolution that retains the best of both worlds where the 0s are retained but the slicer works as I expected it to?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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