Forum Discussion

PBI5851's avatar
PBI5851
Helper V
6 years ago
Solved

How to join properly

Hello,   I have a hurdle to overcome. I dont have control on the Database so cannot create new table or modify the underlying structure.  I have the date table, and Table A which has a createddate,...
  • parry2k's avatar
    6 years ago

    PBI5851 you should create a relationship between date table and table b, it will be inactive relationship and create a measure with the following expression.

     

    Customer Count = CALCULATE ( COUNTROWS ( CustomerTable ) ,  USERELATIONSHIP ( CustomerTable[CustomerActionDate], DateTable[Date] ) ) 

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.

  • Anonymous's avatar
    Anonymous
    6 years ago

    PBI5851 

    Try remove the "Table A to B is 1-many" relationship and make both Tables relate with Date Table via the date columns. 

    Date Table =>Table A (1- many)

    Date Table =>Table B (1-many)


    Paul Zheng _ Community Support Team
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.