I am trying to use selected items from a slicer as the input to a filter statement. To get the slicer selections, I am building up a text string, which has a comparison operator. The chart that I am using this in, then gives an error, 'Calculation error in measure ... of type text to type true/false'.
I have a measure that I created to count the number of items opened & closed within a given timeframe. I have a date slicer, from which I am successfully pulling the start/stop dates and using those as inputs to my Filter statement, and counting the rows returned.
I am now trying to add a name selection from a slicer to the Filter statement and not having much luck.
I am pulling the names selected from a slicer with the following code.
Names = CONCATENATEX(
ALLSELECTED(Table[Column]),
"Table[Column]="&Table[Column],
" || ")
This gives me a text string like, 'Table[Column]="John Smith" || Table[column] "Jane Smith"
When I put this into my filter statement
Filter(Working Filters && (Names))
That's when I get my error. If I type the statement in directly, it works. But that doesn't help me, since I will not know what is selected
Filter(Working Filters && (Table[Column]="John Smith" || Table[column] "Jane Smith")
How can I use my text String as the input to the filter? Or is there a different way that i could get my slicer selections into filter?