Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
How to Execute this sql query in Power Bi.
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
Solved! Go to Solution.
Hi @Vin_1234 ,
Create calculated table.
SUMMARIZE(
FILTER(CROSSJOIN('psdp_capacity_enrich_pdr','psdp_infra_logon_connections'),
[nt_login]=[nt_user_name]),[hrms_team_level_2],[hrms_team_level_3],[i.login_name],"num_users",
COUNT(i.login_name)
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Vin_1234 ,
Create calculated table.
SUMMARIZE(
FILTER(CROSSJOIN('psdp_capacity_enrich_pdr','psdp_infra_logon_connections'),
[nt_login]=[nt_user_name]),[hrms_team_level_2],[hrms_team_level_3],[i.login_name],"num_users",
COUNT(i.login_name)
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |