Forum Discussion
baqerbushajea
6 years agoRegular Visitor
create shifts by agents with interference
Hello guys, i have call center log files i would like to divide agents into two shifts (morning , night ), Morning start from 8:00AM ends 4:00PM Night start from 1:00 PM ends 9:00PM , i understan...
- 6 years ago
Try something like this, as COLUMNS:
FirstCallTime = MINX(FILTER('Calls Log', 'Calls Log'[Call Date]=EARLIER('Calls Log'[Call Date]) && 'Calls Log'[Agent]=EARLIER('Calls Log'[Agent])),'Calls Log'[Call Time])Shift = IF('Calls Log'[FirstCallTime]<TIMEVALUE ( "1:00 PM" ),"Morning", "Night")
amitchandak
Super User
6 years agobaqerbushajea ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
baqerbushajea
6 years agoRegular Visitor
idid create this code
Shift =
if('Calls log'[Call Time] < TIMEVALUE ( "1:00 PM" ),"Morning"
,IF('Calls log'[Call Time] > TIMEVALUE("4:00 PM") ,"Night" , "Morning "))
Unfortunately dosen't work ,
- AllisonKennedy6 years ago
Community Champion
Try something like this, as COLUMNS:
FirstCallTime = MINX(FILTER('Calls Log', 'Calls Log'[Call Date]=EARLIER('Calls Log'[Call Date]) && 'Calls Log'[Agent]=EARLIER('Calls Log'[Agent])),'Calls Log'[Call Time])Shift = IF('Calls Log'[FirstCallTime]<TIMEVALUE ( "1:00 PM" ),"Morning", "Night")