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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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