Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Button (Time In ) - OnSelect Property
UpdateContext({varTimerActive:true});UpdateContext({varTimerReset:false});
Set(varNewItem, Patch('Attendance Time Tracker',Defaults('Attendance Time Tracker'),{Title:User().FullName,'Start Time':Now(),Location:Location.Latitude & "," & Location.Longitude,Working:true}))
Button (Time Out) - OnSelect Property
UpdateContext({varTimerActive: false});UpdateContext({varTimerReset:true});
Set(varNewItem, Patch('Attendance Time Tracker', LookUp('Attendance Time Tracker', varNewItem.ID=ID),{'End Time':Now(),'Time Spent':DateDiff(varNewItem.'Start Time',Now(),TimeUnit.Minutes),Working:false}))
Note:- It's working at the same time or before the app refresh. but after the app refresh it's not working.
any solution for this?
Thanks, Pankaj.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.