Hi all, I am new to Alteryx, and it's my first time creating a workflow. Hope if you guys could help a guy out.
I am using batch macro to run multiple excel files into my workflow. My question is this:
Is there any way to input a 0 value when a specific string of text is not found in the file?
Background:
- 5 files, each with only 1 sheet - Called Sheet 1 (with different schemas).
- The text that I am looking for (e.g. Apple) in Sheet 1 is located in different parts of each of the respective file.
| Files | Sheet 1 |
| 1.xlsx | Fruit: Orange |
| 2.xlsx | Fruit - Apple |
| 3.xlsx | Fruit - Apple |
| 4.xlsx | Fruit: Mango |
| 5.xlsx | Fruit: Apple |
My problem: I've managed to filter "Apple" using 'Filter' tool, but I am having a problem in indicating a "0" value when the "Apple" is not found, e.g. in this case would be in File 1 and 4.
I would want my expected output to be:
But currently my output is:
| File | Number |
| 1 | 1 |
| 2 | 1 |
| 3 | 1 |
| 4 | Null |
| 5 | Null |
Is there a better way to do it?
Thanks!