Forum Discussion
Measure - Intersecting counts of two dimensions
- 1 year ago
Solved my own problem....
FILTER( SUMMARIZECOLUMNS( 'User List'[id], "CountOwners", COUNTROWS(SUMMARIZE('Monthly User Activity by Project', 'Owners'[Owner Name])) ), [CountOwners] > 1 )
Hey rpiboy_1 ,
Thanks for the detailed explanation of your data model. You're on the right track you need a measure that:
- Builds a virtual table showing each User and how many distinct Owners they have interacted with.
- Filters that table to only include users with Owner count > 1.
- Counts the number of such users.
Users with Multiple Owners (Measure)
UsersWithMultipleOwners :=
VAR UsersOwners =
ADDCOLUMNS (
VALUES ( 'Users'[UserID] ),
"OwnerCount",
CALCULATE (
DISTINCTCOUNT ( 'Owners'[Owner Name] )
)
)
VAR FilteredUsers =
FILTER ( UsersOwners, [OwnerCount] > 1 )
RETURN
COUNTROWS ( FilteredUsers )
If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.
Best Regards,
Nasif Azam
Hi rpiboy_1 ,
I would also take a moment to thank SamsonTruong , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the response has addressed your query, please Accept it as a solution so that other community members can find it easily.
Thank you
Harshitha.
Community Support Team.