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
StuartSmith
Power Participant
Power Participant

Slicer showing all values and not table specific values

As an example, I have 2 tables, similar to below...

 

Master Lookup

Region

CountryCityBuildingStaff
EMEAUKLondonLON0135
EMEAFranceParisPAR0132
APJNew ZealandChristchurchCHR016
AMERUSWashingtonWAS0115

 

Absentees

Staff IDDays AbsentBuilding
110/10/2022LON01
111/10/2022LON01
315/11/2022LON01
430/11/2022WAS01

 

The tables have a relationship between "Building".  I then have a slicer called Region using the Master Lookup Region column.  How can I get the slicer to only show th regions associated with the "Building" column from the "Absentee" table?  So the Region slicer would only have EMEA & AMER, as currently th slicer is showing all regions.  Hope that makes sense and thanks in advance.   

 

1 ACCEPTED SOLUTION

Create a measure:

HasRows = COUNTROWS(Absentees)
and put it on filter with "is not black" rule on slicer.
 
bolfri_0-1679608772432.png

 





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

Proud to be a Super User!




View solution in original post

4 REPLIES 4
StuartSmith
Power Participant
Power Participant

Added example file. Example pbxi file 

Create a measure:

HasRows = COUNTROWS(Absentees)
and put it on filter with "is not black" rule on slicer.
 
bolfri_0-1679608772432.png

 





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

Proud to be a Super User!




That worked great, but then noticed an issue that if the slicers are synced across multiple tabs, the "HasRows" filter is synced as well.  So I have a "Region" slicer on "Report 1" and "Report 2" and if I select "EMEA" from the "Region" slicer, it filters "EMEA" across both "Report 1" and "Report 2". Just as expected, but I need "HasRows CUser Data = COUNTROWS('Cuser data')" on "Report 1" Region Slicer and "HasRows Absentees Data = COUNTROWS('Absentees data')" on "Report 2" Region slicer.  

 

I hope that makes sense.

Looks like I found the solution... 

StuartSmith_0-1679943308854.png

 

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.