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

Groupby from count of anothe table's filtered value

Hi all:

 

Say I have 2 tables

- The first one contains project hour by each week, week number, employee names,  and project code, etc...

- The second one contains contract hour and employee names

 

I want to create a measure / column which can calculate FTE count, which is (total number of project hour of specific project code in a time period) / (total number of contract hour of employees who is doing this project in a time period).

 

There is a slicer of week number and a project list in the dashboard. I want to see the FTE count changing when I select the project / week number.

 

image.png

But I don't know how to groupby them, especially how to group the contract number hours by the week number I selected. For example, in this graph, the FTE should be 14.87, but it tripled because i selected 3 weeks. 

 

I would appreciate a lot with any reply. 

 

Regards,

Shuyao 

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Shuyao,

 

Can you share a sample, please? Please mask the sensitive parts first.

Why not divide it by weeks?

 

Best Regards,

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

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.