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.
Hi all,
I'm trying to return the count of something related in another table.
So I have two tables. One named 'Business Services' and another named 'Monitors'.
Business Service is a table containing business services which its name column is all unique and no duplicates.
Monitors is a table with unique names for each monitor, but can relate many times to the same business service. As a result, there is a many to one relationship (cross filter: both) from monitors to business services.
What I want is to display the count of monitors against a business service and have this column within my business service table but I have been unable to. I have been trying to use DAX functions like SELECTCOLUMNS etc but they all want a single value returned. Any ideas?
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
One of ways is to use RELATEDTABLE DAX function in the Calculated Column.
RELATEDTABLE function (DAX) - DAX | Microsoft Learn
monitor count CC =
COUNTROWS(RELATEDTABLE(monitor))
Hi,
Assuming you want to do this via a measure, try this. Drag the column from the Business Services table to the Table visual and write this measure
Measure = countrows(Monitors)
Hope this helps.
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
One of ways is to use RELATEDTABLE DAX function in the Calculated Column.
RELATEDTABLE function (DAX) - DAX | Microsoft Learn
monitor count CC =
COUNTROWS(RELATEDTABLE(monitor))
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 |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |