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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
winniexlee
New Member

Chart Display for Non-OT and OT values

Hi Experts,

 

I have this table that has 3 columns:

1. Normal Hours

2. OT Hours

3. Employee Name

 

I would need to calculate segregate the hours to display in the chart. How do i display both values of the normal hours and OT hours in the chart? On top of that, I would need another table to indicate if the OT hours is payable at 1.5x or 2x of their salary, with 1.5x being normal days overtime and 2x being public holiday or Sundays. 

 

I would also need to state the percentage and show the trend of the overtime as compared to the normal working hours. 

2 REPLIES 2
winniexlee
New Member

Hi @amitchandak,

 

My current table looks like this:

Emp NoJobStart DateEnd DateNormal Working HrsOT Hrs
DavePainting3-Jan3-Jan83
BobAssembly4-Jan4-Jan100
JackMaintenance5-Jan5-Jan86

 

On top of that, i have another table indicating the date for public holidays. Other than showing the normal working hours, OT hours, the trend of the OT hours in %, i would still need to limit my data according to:

1. Employees cannot work more than 12 hrs of overtime a day

2. Employees cannot exceed 44 hours OT in three weeks

3. Employees cannot work consecutively for 19 days (including PH and weekends)

4. Overtime a month cannot exceed 72 hrs (excluding PH and Sundays)

 

I would then need to visualize the above in a separate chart.

 

 

 

 

amitchandak
Super User
Super User

@winniexlee , You need measures like

 

Sum(Table[Normal Hours])

 

Sum(Table[OT Hours])

 

OT Pay = SumX(Table,   Switch(True() ,

Employee[Type]="A", [OT Hours] *2.5,

[OT Hours] *1.5

) * [Hourly Pay])

 

 

Ratio = divide(Sum(Table[OT Hours]) , Sum(Table[Normal Hours]) )

 

Change as per need

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.