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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Total Count by categories

Hi All,

 

I have a table of codes with a count of users and a count of bookings. Something like this:

 

Code     Users     Bookings

123       25            12

456       50            20

789       100          30

 

I have another table that matches code to a city. There are 10's of different codes related to each city. I want to summerise users and bookings by city so have created a relationship between the 2 tables. When I look at users and bookings by city, get the same number (the total users and bookings for all cities) for each city. So if 123 and 456 are London and 789 is Cardiff, then the table would look something like:

 

City          Users   Bookings

London     175       62

Cardiff       175       62

 

Any help appreciated.

 

Thanks,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi ,

 

What relationship have you created ?

 

with relationship based on Code I see - 


w_relationship.JPG

 

 

 

 

 

 

 

 

without relationship I see below - 

wo_relation.JPG

 

 

 

Regards,

Nilesh 

View solution in original post

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Have you solved the problem?

 

If you have solved, could you share the solution or always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please share more data sample and describe your scenario in more details.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi ,

 

What relationship have you created ?

 

with relationship based on Code I see - 


w_relationship.JPG

 

 

 

 

 

 

 

 

without relationship I see below - 

wo_relation.JPG

 

 

 

Regards,

Nilesh 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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