Multiple "AND" filters for same field
CS Reports & Dashboards
In the report builder, I'm struggling to get results when I create multiple filters for the same field using "AND."
I'm looking at Segment data this way:
SHOW ME: Count of event
BY: Date (monthly) and Client Name
When I add a single filter for "Event equals task-completed," I get results, and when I add a single filter for "Event equals launched-initiative," I get results.
But when I add filters for "Event equals task-completed" AND "Event equals launched-initiative" I am getting no results.
Does anyone have tips for using AND filters for the same field?
I'm looking at Segment data this way:
SHOW ME: Count of event
BY: Date (monthly) and Client Name
When I add a single filter for "Event equals task-completed," I get results, and when I add a single filter for "Event equals launched-initiative," I get results.
But when I add filters for "Event equals task-completed" AND "Event equals launched-initiative" I am getting no results.
Does anyone have tips for using AND filters for the same field?
Sign up
If you ever had a profile with us, there's no need to create another one.
Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.
Welcome to the Gainsight Community
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
If so, then you'd want to use the "or" qualifier instead of "and".
If this isn't what you had in mind, could you post a screen shot of the report?
For example, I know the Levite JCC is a customer that has done both of these actions, so I should get results.
Here are some screenshots:
Is the filtered field a string/text value or is it a picklist? If it's a picklist, you should be able to use the contains filter to say Event contains value A and B.
Unless Scott has a rabbit he can pull out of his hat (which he sometimes does) 🙂....what you'd need to do is create a bionic rule to merge the two results via an inner join. Check out this article where bionic rules are explained. Specifically section 2.1.4 Merge task to create a single output.
How this would work is that you'd pull two filters on the data. The first fetch task would look for all Events where "launched-initiative" was present, the second fetch would look for all Events where "task-completed" was present. And then the merge task would pull a final list only where the same customer was present in both lists.
Before I start creating bionic rules - would I need to create them for every possible group of events that I want to compare? I have 100+ segment events and I may need to see how customers have completed a combination of 5 or 7 or 10 of those events over time.
For Show, I created Sum of Pageviews and Count_Distinct of Page (which is the page name in this example)
For By, using same as your example Date (by month) and Account Name
For Filter, I filtered using OR the two page names I am looking for AND where Count_Distinct of Page = 2.
What this does return:
It will show all accounts that have met this within a month. You will notice that if there is a month where an account does not have pageviews with BOTH pages, no pageviews will show. So it will only show the data for the months where the condition is met.
The Pageview count is the sum for the two pages I filtered (not total pageviews for that account in a month)
Note: There is not a way to hide the Count_Distinct metric when creating the report view.
Hope this helps!
Show me: [Count of Event 1] , [Count of Event 2] , [Count of Event 7]
By: [Date] , [Account Name]
Filter: [Count of Event > 1] AND [Count of Event 2 > 0] AND [Count of Event 7 > 0]
This can be done easily using the newly introduced PIVOT action in Bionic Rules. You'd have to start with a FETCH task to query data from your existing table -- limit the fetch to data from yesterday, last 30 days, etc. depending on how often you'd execute the rule.
Then pick the PIVOT task to flip the events you need. Drag the event field into the 'Pivot On' section. A pop-up would open and this is where you pick which event values matter to you. So if you usually work with 25 of the 200 events you track, you can add just those 25 here. You can also pick aggregations depending on the event type -- most events need a simple COUNT, but something like 'revenue' associated with a 'transaction' event might need a SUM instead.
Once done, you'd have to write this pivoted data into a fresh table in MDA -- 'Load to MDA' action. From there on, you can directly report on this new table and create as many different groups as you need for your analysis. The rule frequency, as I mentioned in the beginning, controls how often data comes from your current table to the new one.
Hope this helps!