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

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
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.