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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
analyst10101
Regular 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
Regular 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
Solution Supplier
Solution Supplier

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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