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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kostaszogo21
Frequent Visitor

Repeated Calls but with a twist

Hello to all!
Relatively new to power bi and this problem is for sure beyond my knowledge skills so i'm going to need all the helpi can get.
So my model has two tables, a header (Calls_Header) and a detail table (Calls_details) connected with the call_id.

kostaszogo21_0-1654766410995.png

 

 

In the header i have general info regarding each call_id. That is:

  1. call_id
  2. a_number (from which number has she/he called to the call centre)
  3. c_number (for which number is the problem she/he has called for)
  4. call_date
call_ida_numberc_numbercall_date
1111210998056721099805676/8/2022
2222210998056721099805676/6/2022
3333210998056769778877996/6/2022
4444210998056721099805676/6/2022
5555210998056721099805676/4/2022
6666211889966721188996675/30/2022
7777211889966721188996675/29/2022
8888699889999921188996675/26/2022

 

In the details table i have info regarding every step of the call in the call centre procedure. That is:

  1. call_id
  2. step_num ( in the call centre procedure)
  3. reason (the label put in every step)
  4. call_date
call_idstep_numreason call_date
11111ask_balance6/8/2022
11112undefined6/8/2022
11113pay_bill6/8/2022
11114undefined6/8/2022
11115undefined6/8/2022
11116undefined6/8/2022
22221undefined6/6/2022
22222ask_balance6/6/2022
22223undefined6/6/2022
22224undefined6/6/2022
22225undefined6/6/2022
33331undefined6/6/2022
33332undefined6/6/2022
33333undefined6/6/2022
33334undefined6/6/2022
33335pay_bill6/6/2022
44441undefined6/6/2022
44442undefined6/6/2022
44443undefined6/6/2022
44444cancel_contract6/6/2022
55551ask_balance6/4/2022
55552undefined6/4/2022
55553pay_bill6/4/2022
55554undefined6/4/2022
66661ask_balance5/30/2022
66662undefined5/30/2022
66663pay_bill5/30/2022
66664undefined5/30/2022
66665undefined5/30/2022
66666undefined5/30/2022
77771undefined5/29/2022
77772ask_balance5/29/2022
77773pay_bill5/29/2022
77774undefined5/29/2022
77775undefined5/29/2022
88881undefined5/26/2022
88882ask_balance5/26/2022
88883undefined5/26/2022
88884undefined5/26/2022
88885undefined5/26/2022

 

What i want to achieve is to have a measure (don't know if that can be achieved by a calculated column as well in a way) that calculates:
The number of repeated calls when

"A call_id is considered repeated when it concerns the same c_number, has at least one common reason (besides the reason "undefined") and is within 3 days from another call_id.

 

And as this wasn't difficult enough they also want another measure but with a different definition of the repeated call
 "A call_id is considered repeated when it concerns the same c_number and the same a_number, has at least one common reason (besides the reason "undefined") and is within 3 days from another call_id.

 

The below image may help you better understand what i want to achieve.

kostaszogo21_1-1654766411152.png

 

 

 

Appreciate all the help i can get and thank you all in advance.
Kostas,

PS: My role in the community doesn't allow me to upload pbix thus the tables and the images (that sucks Microsoft!)

2 REPLIES 2
kostaszogo21
Frequent Visitor

Is it better thiw way?

kostaszogo21_0-1654769241045.png

 

BeaBF
Super User
Super User

@kostaszogo21 Hi!

 

The image is too small and grainy. Can you paste the expected result?

 

Thx,

BF

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.