Forum Discussion
jackj
Helper I
5 years agoCalculating a count across disconnected tables
Hi, I am struggling to do what I think should be a very simple calculation. I have two disconnected tables, Orders and Visits. Each of them shares a similar UserID column. It's called 'Custome...
- 5 years ago
jackj usually in scenarios like this you should have a common dimension table with a unique user id and link these two together, anyhow try the following expression to get the count:
Count = CALCULATE ( COUNTROWS ( Customer ), TREATAS ( VALUES ( Visits[UserId] ), Customer[CustomerId] ) )Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to 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.⚡