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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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