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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
KathyO
Frequent Visitor

Comparing columns of data and flagging if value is more than a stated value

I'm trying to come up with a matrix which shows whether employees work more than their contracted hours of work.  I need to know how often this occurs over a 13 week period.

I have a matrix which shows each employee, and the 13-week period I'm analysing with hours worked each week.

KathyO_0-1712108515104.png

 

In a separate data source, I have the list of employees and their agreed contracted hours.  These two tables are linked through a relationship between the 'Employee Name' field.

KathyO_1-1712108852807.png

I'm hoping I can get some sort of measure or filter that compares the hours worked each week with the contracted hours for each employee, and flags when the hours worked are more than contracted.

 

For audit purposes, I would ideally like some kind of visual... ideally the matrix (as per the first screenshot) with the values where the hours worked exceeds the contracted hours highlighted, and a count of the total times that has occured in the 13 week period in a column at the end.  

 

Help please!

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file and the source Excel file (from which tables would have been imported into PBI). 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi, I'm not sure how to share the download link of the PBI file?  And can I privately send you the source excel file?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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