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

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

Reply
Vin_1234
New Member

Group by with Join on 2 tables.

Hi, 

 

What's the best way to achieve the below query in PowerBI.

 

select
c.hrms_team_level_2,
c.hrms_team_level_3,
count (i.login_name) as num_users
from
[dbo].[psdp_capacity_enrich_pdr] c
join dbo.psdp_infra_logon_connections i
on i.nt_user_name = c.nt_login
group by
c.hrms_team_level_2, c.hrms_team_level_3

1 REPLY 1
Anonymous
Not applicable

Hi @Vin_1234 ,

Could you please tell me what is your desired output? I cannot understand your meaning correctly.

How to Get Your Question Answered Quickly 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.