Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Finding 'key words' in description of transactions on the same day?

stephakneem
5 - Atom

Hi, if I have information on employee purchases, and there is a transaction date along with a description, how can I find all transactions where "x" keywords is found on that day while "x2" keywords are also found on the same day for that employee on the same day (transaction day)?

 

EmployeeVendorAmountDateDescription
EmmDFood Corp.$$$$1-1-10Food
BridgetPMechanic Org.$$$1-1-10Tools
EmmDHotels Inc.$$$$1-1-10Hotel

 

For example, both of EmmD's transactions should be flagged for containing a description with "food" and "hotel" on the same day.

3 REPLIES 3
binuacs
21 - Polaris

@stephakneem Have you tried the find and replace tool for your use case?

 

binuacs_0-1682894646769.png

 

ArnaldoSandoval
12 - Quasar

Hi @stephakneem 

 

Based on the description you provide, the data is selected in four questions:

  • Q1 - Description containing a Keyword (x in your wording)
  • Q2 - The Description in the results from previous question should contain Keyword x2
  • Q3 - The resulting records from previous question, should belong to Employee (target)
  • Q4 - The results from previous question should be for a given date

Perhaps, asking for the transactions date should be the first question, now based on my interpretation of your question, I choose an Application workflow (yxwz) with the following interface: The questions appear with the same sequence listed above, perhaps you should ask for the data first.

InterfaceInterface

The Application workflow looks like:

WorkflowWorkflow

Above the 4 questions, we parse your transaction date because it is an string with the format dd-MM-yy, the browser should the result is Browser (10).

Now with this workflow interface designer, we defined the Browse (10) to show the results

WF InterfaceWF Interface

finally, I attached the WF Application.

 

hth

Arnaldo.

Yoshiro_Fujimori
15 - Aurora

@stephakneem ,

 

I am not sure if I fully understand the requirement, but tried.

I hope this fits your case.

 

Workflow

Yoshiro_Fujimori_0-1682906538106.png

 

Input

Added rows for my verification.

Yoshiro_Fujimori_1-1682906739604.png

 

Output

Added RecordID for Join. (You may remove it with Select tool.)

Yoshiro_Fujimori_2-1682906828697.png

 

Labels
Top Solution Authors