Forum Discussion
Filtering a column by single value which contains multiple options
- Anonymous1 year ago
Hi BalazsNy ,
Thanks for MFelix's reply!
And BalazsNy , you can try this way:
Use this DAX to create a measure:Filter = VAR SelectedWords = VALUES('Category'[Submission category]) RETURN SUMX( 'Feedbacks', IF ( COUNTROWS( FILTER( SelectedWords, CONTAINSSTRING([category], [Submission category]) ) ) > 0, 1, 0 ) )Then set it up as shown below:
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you MFelix , basically the category filter works on it's own, but if any other filter is applied (e.g. date filter), that also ruins this measure, and category is not filtered anyomre...
Hi BalazsNy ,
Thanks for MFelix's reply!
And BalazsNy , you can try this way:
Use this DAX to create a measure:
Filter =
VAR SelectedWords = VALUES('Category'[Submission category])
RETURN
SUMX(
'Feedbacks',
IF (
COUNTROWS(
FILTER(
SelectedWords,
CONTAINSSTRING([category], [Submission category])
)
) > 0,
1,
0
)
)
Then set it up as shown below:
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- BalazsNy1 year agoHelper I
Thank you Anonymous This is a perfect solution.