Skip to main content
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.

Frequent Visitor

how to match partial text from two tables and provide a datediff ?

Hi all,


I have two tables where all emails received/sent are recorded with the following columns/information


What I'd like to do is calculate the time between the email being received and the reply being sent for each email separately in order to see based on each time increment (either yearly, monthly or weekly) how many emails were answered within specific timeframes ...

Can anyone assist with how you could go about to "match" each specific email to its particular answer (there should be only the addition of the prefix "RE:" to the email subject ?

Then, would datediff work to calculate the timeframe elapsed between them?

Frequent Visitor

Sorry, I don't see how this apply here ... so I'll try to explain differently (I hope it's clarifies things a bit)


So what I'm aiming to do is have a search in one excel sheet for the title of email (received) and search in another excel sheet the corresponding email (sent) then get a measure/new column that tells me for each email received how long it took to reply.

Do I need to somehow merge the two excel sheets?

I think one of the issue is that it's not like the email (received) and email (sent) are necessarily on the same row so I need the software to "dig" through all the data to find the correct email (by example the received email would have the name "hello casablanca" and the reply must be "RE:hello casablanca" and differentiate in the case of a chain of email between "RE:hello casablanca" and "RE:RE:hello casablanca" if you see what I mean)

Super User
Super User

@Aymeric_2350 , check if Text filter can help

Text Filter Slicer and how to search on Multiple columns:


or create measures using




Helpful resources

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


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.

Top Solution Authors