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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.