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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Copy value from nearby row

I have a table with call events. Unfortunately are only the speak duration "linked" with the queue but I'm also interested in measurements like average speak time for each queue.

 

A call can have none, one, or multiple queue and conversation events.  If there is a conversation, is it always the next sequence after the queue (it happens that callers disconnect before the conversation).

 

I want to be able to calculate that the info queue has 180 sec speak time and the Sale queue has a 120 sec speak time. 

A very simplified version of the table looks like this. There are a call_id and call_sequence_nr for each call. 

Call_idCall_sequence_nrEventQueueDuration_sec
11Menu  
12QueueInfo20
13Conversation 180
14QueueSale40
15Conversation 120



1 REPLY 1
ryan_mayu
Super User
Super User

@Anonymous 

is this what you want?

Column = 
VAR _sec=maxx(FILTER('Table','Table'[Call_id]=EARLIER('Table'[Call_id])&&'Table'[Call_sequence_nr]=EARLIER('Table'[Call_sequence_nr])+1),'Table'[Duration_sec])
return if('Table'[Queue]<>"",_sec)

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.