Forum Discussion
BalazsNy
1 year agoHelper I
Filtering a column by single value which contains multiple options
Hi All, I have a report with 2 tables: The 1st collects Feedbacks of employees within company (imported from a SP list). These feedbacks can have single or multiple categories (in case of multi...
- 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.
Anonymous
1 year agoNot applicable
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.
BalazsNy
1 year agoHelper I
Thank you Anonymous This is a perfect solution.