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
chadcook3
Frequent Visitor

Advanced Condition Column lookup between datetimes

Hi All I have 2 data sets that i want to combine as one. The first is a call data base where i have start and end time of the call The second is the time a ticket was submitted I want to capture the ticket number of each call

**Example Calls Data** Call Start Call End Username

    21/08/2018 9:40 21/08/2018 9:52 Bob
    21/08/2018 9:30 21/08/2018 9:42 Jane

**Example Tickets Data** Ticket Number Submited Username

    123456 21/08/2018 9:41 Bob.Smith42
    123457 21/08/2018 9:41 Jane.Bloggs17

The Third issue is the usernames don't match but i have many solutions for that. **Ideal Result** Call Start Call End Username Ticket Number

    21/08/2018 9:40 21/08/2018 9:52 Bob 123456
    21/08/2018 9:30 21/08/2018 9:42 Jane 123457

I can do this with Excel macro's or SQL, then load the dataset but i'd love to be able to do it directly through Power BI. Any help would be appreciated Thanks

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi @chadcook3,

 

You can split the column "Username" of "Example Tickets Data" in the Query Editor with the built-in function. Then it's easy to get "Ticket Number". The concern could be the duplicate usernames. Are there any other conditions we can apply?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

 

If the Name can be made the same between both datasets, then we can solve this problem using DAX.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.