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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Get employee names from a count of employees

Hi,

For now I have this formula (Measure):

#Work Hours = CALCULATE(COUNTA(Employees[ID]),filter(Employees,Employees[WorkHours]>45))

This is returning the number of employees that worked more than 45 hours. I need to return the list of employees (name) that worked more than 45 hours in a visual (can you suggest me something) like Table or Card. I have the column Name in the Employees table. 


Any help/tip is welcome. If you need more information/clarification tell me.

Thank you,
Ferk

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you for your answers @Anonymous and @jeewats!

I found this solution:

Employees =
CONCATENATEX(
            FILTER(
                Employees,
                Employees[WorkHours] > 45 
            ),
            Employees[Name],
            " , "
    )

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thank you for your answers @Anonymous and @jeewats!

I found this solution:

Employees =
CONCATENATEX(
            FILTER(
                Employees,
                Employees[WorkHours] > 45 
            ),
            Employees[Name],
            " , "
    )
Anonymous
Not applicable

Hi, @Anonymous 

I'm happy to answer your questions. I suggest using the following method to filter the Work Hours>45 employee rows, which is very easy to do. I created a sample with the main data as follows:

8.png

Let's create a table visualization:

9.png

We set the Work Hours in the filters >> show items when then values >> is greater than >> Enter 45 in the input box below >> Apply filter

10.png

Here are the results:

11.png

The second way, we can create a slicer as follows:

12.png

Move the slider to 45:

13.png

This also allows filtering to be achieved. If the above solutions can help you, that's great. I've provided my sample PBIX file below.

 

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

jeewats
New Member

One easy thing you could do is wrap that in an IF statement and create two categories, those that work > 45 hours and those that don't. Then create a table with all employee names and use that measure as a filter on the table. That should only show those that worked greater than 45 hours. There are probably more elegant ways to do it, but that's the quick, dirty way I'd do it.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.