Forum Discussion

StuartSmith's avatar
StuartSmith
Icon for Power Participant rankPower Participant
3 years ago
Solved

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.   

 

  • bolfri's avatar
    bolfri
    3 years ago

    Create a measure:

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

     

4 Replies

    • bolfri's avatar
      bolfri
      Icon for Solution Sage rankSolution Sage

      Create a measure:

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

       

      • StuartSmith's avatar
        StuartSmith
        Icon for Power Participant rankPower Participant

        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.