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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Segment get time difference between two date time fields

(1) ShareShare
ReportReport
Posted on by
Segment - I have a data source, which is having two date time fields.
 
1. Check in
2. Check out
 
Now I want to create a segment for all those customers whose checkin and checkout time difference is less than 24 hours.
 
Any suggestions how can we create the condition in segment to achieve this above scenario.
 
Thanks & regards,
Dibyajyoti 
I have the same question (0)
  • Verified answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    Comparison of two attributes is not supported in segmentation.
    You can create a new column to store the difference between the /CheckIn/ and /CheckOut/ fields.
    Then use this column to build the segment.
     
    In my test, I built a custom column to store the days difference.
    Then build the segments to find the customers with a day difference greater than 1.
     
     
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me .
     
    Best Regards,
    Dengliang Li
     

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans