Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have the following data model:
fact MonthlyUserActivity - each row represents the quantity of logins by a single user into a single project for each month
dim RegionalUsers - bridge table to consolidate user IDs
dim Users - list of all users
dim Projects - list of all projects
dim Databases - list of databases each project belongs to a single database
dim Owners - each database belongs to one owner
Relationships:
fact MonthlyUserActivity (*->1) RegionalUsers (*->1) Users
fact MonthlyUserActivity (*->1) Projects (*->1) Databases (*->1) Owners
What I'm trying to acheive is a Measure that:
I've tried a few things, but not having much luck in building a virtual table that returns the correct data. Suggestions are welcome!
Solved! Go to Solution.
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:
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.
Solved my own problem....
FILTER(
SUMMARIZECOLUMNS(
'User List'[id],
"CountOwners", COUNTROWS(SUMMARIZE('Monthly User Activity by Project', 'Owners'[Owner Name]))
),
[CountOwners] > 1
)
Hi @rpiboy_1 ,
Can you try the following measure and let me know if this achieves your desired result?:
Measure =
VAR UsersWithOwnerCounts =
ADDCOLUMNS(
VALUES('Users'[User ID]),
"OwnerCount",
CALCULATE(
DISTINCTCOUNT('Owners'[Owner Name])
)
)
VAR FilteredUsers =
FILTER(UsersWithOwnerCounts, [OwnerCount] > 1)
RETURN
COUNTROWS(FilteredUsers)
If this helped, please mark it as the solution so others can benefit too. And if you found it useful, kudos are always appreciated.
Thanks,
Samson
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |