Forum Discussion

JayJayOliveira's avatar
JayJayOliveira
New Member
6 years ago
Solved

Exclude conflicting dates in date difference calculation

Hello everyone! I'm having trouble excluding date values that are between "bigger" intervals. Can someone please help? 🙂 I find it better to explain through an example (will use integer value...
  • amitchandak's avatar
    6 years ago

    JayJayOliveira , Please find the file where I have created an overlapping flag

    You need create an index column or make join only > or <

    Try like

    future conflict = if(ISBLANK( COUNTX(FILTER(Sheet1,  EARLIER([from Date]) >= [from Date] && EARLIER(Sheet1[from Date])<=([to Date]) && [Index] <> EARLIER([Index])),[from  Date])),"NoConflict","Conflict")

     or

    future conflict = if(ISBLANK( COUNTX(FILTER(Sheet1,  EARLIER([from Date]) > [from Date] && EARLIER(Sheet1[from Date])<([to Date]) ),[from  Date])),"NoConflict","Conflict")