Forum Discussion

whenriques's avatar
whenriques
Helper I
4 years ago
Solved

Create Relationship to Add Field to Matrix Report

Any chance you can, please, help me create a relationship to add the '"Total Revenue" to the matrix report below:   I have the relationship of the tables using "Period." See below    ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi whenriques ,

     

    Please check if this is what you want.

     

    Total Overrun =
    CALCULATE (
        SUM ( 'Overrun Data'[amount] ),
        USERELATIONSHIP ( TopRankingQuery[OrgName], 'Overrun Data'[Organization] ),
        FILTER ( 'Overrun Data', 'Overrun Data'[OFRmapping] IN { "overrun" } )
    )
    

     

    The basic logic is to create an inactive relationship and use USERELATIONSHIP() function to active the relationship while doing the calculation.

     

    Best Regards,

    Jay