Hi!!
I’ve spent so much time learning and fine tuning Tiller reports. Loving the control and exercise to improve gSheet skills. I came across another puzzle. This one has me stumped.
I want to hide tags from reports. This is fine when I only have a single tag at most per transaction. I modified the Actuals query in the Monthly Budget to include a matches criteria. Simplified below
query(Transactions!A:Z,“SELECT Col(category),SUM(Col($)) WHERE Col(category) IS NOT NULL AND Col(date) >= date '”&TEXT(date,“yyyy-mm-dd”)&“’ AND NOT Col(tag) matches '”&AB52&“’ GROUP BY Col(category) LABEL SUM(Col($)) ‘Actuals’”)
AB52 is a cell with all Hidden tags separated by pipe (e.g., “Trip|Hide|Invalid”)
The problem is this doesn’t work if I have more than 1 tag for the transaction. I separate them out by “,” but the query only checks for the whole string.
I can’t for the life of me figure out how to check an array of texts to see if it includes a word in another array of texts within a query (or a sumifs if needed). If that was all I needed to do, it would be simple to just arrayformula over a match, but because it needs to be embedded in a query or sumifs, I can’t use an arrayformula.
I actually ran into the same problem trying to create a table of actuals by month with a number of criteria including the comparison of a text array to another text array.
Any help would be appreciated.