Matching 2 lists while ignoring constraints (:filter)

Having issues with :filters giving empty results (eg. no results in your RG)?

Here are 2 ways to go about solving this issue! Note, things in [ ] are your elements or Things.

Problem
“I have a multidropdown to filter “Tags” in a list of Things but when that multidropdown is empty my RG is empty!”

Solution
Create a conditional that will switch your data source to a :filtered search when [multidropdown]:count > 0

Problem 2
“But I have so many other conditionals already! I don’t want to end up with a 20 conditionals!”

Solution
In your :filtered settings, instead of just using “[List 1] intersect with [multidropdown] :count > 0” create a boolean (true or false) to detect [multidropdown]:count > 0. Then if true (yes) show filtered results, if false (no) show all results.

How does this look like? Something like this
[List 1] intersect with [multidropdown] :count >= Arbitrary Text:Converted to number

What goes into Arbitrary Text?
[multidropdown] :count > 0 :formatted as text

What goes into :formatted as text?
If Yes “1”, if No “0” (without the quotations)

Why does this work?
It sets up a conditional within your :filtered that will show all results if your [multidropdown] is empty but filters all Things in your [multidropdown] when it isn’t. So now you can have complex live filtering without having to set up so many conditionals!

Hope this helps someone!