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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bhaddour
Regular Visitor

Categorizing values

Spoiler
Spoiler
 

Hi everyone, 

 

Need some help over here 😊

 

I have for an employee how many daily worked hours. And this for everyday for a week. 

 

  • Created mesures to see how many employees worked 35 or 37.5 or <40 etc. hours per week. 

 

CALCULATE(
COUNTROWS(
FILTER(ADDCOLUMNS(SUMMARIZE(Hours,Hours[Name]),"SumHours",CALCULATE(SUM(Hours[Hours]))),[Sum Paid Hours]=35)

 

  • Created mesures to see how many hours in total for employees that worked  35 or 37.5 or <40 etc. hours per week. 
CALCULATE(
SUM(Hours[Hours]),
FILTER(ADDCOLUMNS(
SUMMARIZE(Hours,Hours[Name]),"SumHours",CALCULATE(SUM(Hours[Hours]))),[Sum Paid Hours]=35)
 
I'm looking for a way to show in a table or matrix all employee per group ( 35 hours per week, 37.5 hours per week,etc.)
I've tried to create to column but I'm lost. 
 
 
5 REPLIES 5
bhaddour
Regular Visitor

Your video is mentioning how to count employees like a pivot table but I need a way to have all employee names in a table if I select for example <35 in a slicer , button , or any other way. 

 

 How can I insert a dummy excel file for you to see

thanks fo your help

@bhaddour ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Here is an excel fila of a sample. 

Hope it can helps .

Thank you very much

https://drive.google.com/drive/folders/1zC77R6nP6OFu7i73xDUI1Bm98--x6BJ9?usp=sharing

 

amitchandak
Super User
Super User

@bhaddour , you have to create bucket around measure [Sum Paid Hours] using independent table

 

refer if my video can help

https://youtu.be/CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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