Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jcastr02
Post Prodigy
Post Prodigy

Explicit language - filtering out or flagging

I have a matrix visual showing comments left on a survey from team members.  Is there a way that BI filters or flags explicit comments, I'll have this on auto-refresh so I wouldn't want them to show.  The only thing I can think of would be to use a filter to exclude specific words but wasn't sure if there was something already built in.  

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @jcastr02 ,

 

We can create a table with specific words you do not want to show in the matrix visual called 'Filltered Word', then create a measure as following and put in  the visual filter of matrix, set condition "equal to 1" to meet your requirement.

 

ControlShow =
VAR comment =
    SELECTEDVALUE ( 'Table'[Comment] )
RETURN
    IF (
        CALCULATE (
            COUNTROWS ( 'Filltered Words' ),
            FILTER (
                ALL ( 'Filltered Words' ),
                FIND ( 'Filltered Words'[Word], comment, -1 ) > 0
            )
        ) > 0,
        -1,
        1
    )

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.