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
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

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.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors