SOLVED

Timesheet

%3CLINGO-SUB%20id%3D%22lingo-sub-1080815%22%20slang%3D%22en-US%22%3ETimesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1080815%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20need%20hep%20on%20sharepoint%20list%20time%20sheet%20and%20my%20setting%20here%20it%20is%20also%20i%20need%20the%20calculation%20format%20please%20and%20time%20entry%20like%20this%26nbsp%3B%2009%3A00%20like%20that%20Thanks%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E%3CSTRONG%3EEmployee%20Name%3C%2FSTRONG%3E%3C%2FU%3E%3CSPAN%3E%26nbsp%3B%3Aperson%20type%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CU%3EDate%3C%2FU%3E%26nbsp%3B%20%2C%3CU%3EStart%20Time%3C%2FU%3E%3CSPAN%3E%26nbsp%3B%2C%3C%2FSPAN%3E%3CU%3ELunch%20Start%3C%2FU%3E%3CSPAN%3E%26nbsp%3B%2C%3C%2FSPAN%3E%3CU%3ELunch%20End%3C%2FU%3E%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CU%3E%3CSTRONG%3ETime%20%2CFinish%3C%2FSTRONG%3E%3C%2FU%3E%3CSPAN%3E%26nbsp%3B%3A%20date%20time%20type%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CU%3E%3CSTRONG%3ETotal%26nbsp%3BHours%20Worked%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FU%3E%3CSPAN%3E%26nbsp%3B%3A%20number%20type%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CU%3E%3CSTRONG%3EDay%20Pay%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1080815%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1082314%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1082314%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324358%22%20target%3D%22_blank%22%3E%40RAMOLE1325%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20far%20as%20I%20know%2C%20you%20cannot%20store%20time%20only.%20You%20can%20display%20the%20time%20portion%20of%20a%20date%20column%20in%20a%20calculated%20column%20using%20the%20following%20code%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3DTEXT(%5BDate%20Column%20Name%5D%2C%22hh%3Amm%20AM%2FPM%22)%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENorm%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1083196%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1083196%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324358%22%20target%3D%22_blank%22%3E%40RAMOLE1325%3C%2FA%3E%26nbsp%3Bthis%20can%20be%20done%20with%20a%20customised%20SharePoint%20form%20with%20Power%20Apps%20which%20I%20think%20is%20easier%20than%20trying%20to%20do%20it%20with%20calculations%20in%20the%20list%20itself.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163354i321272EC047C4B92%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22PA-form.png%22%20title%3D%22PA-form.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20result%26nbsp%3B%20is%20shown%20below%20and%20the%20form%20and%20list%20are%20also%20shown%20in%20the%20attached%20video.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163356iB60E2EA9DFD8FEAE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%220-SP-list.png%22%20title%3D%220-SP-list.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20added%20a%20connection%20to%20Office365Users%20so%20we%20could%20select%20from%20all%20employees%2C%20but%20as%20there%20are%20limits%20on%20the%20number%20that%20can%20be%20returned%20we've%20added%20a%20text%20input%20field%20to%20enter%20a%20name%20to%20search%20for%20and%20a%20dropdown%20to%20select%20from%20the%20employees%20returned.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20987px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163361i95BC3507AF25E4D7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22txtEmployee.png%22%20title%3D%22txtEmployee.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20date%20for%20each%20of%20the%20start%2C%20lunch%20start%2C%20lunch%20end%20and%20finish%20times%20as%20well%20as%20the%20hours%20and%20minutes%20for%20these%20needs%20to%20be%20entered%2Fselected.%20In%20the%20Hours%20card%20there%20are%20then%20text%20input%20fields%20for%20the%20minutes%20in%20the%20morning%20and%20afternoon%20and%20the%20default%20for%20the%20Minutes%20(AM)%20is%20a%20DateDiff%20function%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20967px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163357i4143C8C80B3A0FC1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22DateDiff-AM.png%22%20title%3D%22DateDiff-AM.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B..and%20a%20similar%20DateDiff%20function%20is%20used%20to%20calculate%20the%20minutes%20in%20the%20afternoon%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20925px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163358iD3A605E7E5C8CB25%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22DateDiff-PM.png%22%20title%3D%22DateDiff-PM.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20the%20hours%20we%20then%20add%20the%20minutes%20in%20the%20morning%20to%20the%20minutes%20in%20the%20afternoon%2C%20divide%20by%2060%20and%20round%20to%202%20decimal%20places%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20728px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163359i7A03519DB75146CF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Hours.png%22%20title%3D%22Hours.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20hours%20are%20then%20multiplied%20by%20the%20hourly%20rate%20which%20is%20a%20dropdown%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20967px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163360iAF2B17D48089950C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22DayTotal.png%22%20title%3D%22DayTotal.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe've%20made%20a%20couple%20of%20the%20data%20fields%20not%20visible%20that%20write%20the%20field%20back%20to%20the%20SharePoint%20list.%20These%20are%20for%20the%20Title%20column%20where%20the%20Employee%20name%20will%20be%20saved%2C%20and%20the%20hourly%20rate%20data%20field.%20These%20both%20get%20their%20values%20from%20the%20Employee%20dropdown%20and%20the%20hourly%20rate%20dropdown%20using%20the%20following%20syntax%3A%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20973px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163362i5582408CB513D754%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22hiddenDataFields.png%22%20title%3D%22hiddenDataFields.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20that%20gives%20you%20an%20idea%20of%20how%20you%20can%20achieve%20what%20you%20want.%20Come%20back%20if%20you've%20got%20any%20questions.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1083328%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1083328%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%26nbsp%3Bgreat%20response!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1083918%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1083918%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20i%20fellow%20this%20and%20when%20selected%20the%20hours%20calculation%20in%20power%20app%20OK%20but%20in%20SharePoint%20it%20records%20wrong%20StartTime%20to%20Finish%20hours%20as%20you%20can%20see%20on%20screenshot%20please%20have%20a%20look%20where%20i%20make%20the%20mistake%20please%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1084133%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1084133%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324358%22%20target%3D%22_blank%22%3E%40RAMOLE1325%3C%2FA%3E%26nbsp%3B%20could%20you%20post%20the%20screenshot%20please%2C%20it%20was%20not%20on%20your%20post.%20Thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1084138%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1084138%22%20slang%3D%22en-US%22%3EHi%3CBR%20%2F%3ESorry%20I%20forget%20to%20attach%2C%20please%20closely%20look%20the%20times%20the%20one%20on%20SharePoint%20is%20wrong%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1084141%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1084141%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324358%22%20target%3D%22_blank%22%3E%40RAMOLE1325%3C%2FA%3E%26nbsp%3B%20there's%20still%20no%20screenshot%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1084144%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1084144%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163419iDDCE47E7631EA188%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%228B40702D-5727-418A-9374-C139B3D851ED.jpeg%22%20title%3D%228B40702D-5727-418A-9374-C139B3D851ED.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163420i991AD7F693BDD0FA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%227F138592-F8E9-418B-B890-0CE6E15DFD4C.jpeg%22%20title%3D%227F138592-F8E9-418B-B890-0CE6E15DFD4C.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1084159%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1084159%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324358%22%20target%3D%22_blank%22%3E%40RAMOLE1325%3C%2FA%3E%26nbsp%3Bwell%20done%20for%20getting%20to%20this%20stage.%20In%20each%20case%20the%20difference%20is%202%20hours%20which%20indicates%20to%20me%20that%20the%20regional%20settings%20in%20your%20SharePoint%20site%20might%20not%20be%20set%20correctly.%20That's%20the%20first%20thing%20to%20check.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20803px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163421i916F6AA9360F68B8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22regionalSettings.png%22%20title%3D%22regionalSettings.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1084745%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1084745%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20correct%20it%20was%20the%20settings%2C%20now%20i%20corrected%20and%20%3CEM%3Eits%20fine%3C%2FEM%3E%3CEM%3E%2C%20thank%20you%20and%20your%20perfect%20teacher%20Rob%2C%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3ECan%20you%20please%20tell%20whats%20%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E1)the%20fill%20color%20on%20your%20app.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E2)%3C%2FEM%3E%3CEM%3Esecond%20thing%20the%20size%20of%20the%20app%20please.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E3)last%20thing%20say%20example%20if%20you%20select%20StartTime%20and%20now%20you%20jump%20to%20finishing%20without%20a%20break%20it%20will%20not%20calculate%3F%26nbsp%3B%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EThanks%20and%20happy%20new%20year.%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1084999%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1084999%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324358%22%20target%3D%22_blank%22%3E%40RAMOLE1325%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3Ethe%20fill%20color%20is%20hex%26nbsp%3B588181%20(RGBA%2088%2C129%2C129%2C100)%3C%2FLI%3E%3CLI%3Ethe%20size%20is%201185%20x%20690%3C%2FLI%3E%3CLI%3Ethat's%20correct%2C%20it%20won't%20calculate%20anything%20but%20you%20can%20just%20put%20in%20exactly%20the%20same%20time%20for%20the%20lunch%20start%20and%20lunch%20end%20and%20it%20will%20do%20the%20calculation%20correctly.%20I%20didn't%20want%20to%20make%20the%20calculations%20too%20complex.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163502i0EDAEFDCA663E46E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22no-lunch.png%22%20title%3D%22no-lunch.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ENo%20lunch!%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHappy%20New%20Year%20to%20you%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1085326%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1085326%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20lunch%20sometimes%20we%20skip%20and%20eat%20dinner%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fcryingwhilelaughing_anim.gif%22%20alt%3D%22%3Acryingwithlaughter%3A%22%20title%3D%22%3Acryingwithlaughter%3A%22%20%2F%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20help%2C%3CBR%20%2F%3E1)but%20the%20only%20thing%20i%20dont%20understand%20is%20if%20you%20look%20the%20screen%20shot%20at%20bottom%20of%20the%20app%20is%20White%20i%20dont%20know%20why%2C%20do%20you%20know%20how%20to%20get%20rid%20of%20that%20white%20background%20please.%3C%2FP%3E%3CP%3E2)%20When%20i%20click%20add%20new%20timesheet%20the%20employee%20dropdown%20always%20starts%20with%20first%20employee%2C%20is%20there%20a%20way%20to%20start%20blank%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20770px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163515iE5EA19E50CBA187D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22issue.png%22%20title%3D%22issue.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1085523%22%20slang%3D%22en-US%22%3ERe%3A%20Timesheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1085523%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324358%22%20target%3D%22_blank%22%3E%40RAMOLE1325%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20the%20following%3A%3C%2FP%3E%3CP%3E1.%20Make%20sure%20your%20SharePoint%20form%20covers%20the%20full%20area%20of%20FormScreen1%3C%2FP%3E%3CP%3E2.%20Insert%20a%20combobox%20instead%20of%20a%20dropdown.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

I need hep on sharepoint list time sheet and my setting here it is also i need the calculation format please and time entry like this  09:00 like that Thanks 

 

Employee Name :person type

 Date  ,Start Time ,Lunch Start ,Lunch End Time ,Finish : date time type

 Total Hours Worked  : number type

 Day Pay

 

Thanks 

13 Replies

Hi @RAMOLE1325,

 

As far as I know, you cannot store time only. You can display the time portion of a date column in a calculated column using the following code:

 

=TEXT([Date Column Name],"hh:mm AM/PM")

 

I hope this helps.

 

Norm

Best Response confirmed by RAMOLE1325 (Occasional Contributor)
Solution

@RAMOLE1325 this can be done with a customised SharePoint form with Power Apps which I think is easier than trying to do it with calculations in the list itself. 

PA-form.png

 

The result  is shown below and the form and list are also shown in the attached video.

 

0-SP-list.png

 

I added a connection to Office365Users so we could select from all employees, but as there are limits on the number that can be returned we've added a text input field to enter a name to search for and a dropdown to select from the employees returned. 

txtEmployee.png

 

The date for each of the start, lunch start, lunch end and finish times as well as the hours and minutes for these needs to be entered/selected. In the Hours card there are then text input fields for the minutes in the morning and afternoon and the default for the Minutes (AM) is a DateDiff function:


DateDiff-AM.png

 

 ..and a similar DateDiff function is used to calculate the minutes in the afternoon:

 

DateDiff-PM.png

 

For the hours we then add the minutes in the morning to the minutes in the afternoon, divide by 60 and round to 2 decimal places:

Hours.png

 

The hours are then multiplied by the hourly rate which is a dropdown:

 

DayTotal.png

 

We've made a couple of the data fields not visible that write the field back to the SharePoint list. These are for the Title column where the Employee name will be saved, and the hourly rate data field. These both get their values from the Employee dropdown and the hourly rate dropdown using the following syntax: 

hiddenDataFields.png

 

I hope that gives you an idea of how you can achieve what you want. Come back if you've got any questions.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

 

@Rob Elliott great response!

Hi @Rob Elliott 

 

Thank you i fellow this and when selected the hours calculation in power app OK but in SharePoint it records wrong StartTime to Finish hours as you can see on screenshot please have a look where i make the mistake please 

 

Thanks 

@RAMOLE1325  could you post the screenshot please, it was not on your post. Thanks.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

Hi
Sorry I forget to attach, please closely look the times the one on SharePoint is wrong

Thanks

@RAMOLE1325  there's still no screenshot :)

hi @Rob Elliott 

 

8B40702D-5727-418A-9374-C139B3D851ED.jpeg7F138592-F8E9-418B-B890-0CE6E15DFD4C.jpeg

@RAMOLE1325 well done for getting to this stage. In each case the difference is 2 hours which indicates to me that the regional settings in your SharePoint site might not be set correctly. That's the first thing to check.

 

regionalSettings.png

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

Hi@Rob Elliott 

 

You correct it was the settings, now i corrected and its fine, thank you and your perfect teacher Rob,

Can you please tell whats

1)the fill color on your app.

2)second thing the size of the app please.

3)last thing say example if you select StartTime and now you jump to finishing without a break it will not calculate?  

 

Thanks and happy new year.

@RAMOLE1325 

 

  1. the fill color is hex 588181 (RGBA 88,129,129,100)
  2. the size is 1185 x 690
  3. that's correct, it won't calculate anything but you can just put in exactly the same time for the lunch start and lunch end and it will do the calculation correctly. I didn't want to make the calculations too complex.

No lunch!No lunch!

 

Happy New Year to you as well.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

 

 

 

Hi@Rob Elliott 

No lunch sometimes we skip and eat dinner :cryingwithlaughter:.

 

Thanks for your help,
1)but the only thing i dont understand is if you look the screen shot at bottom of the app is White i dont know why, do you know how to get rid of that white background please.

2) When i click add new timesheet the employee dropdown always starts with first employee, is there a way to start blank?

 

Thanks issue.png

@RAMOLE1325 

 

Try the following:

1. Make sure your SharePoint form covers the full area of FormScreen1

2. Insert a combobox instead of a dropdown.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User