I am developing an advanced search custom visual that creates a list of multi select filters based on the categories that the user drags into the visual. Unfortunately, the way that selection manager works creating ids is that it appears to create the ids for the lowest grain of all dimensions/categories added. So for instance, when I select not recommended category in the attached example, instead of selecting the one dimension, the selection manager performs hundreds of selects for the lowest grain of developer. If I choose a broad group for the select, I receive the error: The specified query is too complex to be evaluated as a single statement
The gist of the current version of my visual is here:
https://gist.github.com/jcbowyer/5df55d4758a7614ca08d71eaf640fc57
How can I resolve this error and support large numbers of dimensions/combinations?