Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

issue between measure and relationships

Hello All,

 

I have a task to create a graph table to include columns from many different tables connected to each other on power bi using relationships.

I'll try to elaborate as much as I can,

tables used to build this graph:

  • Call table
  • Internal Line table
  • Users + sites

the table should include all user info (name, site,...) + count of calls this user made, if this user did not make any calls it should also be shown in the same table as this user is considered an inactive user, so I've created a measure from the call table to count calls. if the measure = "call number count =

DISTINCTCOUNT('call'[call.id]) + 0"
I've added the " + 0 " to show also users with 0 calls 
example:

this example is ok with me and this is what is requested, but I need to add 3 additional column from different tables (country name instead of the country code)

this is the relationship 

the issue is when I add the "requesting Country" column to the above table the table shows all existing countries in the "requesting country" table with 0 values, I need only to show the related country

the result is :

 

I need to show the related country only, if I remove the " +0 " from the measure it shows only matching records but remove the inactive user

any suggestion?

 

 

 

1 Reply

  • v-lionel-msft's avatar
    v-lionel-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    It is indeed a problem between table relationships and measures. Do you mind providing a sample .pbix file?

     

    Best regards,
    Lionel Chen

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