Forum Discussion

aymeric_kolan's avatar
aymeric_kolan
Frequent Visitor
9 years ago
Solved

Identify row with same ID (condition: 24 hours)

Hi all,   I’m working on IVR data for customer service and I’m looking for identify phone number who try to contact us more than once in 1 day… For each rows, I need to know if there is a row with...
  • v-jiascu-msft's avatar
    v-jiascu-msft
    9 years ago

    aymeric_kolan

     

    Hi,

     

    Please try this formula as a calculated column. If you want to change the time duration, just change the DeadLine part.

    Réit1j =
    VAR DeadLine = 'DATA SVI_2'[CallTime] + 1
    RETURN
        IF (
            CALCULATE (
                COUNTROWS ( 'DATA SVI_2' ),
                FILTER (
                    'DATA SVI_2',
                    'DATA SVI_2'[CallTime] > EARLIER ( 'DATA SVI_2'[CallTime] )
                        && 'DATA SVI_2'[CallTime] <= DeadLine
                        && 'DATA SVI_2'[CallCLID] = EARLIER ( 'DATA SVI_2'[CallCLID] )
                )
            )
                >= 1,
            1,
            0
        )

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Best Regards!

    Dale