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
king2005r
Helper III
Helper III

Number of repeated Tickets per month

Hi

 

I want your help to get below requirment report :

1-Number of repeated Tickets ( more than 1 time for customer name) within resoulations date ( month ) and close root cause is repeated more than 1 time within same month

2- Monthly total count of repeated incidents percentage from total incident

 

Demo Data :

TicketnumberService NameProduct NameResolution DateCustomer NameCircuit IdRoot Cause
334657RemotRemot9/8/2019 11:21Test1Test1Power
334694RemotRemot9/1/2019 9:21Test1Test1Power
335155RemotRemot8/2/2019 22:04Test1Test1Power
335322RemotRemot8/5/2019 22:12Test1Test1Cute
336292RemotRemot9/3/2019 19:34Test2Test2Cute Cute
336307RemotRemot9/1/2019 13:44Test2Test2Power
336310RemotRemot9/2/2019 6:20Test2Test2power
336335RemotRemot9/1/2019 14:25Test2Test2Cute Cute
336351RemotRemot9/3/2019 15:59Test3Test3Cute Cute
336374RemotRemot9/1/2019 20:51Test2Test2Power

 

Report will be :

 

Customer NameMonthCount of repeatRepeated root cause
Test1Sep1Power
Test2Sep2Power
1 ACCEPTED SOLUTION

This logic seems to be based on  circuit ID, not the root cause. I changed it. Also, created an additional measure to show data only when sum >1

 

https://www.dropbox.com/s/ino5zbpymbnj81y/RepeatFlag.pbix?dl=0

View solution in original post

15 REPLIES 15
amitchandak
Super User
Super User

create as new column

last date of same issue in this month =
maxx(filter(table,table[Customer Name]=earlier(table[Customer Name]) && table[Root Cause]=earlier(table[Root Cause])
&& table[Resolution Date]<earlier(table[Resolution Date]) && month(table[Resolution Date]) =month(earlier(table[Resolution Date]))),table[Resolution Date])

repeat flag =
=
if(isblank(maxx(filter(table,table[Customer Name]=earlier(table[Customer Name]) && table[Root Cause]=earlier(table[Root Cause])
&& table[Resolution Date]<earlier(table[Resolution Date]) && month(table[Resolution Date]) =month(earlier(table[Resolution Date]))),table[Resolution Date])
),0,1)

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Okay it's work now but this give me date only of last issue not count of repeat time as example i want :

Customer NameMonthCount of repeatRepeated root cause
Test1Sep2Power
Test2Sep2Power

 

first tickts will count as 0, not repeat but next tickts on same month will be 1 repeat

 

@amitchandak 

So if you are getting a date and as per Logic, I assume you getting only in the same month(In new column) . You can put if not isblank then 1 else 0 .

Then sum it up in visual.

I think I suggested a flag too. Is it giving wrong answer using flag ?

Yes Amitchandak, your solutions i think it can be work after this edit, how can i solve this problem please 

 

@amitchandak  thanks for your support

@king2005r 

Please share what you are getting after the formula and what is expected. I think I need more information to help you out.

Also share the formula you are using

Hi  @amitchandak 

 

I am getting this now :

 

Customer Name

Month

Root cause

last date of the same issue in this month

repeat flag

Test1

Dec

Power

12/1/2019 11:50:29 AM

Sunday, December 31, 1899

Test1

Dec

Power

12/1/2019 11:50:29 AM

Sunday, December 31, 1899

 

Forumla :

1- 

last date of same issue in this month =

maxx(filter(Tickts,Tickts[Circuit Id]=EARLIER(Tickts[Circuit Id]) && Tickts[Root Cause]=earlier(Tickts[Root Cause])

&& Tickts[Resolution Date]<earlier(Tickts[Resolution Date]) && month(Tickts[Resolution Date])=month(earlier(Tickts[Resolution Date]))), Tickts[Resolution Date])

 

2-

repeat flag = if(isblank(maxx(filter(Tickts,Tickts[Customer Name]=earlier(Tickts[Customer Name]) && Tickts[Root Cause]=earlier(Tickts[Root Cause])

&& Tickts[Resolution Date]<earlier(Tickts[Resolution Date]) && month(Tickts[Resolution Date]) =month(earlier(Tickts[Resolution Date]))),Tickts[Resolution Date])

),0,1)

 

Needed Report :

Customer Name

Month

Root cause

Count of repeated time for Dec month with the same root cause

repeat flag

Test1

Dec

Power

3

Repeated if more than 1 time in the same month

Test2

Sep

Power

4

Repeated if more than 1 time in the same month

 

Based on the initial data you provided, I create this pbix : https://www.dropbox.com/s/ino5zbpymbnj81y/RepeatFlag.pbix?dl=0

Please check and let me know any changes in the logic you required.

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

 

Hi @amitchandak 

 

I download file and apply forumla, but it give me 1 or 0 resoult, and some case it's not repated and give me 1 

What i need, is number of repeated incidents or complines customer has open within same month, example below : 

 

Customer Name

Month

Root cause

number of repeated times for Dec month with the same root cause

Test1

Dec

Power issue

3

Test2

Sep

Power issue

4

 

Thanks a lot for you help 

 

Hi @amitchandak 

 

Below are the report after apply forumla, 

Ticketnumber

Product Name

Resolution Date

Customer Name

Circuit Id

Incident Category

Root Cause

Repeat Count Sheet1

334657

Water

9/8/2019 11:21:44 AM

Test1

QMDIA57

Circuit Down

Faulty Router

0

334694

Water

9/1/2019 9:21:22 AM

Test1

QMDIA57

Circuit Down

Circuit Under Migration

0

335155

Water

9/2/2019 10:04:27 PM

Test1

QMDIA57

Circuit Down

Faulty Modem

1

335322

Water

9/5/2019 10:12:58 PM

Test1

QMDIA57

Circuit Down

External Cabling Issue

1

336292

Water

9/3/2019 7:34:17 PM

Test1

QMDIA57

Circuit Down

Connectivity issue

1

336307

Water

9/1/2019 1:44:30 PM

Test2

BMDIA289

Circuit Down

Device Hanged

0

336310

Water

9/2/2019 6:20:10 AM

Test1

ABANET103

Circuit Down

Connectivity issue

1

336335

Water

9/1/2019 2:25:23 PM

Test1

ABANET103

Circuit Down

External Cabling Issue

0

336351

Water

9/3/2019 3:59:52 PM

Test1

BMDIA289

Circuit Down

Connectivity issue

1

336374

Water

9/1/2019 8:51:06 PM

Test1

ABANET103

Circuit Down

Connectivity issue

0

336375

Water

9/2/2019 3:08:28 PM

Test1

BMDIA289

Circuit Down

Customer Internal Issue

0

336414

Water

9/9/2019 5:14:12 AM

Test1

QAMDIA62

Circuit Down

External Cabling Issue

1

336559

Water

9/1/2019 8:46:10 PM

Test3

QAIPMW22

Circuit Down

Connectivity issue

0

336720

Water

9/2/2019 1:24:41 PM

Test1

MMADH68 IP9

Circuit Down

Faulty Modem

0

336761

Water

9/3/2019 2:59:58 PM

Test1

ABANET103

Circuit Down

Connectivity issue

1

This is a bit different from the last one. What is the expected output on this data.

Hi @amitchandak 

it's the same but i add more data to be more clear

 

output data will be like this :

 

Customer NameCircuit Id Count of Circuit IdRoot Cause (Repeated more than 1 time)Count of repeated)Month
Test1ABANET1034Connectivity issue3Sep
Test1BMDIA2893No repeated root cause more than 1 timeNo repeated root cause more than 1 timeNo repeat
Test1MMADH68 IP91No repeated root cause more than 1 timeNo repeated root cause more than 1 timeNo repeat

This logic seems to be based on  circuit ID, not the root cause. I changed it. Also, created an additional measure to show data only when sum >1

 

https://www.dropbox.com/s/ino5zbpymbnj81y/RepeatFlag.pbix?dl=0

Great Job @amitchandak  this what i need, only i missing second filter for root cause

 

if root cause is repeated more than 1 time for the repeated Circute count as repeated only if root cause is repeated 

Thanks a lot for your answe, when i apply this, i got below massage : 

Cannot convert value 'December' of type Text to type Date.

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.