web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / In Gallery Calculate T...
Power Apps
Unanswered

In Gallery Calculate Time With Dropdown Time.

(0) ShareShare
ReportReport
Posted on by 15

Hi Team,

I am facing a challenge where I am using in gallery dropdown to select time and based on time want to get the difference in hour and minutes in HH:MM format. on the current I am using the code as I am sharing but getting wrong result also sharing the snapshot. If someone did  this kind of functionality please do let me know.

 

 

DateDiff(
 DateValue("01/01/2024") + Time(
 Value(LookUp(colactivrreport,RID=ThisItem.RID+1).DDhour),
 Value(LookUp(colactivrreport,RID=ThisItem.RID+1).DDmin),
 0
 ),
 DateValue("01/01/2024") + Time(
 Value(LookUp(colactivrreport,RID=ThisItem.RID).DDhour),
 Value(LookUp(colactivrreport,RID=ThisItem.RID).DDmin), 
 0
 ),
 TimeUnit.Hours
) & ":" & Mod(
 DateDiff(
 Startdate.SelectedDate + Time(
 Value(LookUp(colactivrreport,RID=ThisItem.RID+1).DDhour),
 Value(LookUp(colactivrreport,RID=ThisItem.RID+1).DDmin),
 0
 ),
 Startdate.SelectedDate + Time(
 Value(LookUp(colactivrreport,RID=ThisItem.RID).DDhour),
 Value(LookUp(colactivrreport,RID=ThisItem.RID).DDmin),
 0
 ),
 TimeUnit.Minutes
 ),
 60
)

 

 

In this code date will be the default save for all and date will visible false name with Start date and dropdown will as DDhour & DDmin.

Regards,

Vk_Mohit

Community_Send.PNG
Categories:
I have the same question (0)
  • Vk_Mohit Profile Picture
    15 on at

    Here Concept will be first row end time will be second row starttime.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard