Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I have four tables. Table Agreement, Beaches, Connection and District.
Table Connection has a column AgreementID and BeachID.
Here is the relationship between the table:
Table Agreement &Table Connection through Agreement ID
Table Beaches & Table Connection through Beach ID
Table District & Table Beaches through District ID
Now, what I want to count is the number of Agreement ID per District. Sample data:
Result should be like this:
Should I create a measure column or merge queries?
Thank you!!!
Solved! Go to Solution.
In this scenario, you already build the relationships between tables, then you just need to create measure like below:
Number Of ID =
CALCULATE (
COUNTA ( Agreement[AgreementID] ),
ALLEXCEPT ( District, District[District] )
)
Regards,
In this scenario, you already build the relationships between tables, then you just need to create measure like below:
Number Of ID =
CALCULATE (
COUNTA ( Agreement[AgreementID] ),
ALLEXCEPT ( District, District[District] )
)
Regards,
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |