Hi all,
I have two choice columns (start time, end time) where the options are times (e.g. not a proper time picker). I have a column with a formula in SharePoint that works out the duration between the two selected times. Its: =TEXT([End Time]-[Start Time],"hh:mm")
Can I use that formula in PowerApps? If so, I can add a label but where do I put the formula? If not, how can I show the user the duration before submitting to SharePoint?
Thank you in advance!
Solved! Go to Solution.
Hi @Ian-S ,
Try the below. Replace with your drop-down control names. I have also assumed the Items are Choices().
DateDiff(
DateTimeValue(StartTimeDD.Selected.Value),
DateTimeValue(EndTimeDD.Selected.Value),
Hours
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @Ian-S ,
Try the below. Replace with your drop-down control names. I have also assumed the Items are Choices().
DateDiff(
DateTimeValue(StartTimeDD.Selected.Value),
DateTimeValue(EndTimeDD.Selected.Value),
Hours
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
User | Count |
---|---|
255 | |
112 | |
92 | |
48 | |
38 |