Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

CALCULAR EL NÚMERO DE LLAMADAS RECIBIDAS QUITANDO LAS QUE SON REINCIDENTES

Hola a todos!! 

 

Tengo el número total de llamadas recibidas de un Call Center. Sin embargo, este dato no es el que quiero obtener puesto que dentro de este número también entran las llamadas reincidentes. Necesito calcular el número  llamadas quitando aquellas que sean reincidentes.

Me explico: La empresa tiene una serie de clientes. Uno de ellos, por ejemplo, es una empresa de ascensor llamada "MP ascensores". Cualquier persona que tenga un problema con un ascensor, llama a un número que contestamos nosotros y todas éstas llamadas entran y se nos registran como "MP ascensores". Entonces, pongamos que una persona "X" llama 4 veces, otra "Y" llama 3 y otra "P" llama 2. Si cuento el número de llamadas me saldrá que son 9 llamadas en total. Necesito crear una función DAX que me cuente las llamadas con la condición de que no cuente aquellas que hayan sido repetidas en menos de 10 minutos, es decir, si una persona llama a las 14:50 y luego a las 14:53, que solo me cuente 1 llamada y no 2. He pensado que 10 minutos podría ser aceptable para que no contase como llamada reincidente. A continuación, dejo una imagen con los datos y algún ejemplo de llamada reincidente pintado de amarillo.

 

Captura.PNG

 

¿Alguien podría ayudarme? Muchas gracias de antemano!!! 

 

Un saludo!

Bibi

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Hola, prueba esto

Primero, en su tabla de datos, necesita una nueva columna adicional para definir cuándo es la próxima llamada de un cliente.

new_next call_column = MINX(CALCULATETABLE([tabla de datos],[columna de clientes] =ANTERIOR([[columna de clientes]), [columna person_calling] = ANTERIOR ([columna person_calling),[columna date_call]>ANTES([columna date_call]))

Luego, calculamos la brecha por nueva columna

gap_column = if(OR([new_next call_column] = BLANK(),[new_next call_column]-[date_call columna]>600),"count","not count")
Luego, contamos la llamada tiene valor de gap_column es "contar"
count_call = COUNTROW(FILTER([tabla de datos],[gap_column]="count")

Anonymous
Not applicable

Hello @HoangHugo , @Syndicate_Admin

Thank you for your answer. 

 

I'm struggling to calculate the first column (new_next call_column) because I suppose the function has been translated so I don't know the real words.

I'm gonna put you the words I don't know in bold:

new_next call_column = MINX(CALCULATETABLE([tabla de datos],[columna de clientes] =ANTERIOR([[columna de clientes]), [columna person_calling] = ANTERIOR ([columna person_calling),[columna date_call]>ANTES([columna date_call]))

Could you tell me which functions are, please?

 

Also, I only have a unique column with the calls called "Cola" where appears the name of the clients, so how can that affect to the calculate to the first column? Because I don't understand what column I have to put where you say "columna person calling".

 

Apart from it, I was wondering if the column Date must have the time along with the date or only the date.

 

Thank you so much!

 

 

Hi, I repost my original answer here, hope it help well

 

First, in your data table, you need a new extra column to define when is next call of one customer?

 

new_next call_column = MINX(CALCULATETABLE([data table],[customer column] =EARLIER([[customer column]), [person_calling column] = EARLIER ([person_calling column),[date_call column]>EARLIER([date_call column]))

 

Then, we calculate gap by new column

gap_column = if(OR([new_next call_column] = BLANK(),[new_next call_column]-[date_call column]>600),"count","not count")
Then, we count the call have value of gap_column is "count"
count_call = COUNTROW(FILTER([data table],[gap_column]="count")

Anonymous
Not applicable

Hi @HoangHugo!

There's a problem with the first function. It appears the following error: "The MINX function does not support values of type Boolean". In the picture I uploaded you can see the type of data. "Customer column" would be "Cola" and "Date_call column" would be "Fecha". My "person calling column" it's the same as customer column.  Thank you again.  

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.