Forum Discussion
Slicer with distinct values from a column that has multiple values?
- 5 years ago
Hi bhanes22
My previous measure only deals with a single select situation. For multiple specs selections, you could use below measure and set show items when the value is greater than 0.
Flag 2 = CALCULATE ( COUNTROWS ( 'master table' ), FILTER ( 'master table', SUMX ( specifications, SEARCH ( specifications[spec], 'master table'[specifications], 1, 0 ) ) > 0 ) )I found above measure from below blog, you could refer to it for more ideas.
SEARCH FUNCTION WITH A LIST VALUE - Microsoft Power BI Community
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
This worked perfectly! Thank you so much for your help! One quick question and its not the end of the world if this is not possible but it doesn't seem to filter properly on multiple spec selections, would that be possible to filter on multiple specs?
Hi bhanes22
My previous measure only deals with a single select situation. For multiple specs selections, you could use below measure and set show items when the value is greater than 0.
Flag 2 =
CALCULATE (
COUNTROWS ( 'master table' ),
FILTER (
'master table',
SUMX (
specifications,
SEARCH ( specifications[spec], 'master table'[specifications], 1, 0 )
) > 0
)
)
I found above measure from below blog, you could refer to it for more ideas.
SEARCH FUNCTION WITH A LIST VALUE - Microsoft Power BI Community
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.