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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ChrisAZ
Helper V
Helper V

Issue with calculating percentages

So I am trying to get my % column in the graphic to calculate the percentage of WO Hours relative to Paid Hours. What I have noticed is that it is not calculating a 0% value for all of the months in which the employee had no WO Hours. Those should be 0%, and then when looking at it for the full range of dates included for that employee or group, it should be doing it based on total numbers. For example, for 2024, for Brenden Baxter, it is showing WO hours of 16.15, and Paid Hours total to 609.99. It shows 13.26% (which is the value of December and the only month that has WO Hours), but it should really be 2.64% over the indicated time period of 2024.

 

Screenshot 2025-02-05 090103.png

 

I know here is also an issue in the sense that it is set to "SUM" but none of the other options provide correct results either. In the second screen shot for Dalton Mattson, you can see how it is adding the percentages from the months that have values instead of providing a true average percentage.

 

Screenshot 2025-02-05 090159.png

 

I have also included a copy of the PBIX for reference:
https://drive.google.com/file/d/19mpW2gCHJ01jhO0NuKS38d_5MdP7oIuZ/view?usp=sharing

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@ChrisAZ you should add % Worked  as a measure instead of column:

 

%Worked Measure = 
 DIVIDE ( 
    SUM ( 'Shop Labor - Labor Time entries -Fleetio'[Time] ),
    [Paid Hours]
 )


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

2 REPLIES 2
parry2k
Super User
Super User

@ChrisAZ you should add % Worked  as a measure instead of column:

 

%Worked Measure = 
 DIVIDE ( 
    SUM ( 'Shop Labor - Labor Time entries -Fleetio'[Time] ),
    [Paid Hours]
 )


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks so much! This works!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors