Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Slicer issue

Hi All,

I am facing issue while trying to use one of the column as slicer.

Below is the data model structure

 

I wanted to use Name as slicer can some one please suggest how can we achieve this
Initially the cross filtering directin is single and then I have set to both.

I can see that the tables are connected using key so the filtering is also happening using keys

I want to use Name from Table1 and it is filtering data from Table1 correctly but data from Table3 instead of showing only
specific Names selected in slicer it is showing all the Names that are associated with that keys please see below

Can some one please suggest how to over come this scenario.

Thanks in advance

Below is the sample data 

Table1

Epic KeyName
J-10Amanda
J-16Amanda
J-170Amanda
J-171Amanda
J-18Amanda
J-10Bruce
J-16Bruce
J-170Bruce
J-18Shin

 

Table2

Epic Key
J-10
J-16
J-170
J-171
J-18

 

Table3

Epic KeyNameHrs
J-10Amanda10
J-16Amanda10
J-170Amanda10
J-171Amanda10
J-18Amanda5
J-10Bruce20
J-16Bruce20
J-170Bruce5
J-18Shin5
  • Change the filter direction back to single on both relationships then create a new dimension table for names, e.g.

    Names =
    DISTINCT (
        UNION ( DISTINCT ( 'Table 1'[Name] ), DISTINCT ( 'Table 3'[Name] ) )
    )
    

    Link this new table to both table 1 and table 3 and use the column from the new table in your slicers and visuals.

3 Replies

  • Change the filter direction back to single on both relationships then create a new dimension table for names, e.g.

    Names =
    DISTINCT (
        UNION ( DISTINCT ( 'Table 1'[Name] ), DISTINCT ( 'Table 3'[Name] ) )
    )
    

    Link this new table to both table 1 and table 3 and use the column from the new table in your slicers and visuals.

    • Anonymous's avatar
      Anonymous
      Not applicable

      got it thanks johnt75  I tired similar bridge table approach but was facing some issues.

       

      I will try the way you mentioned and will update the forum

       

      Thanks again for your help

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks johnt75  the solution worked