Forum Discussion
dmartinezl
6 years agoFrequent Visitor
Compare data with other rows
Hi, everyone! Thanks in advance for your help. I'm stucked with the following problem: I have this (partial) table with data from a call center. My goal is to identify what calls a...
- 6 years ago
Hi dmartinezl
I see solution if you have a field Agent
there are two options. it should give you the same result but it may have a different consumption. try
AGENT FREE = if( and(LOOKUPVALUE('Table'[EndDateTime];'Table'[Agent];SELECTEDVALUE('Table'[Agent]);'Table'[StartDateTimeText];calculate(MAX('Table'[StartDateTimeText]); filter('Table';AND('Table'[Status]="Handled";'Table'[StartDateTimeText]<=EARLIER('Table'[StartDateTimeText])))))<'Table'[StartDateTimeText]; 'Table'[Status]="Abandoned"); 1;0)or
AGENT FREE = if( and(LOOKUPVALUE('Table'[EndDateTime];'Table'[StartDateTimeText];calculate(MAX('Table'[StartDateTimeText]); filter('Table';AND(and('Table'[Status]="Handled";'Table'[Agent]=selectedvalue('Table'[Agent]));'Table'[StartDateTimeText]<=EARLIER('Table'[StartDateTimeText])))))<'Table'[StartDateTimeText]; 'Table'[Status]="Abandoned"); 1;0)do not hesitate to give a kudo to useful posts and mark solutions as solution
dmartinezl
6 years agoFrequent Visitor
Hi dax
It may happen that an operator is free but nevertheless the call is marked abandoned.
The objective is to identify these calls with the help of the columns StartTime and EndTime taking into account the Status.
Thanks anyway for your help!!
dax
6 years agoCommunity Support
Hi dmartinezl,
If possible, could you please explain your logic to me? Then I will help you more correctly.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.