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
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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.