Forum Discussion

ICD's avatar
ICD
Helper I
2 years ago

Slicers synchronization

I have 2 multi-select slicers: projects and buildings- based on 2 tables:

 

Project table

ProjectId -primary keyProjectCode
1P1
2P2

 

Building table

BuildingId -primary keyBuildingCodeProjectId -foreign key
11P1-B1
21P1-B2
31P1-B3
42P2-B1

 

The tables are related:

     Project table :Building table:  one to many (1: *)

 

If I select these values in the two slicers

Project Slicer Building Slicer
xP1  P1-B1
xP2 xP1-B2
    P1-B3
   xP2-B1

 

When I deselect project P1, I want(expect): the building P1-B2 will disappear

Project Slicer Building Slicer
 P1 xP2-B1
xP2   

 

But the reality is other:

Project Slicer Building Slicer
 P1 xP1-B2
xP2 xP2-B1

 

Is it possible to achieve what I expect?

9 Replies

  • show you related please. you have a foreign key in Building table, but dont have this key in project table. try create a key with project code in Building table and related. 

    • ICD's avatar
      ICD
      Helper I

      Hi, LeandroDeodato 

      Sorry, my writing mistake : I changed the names of columns

       

      Project table

      ProjectId -primary keyProjectCode
      1P1
      2P2

       

      Building table

      BuildingId -primary keyProjectId -foreign keyBuildingCode
      11P1-B1
      21P1-B2
      31P1-B3
      42P2-B1

       

      The relation is by ProjectId in the two tables

    • ICD's avatar
      ICD
      Helper I

      Hi, LeandroDeodato 

      I want when the project 1 is deselected => the buildings for the project 1 to disappear

       

       

       

       
       
       

       

      • LeandroDeodato's avatar
        LeandroDeodato
        Resolver II

        Look the table below the slicers... in the slicer "building code" the value P2-B1 remain because is selected, but dont show in table values.