Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Table 1
| ID | Name |
| 1 | Orange |
| 2 | Blue |
| 3 | Black |
| 4 | Green |
Table 2
| ID | Location | Name | NameId |
1 | Atlanta | Blue | 2 |
| 2 | Rome | Blue | 2 |
| 3 | London | Black | 3 |
| 4 | Paris | Orange | 1 |
Table 1 have a 1 to many relationship with Table 2. I want to create a measure to count the rows for each name to have a total of each name that is valued in Table 2. Then I want to identify how many names have 1 or less rows in Table 2.
Thank you for any help you can provide!
Why a many-to-many relationship? The colors are unique.
Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 13 | |
| 10 |