Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
analyst10101
Frequent Visitor

total one to many relationship

Hi, Is there a way of showing in the visualisation how many rows there are in the "many" table when 2 tables are linked in a one to many relationship? I've had a look and cant find an answer, many thanks

1 ACCEPTED SOLUTION
mahenkj2
Solution Sage
Solution Sage

HI @analyst10101 

 

Please see attached. You may try using COUNTROWS in conjunction with ALL to get TotalCounts.

 

https://drive.google.com/file/d/1t_6EOJdepPAVDjKBVB9uJMe-DRfCL8J9/view?usp=sharing

 

Hope it helps.

View solution in original post

5 REPLIES 5
v-kongfanf-msft
Community Support
Community Support

Hi @analyst10101 ,

 

Did @mahenkj2  reply solve your problem? If so, please mark it as the correct solution, and point out if the problem persists.

 

Best Regards,
Adamk Kong

mahenkj2
Solution Sage
Solution Sage

HI @analyst10101 

 

Please see attached. You may try using COUNTROWS in conjunction with ALL to get TotalCounts.

 

https://drive.google.com/file/d/1t_6EOJdepPAVDjKBVB9uJMe-DRfCL8J9/view?usp=sharing

 

Hope it helps.

analyst10101
Frequent Visitor

It's the total rows in the many table. There are 17000 ish rows in the many table, when the relationship is added about 1300 rows in the many table link to the other "one" table. The visualistions update and then show 1300. I would like them to still show 17000 for this specific visual.

samratpbi
Super User
Super User

use countrows() function on that table for which you want to see no of rows.

If this resolves your problem then please mark it as solution, Thanks!

mahenkj2
Solution Sage
Solution Sage

Hi @analyst10101 

 

Is it total for that related item in table of 1 side or total rows in many table?

 

Better if you post sample data in editable format and desired sample output.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.