Forum Discussion

bhalicki's avatar
bhalicki
Helper V
3 years ago
Solved

COUNTROWS total rows by group

I have the following tables and relationships: User UserId UserName 1 Bill 2 John 3 Fred   License LicenseId LicenseDesc UserId 1 License A 1 2 License B 1 3...
  • ERD's avatar
    3 years ago

    bhalicki ,

    You can try this measure:

    LicensesAllocated = 
    CALCULATE(COUNTROWS(License), FILTER(ALL(License), License[UserId] = SELECTEDVALUE(License[UserId])))