cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Percentage of hours work per employee for each department

Hello! I could use some help with creating a measure that can calculate percent of hours worked per employee for each department 

 

percentemploye.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Percentage of hours work per employee for each department

It should be something like:

Measure = [Hours] / CALCULATE([Hours],ALLEXCEPT('Table',[DIVISION]))

If Hours is a measure. If column:

Measure = SUM([Hours]) / CALCULATE(SUM([Hours]),ALLEXCEPT('Table',[DIVISION]))

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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
Highlighted
Super User IV
Super User IV

Re: Percentage of hours work per employee for each department

It should be something like:

Measure = [Hours] / CALCULATE([Hours],ALLEXCEPT('Table',[DIVISION]))

If Hours is a measure. If column:

Measure = SUM([Hours]) / CALCULATE(SUM([Hours]),ALLEXCEPT('Table',[DIVISION]))

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




View solution in original post

Highlighted
Helper II
Helper II

Re: Percentage of hours work per employee for each department

@Greg_Deckler  awesome thank you this worked perfectly! I love this community very helpful 

Highlighted
Super User IV
Super User IV

Re: Percentage of hours work per employee for each department

Happy to help! Yeah, me too! 🙂

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors