Forum Discussion

thepuzzlemaster's avatar
thepuzzlemaster
Frequent Visitor
3 years ago
Solved

Matrix Rows - Related table showing all values, rather than just the related one

I have 2 related tables (1: many from Users[userId] -> Homes[ownerId]): Users: usersId   name   email   123 john smith   [email protected] 124 becky riley [email protected] Homes: ...
  • lbendlin's avatar
    lbendlin
    3 years ago

    Explicit measures require a filter context.  You are trying to report on things that aren't there (gaps in your data).  That requires cross joins and / or disconnected tables. You can also use COALESCE to handle some situations.

     

    unavailable/month = COALESCE(DISTINCTCOUNT(Availability[date]), 0)

     

    see attached.