Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Relationship Help

Hi all,   Got a little conundrum I need some help with.   I'm currently building a reconciliation report that checks we're not losing any client records as we move data from one system to another...
  • v-zhenbw-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    The many-to-many relationship causes you to have the same value.

     

    Maybe you need to create a landscape count column in each table.

     

    In Landscape Value Bridge table, we create a column.

    Landscape Column = 
    CALCULATE(SUM('Results_LSC2 02 07 2020'[Landscape Count]),
    FILTER('Results_LSC2 02 07 2020',
    'Results_LSC2 02 07 2020'[Standardised Attribute Name]='Landscape Value Bridge'[Standardised Attribute Name] &&
    'Results_LSC2 02 07 2020'[prefix]='Landscape Value Bridge'[prefix]&&
    'Results_LSC2 02 07 2020'[Stand Value 1]='Landscape Value Bridge'[Stand Value 1]&&
    'Results_LSC2 02 07 2020'[Stand Value 2]='Landscape Value Bridge'[Stand Value 2]))

     

     

    In Standardised Attribute Name Lookup w Value table we create a column too.

     

    Landscapge column = 
    CALCULATE(SUM('Results_LSC2 02 07 2020'[Landscape Count]),
    FILTER('Results_LSC2 02 07 2020',
    'Results_LSC2 02 07 2020'[Standardised Attribute Name]='Standardised Attribute Name Lookup w Value'[Standardised Attribute Name] &&
    'Results_LSC2 02 07 2020'[Stand Value 1]='Standardised Attribute Name Lookup w Value'[Stand Value 1]&&
    'Results_LSC2 02 07 2020'[Stand Value 2]='Standardised Attribute Name Lookup w Value'[Stand Value 2]))

     

     

    The result like this,

     

     

    If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

    BTW, pbix as attached.

     

    Best regards,

     

    Community Support Team _ zhenbw

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.