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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JBusque
Frequent Visitor

Return a value from one table based on two columns, one with a delimiter

Hello, I have two tables. One is a auto generated call data, the other is a list of outcomes for calls. 
I need to somehow create a column for the Auto generated Call data that compares both the Start/End Time of the call and the Time of submission for the outcome (Needs to be inbetween the Start/End Time) as well as the name of person who submitted the outcome vs names in the Call Data to match records and return the Outcome value matching those records. 

However the names in call data can have multiple names within a cell seperated by a semicolon delimiter depending on who touched the call. 

Here is an example of tables.

Call Data

NamesStart TimeEnd Time
John; Nancy; Frank5/28/2024 12:00 PM5/28/2024 12:30 PM
Frank5/28/2024 1:00 PM5/28/2024 1:10 PM
George; Frank; Nancy; Thomas 5/28/2024 1:05 PM 5/28/2024 1:10 PM
Hubert; Tony 5/28/2024 1:10 PM

 5/28/2024 1:25 PM

 

Outcome Data

NameTimeOutcome
Nancy5/28/2024 12:15 PMComplete
Frank 5/28/2024 1:09 PMIncomplete
Thomas 5/28/2024 1:07 PMHung Up
Hubert5/28/2024 1:17 PMComplete


Desired Calculated Column Outcome

NamesStart TimeEnd TimeCalculated Outcome
John; Nancy; Frank5/28/2024 12:00 PM5/28/2024 12:30 PMComplete
Frank5/28/2024 1:00 PM5/28/2024 1:10 PMIncomplete
George; Frank; Nancy; Thomas 5/28/2024 1:05 PM 5/28/2024 1:10 PMHung Up
Hubert; Tony 5/28/2024 1:10 PM

 5/28/2024 1:25 PM

Complete

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JBusque , Please try a new column in call table (First Table)

 

Maxx(filter(Outcome, Call[Start Time]<= Outcome[Time] && Call[End Time]<= Outcome[Time] && Search(Outcome[Name], call[Names],,0) >0) , Outcome[Outcome])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@JBusque , Please try a new column in call table (First Table)

 

Maxx(filter(Outcome, Call[Start Time]<= Outcome[Time] && Call[End Time]<= Outcome[Time] && Search(Outcome[Name], call[Names],,0) >0) , Outcome[Outcome])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Yes this worked quite well, Thank you.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.