Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Calculating Correct Percentage

Hello-

 

I am new to Power BI and I am stuck on how to calculate the percentage of hours by Department correctly. The current measure I have in place seems to work fine with the percentage of hours by Month, but not by Department.  

 

Here's one Measure that I have created:

GM HRS % = CALCULATE(DIVIDE(SUM('Monthly Hours YTD'[GM Hours]),[Avail_Hours]))

The above screenshot shows one Measure I created that works correctly by Month, but not by Department. For example, the Account Management column should total to 100% or higher vs. 10-11%. I believe the Measure is taking the percent of Account hours by all available hours. 

 

For this chart, I would like to show the percent of Account hours by the total Account hours (not all hours) and all of the other departments. Does that make sense?

 

Here's an example of how the percentages should be calculating. 

 

Any help would be super appreciated. Thanks!!! 

3 Replies