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

Data Trim Based on changing date per user

Hello

Looking for a few ideas to handle a data trim operation

Two tables for a helpdesk report:

I have incident data exported in an .xls tab that has an incident number (Ticket#) and a user number (ID) (TICKETS DATA)

In a second tab, I have a subset of the users (ID) number and a date (START DATE)  (ProjectDATA)

 

What I want to do is show only the Ticket# for people that have a matching ID in PROJECT but also fall within a certain date range (15 days before and 15 days after) their START DATE in ProjectDATA.   

So basically we wind up with only incident data that is a 30 day view of tickets before and after a specific start date, but that START DATE could be different for each user.   


(One has startdate of 5/1,  i want tickets from April 16 to  May 15 for that user;   a second starts on mAY 16 so I want ticket# from May 1 to May 30 for them, etc etc...)


 What do ya have for me?

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/conditional-join/m-p/340423#M152404

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

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/conditional-join/m-p/340423#M152404

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

@Anonymousif you can share sample data in excel sheet, will get you the solution.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Simple data

 

So for two users in Project Data i would only want to see those entries in Tickets that are within 15 days of the Email1 date in Project Data for each user.  There would be 2 for bkantesa and 3 for malko left based on the data below.

 


Project Data

IDUser NameEmail1 DateEmail2 DateEmail3 DateState
bkantesaKento, Barto11-May-18--NJ
malkoMitch, Sam1-Jun-18--NJ

 

 

Tickets

KBSubmit DateProduct NameStatusID
 4/10/2018 0:00Microsoft Active DirectoryCanceledbkantesa
KBA000364831/1/2018 0:40iPadClosedahujaak
KBA000898176/1/2018 0:00Office 365Closedmalko
KBA000098755/20/2018 0:00Microsoft Active DirectoryClosedmalko
 6/4/2018 0:00Android PhoneClosedmalko
 1/1/2018 1:05Office 365Closedjonnalla
 5/1/2018 0:00PartnerNetClosedbkantesa
 1/1/2018 1:43myLEARNINGClosedharryn
KBA000393041/1/2018 2:08PNetClosedrangasmu
 5/20/2018 0:00Office 365Closedbkantesa
KBA000925383/1/2018 0:00ChromeClosedmalko

 

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.