Forum Discussion
aymeric_kolan
9 years agoFrequent Visitor
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...
- 9 years ago
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
v-jiascu-msft
9 years agoMicrosoft Employee
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
aymeric_kolan
9 years agoFrequent Visitor
Thank you v-jiascu-msft.
It works :)
- v-jiascu-msft9 years agoMicrosoft Employee
My pleasure! I am so glad it helps.
Best Regards!
Dale