Skip to main content

Notifications

Customer Insights - Data forum
Suggested answer

Segment get time difference between two date time fields

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 
Categories:
  • Suggested 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
     

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,876 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,425 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans