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

Complex filter: "Hours per week"

Hi guys,


I have a table where people book hours. However, some of the "entities" that book hours are not people, but teams comprising of more people.
I only want to filter  out the people. A rule of thumb is that people book a max of 50/60 hours per week, whilst teams can book hundreds of hours per week.

Weekly example:
Johan Akerfield - 41 hours
Bob Bedroom - 32 hours
X team - 200 hours

How can i create a calculated column, where based on the average hours per week I can determine whether a row is a person or a full team?

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Then you will have to do a column where the total per week is accumulated. Probably use Calculate based on person and time frame.


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Nathaniel_C
Super User
Super User

Hi @Anonymous ,

IF(Average(Table[Hours])<50,"Individual","Team")
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi Nathaniel,

 

Thanks for the quick reply! Unfortunately it does not work, everyone has been flagged as "Individual".

People book daily (6-9 hours), but I want to base the filter on the weekly average.

Hi @Anonymous ,

Then you will have to do a column where the total per week is accumulated. Probably use Calculate based on person and time frame.


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.