Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Relationship Between 2 Tables - Slicer Management - Please Help!!!

I have two sets of data that have a relationship, joined by Customer ID.  Because of the nature of how the data is sent to me, I would like to only show the data where records have a match.  That is to say that the slicers only show the data of the records where the Customer ID is represented in both tables.

 

i.e. If I wanted to select the "State" from a slicer, the only states that would show would be those where a Customer ID is present in both tables...not a representation of all 50 states.

 

The actual visualizations work correctly, it is the slicers I am trying to limit.

 

Any suggestions?

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi


    Cretae a column to show the states for the matching records as shown below and create a slicer based on this column.

     

    Slicer State = IF ( Table1[CustomerID]=Table2[CustomerID], Table1[State])

     

    Thanks
    Raj

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous


      Can you help me define the State with a DAX Statement.

       

      Something to the effect:

       

      If Customer ID in Table A is found in Customer ID in Table B then True, else False

       

      ** Table A has a unique instance of Customer IDs, Table B has repeating instances of Customer ID.

       

      Thanks.