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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Slicer Only Relevant Values

Hello, 

 

I have combined the main table to the date reference table to get the Fiscal Date Period using Many to One. However, the slicer of the fiscal period includes all date values from the date reference table. Is there a way to show only relevant values?

 

My main table has 4 years starting 2018 while the date reference table has 6 years starting 2016. I only want the slicer to have shown all dates in 4 years but it is showing all years even those that have no data.

Laedays_0-1618415691160.png

Thanks!!

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Anonymous 

You can write a simple measure to count the rows in your main table, something like.

 

Data Count = COUNTROWS ( 'Your Table Name Here' )

 

Then you assign that as a filter on your slicer and set it to 'is not blank' and click apply.

jdbuchanan71_1-1618416217948.png

 

 

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

@Anonymous 

You can write a simple measure to count the rows in your main table, something like.

 

Data Count = COUNTROWS ( 'Your Table Name Here' )

 

Then you assign that as a filter on your slicer and set it to 'is not blank' and click apply.

jdbuchanan71_1-1618416217948.png

 

 

amitchandak
Super User
Super User

@Anonymous , Put one of the measures from fact into the slicer and check for not null/blank

 

Very similar to this https://www.youtube.com/watch?v=cyOquvfhzNM

Anonymous
Not applicable

Any measure will do? 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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