Forum Discussion

dokat's avatar
dokat
Post Prodigy
4 years ago
Solved

Bridge Table Not Working

Hi,

 

I have two data tables POS and Region with M:M relationship. I created bridge table so measures by both tables can be controlled by one slicer. However after creating bridge table and slicer i can only control POS table and not Region. Not sure what's causing this problem but appreciate any help

 

 

  • Thank you for sharing that.  I made some measures to just SUM the Value column from POS and Region tables so I could look at the amounts.

    _POS_Value = SUM ( 'POS'[Values] )
    _Region_Value = SUM ( 'Region'[Values] )

    I also made a measure to look at the difference between your two test measures.

    Test Measure Variance = [Region Test Measure] - [POS Test Measure] 

    Looking at a breakdown of the number by brand under the correction category the Bridge[Brand] 'Liquid Paper 2-in-1 Bottle' only has a total amount in the 'POS'[Values] column of 81k where the Region'[Values] column has 498k so that looks like most of your variance.

    Most of the other amounts are very close.

    Could it be a problem with data missing from the POS table?

     

15 Replies

  • truptis's avatar
    truptis
    Community Champion

    Hi dokat 

    Try making it a bidirectional relationship. It might solve the problem.

    • dokat's avatar
      dokat
      Post Prodigy

      truptis Thanks for your reply. I tried it please see below however it still doesnt filter correctly. It bring All Other Brand whether they belong to filtered category in slicer or not.

       

       

      • truptis's avatar
        truptis
        Community Champion

        dokat - can you change the cross filter direction to both? It might resolve your problem.

  • If you right click on the line and go to Properties you can make it active.

     

    • dokat's avatar
      dokat
      Post Prodigy

      jdbuchanan71 It gave me different option, i didnt see properties i clicked on manage relationships and put a check mark near region table. Now slicer selection returns values from Region table however they are not correct. Please see below.

       

       

      • jdbuchanan71's avatar
        jdbuchanan71
        Super User

        Odd, in your manange relationships screen shot the relationship is active but in your first one it is not (the dotted line).

         

  • Thank you for sharing that.  I made some measures to just SUM the Value column from POS and Region tables so I could look at the amounts.

    _POS_Value = SUM ( 'POS'[Values] )
    _Region_Value = SUM ( 'Region'[Values] )

    I also made a measure to look at the difference between your two test measures.

    Test Measure Variance = [Region Test Measure] - [POS Test Measure] 

    Looking at a breakdown of the number by brand under the correction category the Bridge[Brand] 'Liquid Paper 2-in-1 Bottle' only has a total amount in the 'POS'[Values] column of 81k where the Region'[Values] column has 498k so that looks like most of your variance.

    Most of the other amounts are very close.

    Could it be a problem with data missing from the POS table?