Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Counting through multiple tables

Hello, 

 

I am managing data from a client database with Clients, Projects, and project interactions. 

 

I have re-created this within Power BI and am now trying to calculate a few things. One of the problems i'm struggling with is how to count all clients that have had a project interaction since "x" date.

 

There are around 15 projects, and the structure of the model is broadly as follows...

<--> [bidirectional one to many ]

--> [one to many]

 

[Client table] (demographic info) <-->(client id) [Project table 1] --> (linked on project id) [project 1 project interactions]

                                                   <-->(client id) [Project table 2]  -->(linked on project id) [project 2 project interactions]

 

What i need to do is create a measure that counts distinct client record ID if that client had an interaction with any project since a certain date (taken from project interaction table). 

 

What would be the best way to go about this?

 

Thansk 

 

 

 

 

8 Replies

  • tex628's avatar
    tex628
    Community Champion

    Would it be possible for you to take a picture of the relationship pane in PBI? I'm having issues getting a clear picture of the structure.

    /J

    • Anonymous's avatar
      Anonymous
      Not applicable
       

      Yes - Sorry, didn't realise that I needed to sign in in order to do this...

       

      Thanks 

       

      • v-deddai1-msft's avatar
        v-deddai1-msft
        Community Support

        Hi Anonymous ,

         

        Would you please show us some sample data. Please erase unnecessary data and sensitive data, we only need a part for testing.

         

        Best Regards,

        Dedmon Dai