Forum Discussion

John_C_2005's avatar
John_C_2005
Copper Contributor
Sep 01, 2021
Solved

Power Pivot help needed - managing m2m relationship

Hi Forum  PC/windows 10 - Excel 19 ( Professional Plus 2019) Can someone assist me please as I seem to be going around in circles ? I am relatively new to Data Tables and Power Pivots.   I am try...
  • SergeiBaklan's avatar
    Sep 01, 2021

    John_C_2005 

    I'm not sure if GRC table is with unique code or not. If yes, you may use relationships as

    combining GRC and RIBB tables.

    TREAS you may add using virtual relationships using aggregation like

    TR:=CALCULATE( COUNTROWS(TREAS),
        TREATAS( VALUES( RIBB[GRC Product Code] ),
                 TREAS[GRC Product Code] )
    )
    
    or
    
    TRF:=CALCULATE( SUM(TREAS[Treasury UID]),
         TREATAS( VALUES( RIBB[GRC Product Code] ),
                  TREAS[GRC Product Code] )
    )

    , whatever. In any case you need something in Values of PivotTable, otherwise it always will be Full Outer relationship. Don't know what Treas Filter shall mean, in above is TRF instead.

     

    Finally PivotTable is

    If that's what you expect you may remove Unique table at all.

     

    Please check in attached file.

Resources