Forum Discussion

Nargiz12345's avatar
Nargiz12345
Regular Visitor
4 years ago
Solved

Three relationships between two tables

Dears,  I have two tables that contain following information.  Date Region Country SUPPly 01/01/2016 AFRICA  Angola 100 01/02/2016 AFRICA Congo 200 01/03/2016 AFRICA Algeria ...
  • v-jingzhang's avatar
    4 years ago

    Hi Nargiz12345 

     

    The relationships are not appropriate. Instead of creating relationships between two Supply tables directly, you can add Dim tables to the model, then create relationships between Dim tables and two Supply tables. This will make the calculation easier. You just need to create a simple measure as below. 

    Result = DIVIDE(SUM(Table2[Supply]),SUM(Table1[Supply]))

     

    Ensure the Dim tables cover all possible values. And use columns from Dim tables in all slicers. I have attached the sample file at bottom. Hope it helps. 

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.