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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Related table

Hi 

I am New to PowerBI

 

I have two tables

Table 1

Category

Mech

Teck

Eng

 

Table 2 

Category   ID

Mech        123

Teck          124 

Eng            125

Mech         126

Eng             127

 

How do I count no of people in table 2 based on ID and list against category in Table 1.

1 REPLY 1
Angith_Nair
Continued Contributor
Continued Contributor

Hi @Anonymous ,

First of all, make a relationship between Table 1 & Table 2 on Category column. It will be one to many relationship. Then plot a table in which add Category column from Table 1 and then add ID column from Table2. This will give the count of no of ID's against category. I'm adding the pbix file for your reference. 

Click Here. 

If this works, kindly mark it as a solution. Appreciate with kuddos.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.