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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Brazen_BI
Frequent Visitor

Count of instances where a disposition appears back-to-back

Hello,

 

I'm trying to identify a formula that will help me calculate the number of times a disposition of "Operator Intercept" appears back-to-back (or consecutively) within my data. For example, In the image below there is 1 instance of the operator intercept disposition showing up back-to-back (bolded). DNIS__c = Phone number (blacked out). 

 

powerbi request.PNG

 

I tried using a method called stint method to produce the correct results, but could only get the count of interrupted operator intercept dispositions. For the below image, my current formula would produce a value of 5 instances for operator intercept disposition. Current Formula: Stint Method 2 = SUMX('Five9 Call Log - Internal',SWITCH(TRUE(),RELATED('Five9 Call Log - Internal (DUP)'[DNIS__c])<>'Five9 Call Log - Internal'[DNIS__c],1,RELATED('Five9 Call Log - Internal (DUP)'[Disposition__c])<>'Five9 Call Log - Internal'[Disposition__c],1))

 

powerbi request 2.PNG

 

 

 

 

 

 

 

1 REPLY 1
lbendlin
Super User
Super User

Read about the almighty  GroupKind.Local

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors