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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
trobey
Frequent Visitor

Hours Charged vs Budget showing Percentage

I'm trying to show hours worked in the form of percentage based on what is budgeted.   I have 1 table with the budget showing how much time is budgeted for each employee by cost center.  And then I have another table showing how much time each employee has charged to their cost center.   I need an output that shows how much over or under they are in relation to the actual hours versus budgeted hours.   Any help would be greatly appreciated.  I'm sure there is a simple measure but everyone I have tried doesn't seem to work out the way I want it too.  

1 ACCEPTED SOLUTION

@trobey  create matrix visual, put employee on rows and cost center on columns and following measure on values

 

Actual = SUM( YourActualTable[Hours] )

Budget = SUM( YourBudgetTable[Hours] )

% = DIVIDE( [Actual], [Budget], 0 )

Cheers!!



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

4 REPLIES 4
parry2k
Super User
Super User

@trobey it is very important to know how your tables are related.

 

Confirm if your model looks like this

 

- employees

- target

- actual

 

target, actual are related with employees table with 1 to many relationship, 1 on employee side.



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.

@parry2k  I am able to determine percentage of total hours charged compared to what is budgeted for total hours, as you can see in the attached screenshot.  But what I'm trying to do is get the percentage for each cost center/project of total hours charged compared to what is budgeted for that person.   So if someone is budgeted for 100 hours in a project but they have charged 110, I need to be able to show that percentage.   Do I need to create a new measure? If so what kind of formula do I use?   Or do I need to create another table?  BudgetHours.jpg

@trobey do one favour for me? Share pbix file with sample data and I will get back to you with solution.



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.

@trobey  create matrix visual, put employee on rows and cost center on columns and following measure on values

 

Actual = SUM( YourActualTable[Hours] )

Budget = SUM( YourBudgetTable[Hours] )

% = DIVIDE( [Actual], [Budget], 0 )

Cheers!!



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.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.