cancel
Showing results for 
Search instead for 
Did you mean: 
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

Accepted Solutions
Community Support
Community Support

Re: Data Trim Based on changing date per user

@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
Super User IV
Super User IV

Re: Data Trim Based on changing date per user

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






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Anonymous
Not applicable

Re: Data Trim Based on changing date per user

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

 

Community Support
Community Support

Re: Data Trim Based on changing date per user

@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

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Top Solution Authors
Top Kudoed Authors