Skip to main content

Notifications

Announcements

No record found.

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 
  • Verified answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Segment get time difference between two date time fields
    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

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans