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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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