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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Slicer Issue: Filtering Fault Types by Specific Problem

Hello everyone, I need help with an issue. I have a table containing different problems, and in one of the columns, I have the fault types associated with each problem. This column displays all the variants of fault types for each problem.

 

snyder27_0-1701192336645.png

 

My goal is to use a slicer to filter the fault types in my report. However, the problem is that when I do this, all available variants in the column are displayed.

snyder27_1-1701192447076.png

 

What I'm looking for is that, for example, when selecting the "Mechanical Problem" option in the slicer, it displays all the problems that have "Mechanical Problem" as the fault type. However, when I attempt this, the slicer shows me all the options present in the column.

I even created independent columns with DAX to quantify the fault types, as shown in the ss,

snyder27_2-1701192514882.png

but I haven't been able to find a way to group the fault types in a slicer. I tried creating a new measure, but I haven't found the solution. I'm relatively new to using Power BI, so I would greatly appreciate your support.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I create a sample for you, please refer the attached .pbix file.

Table:

vbinbinyumsft_0-1701327112201.png

Table2:

vbinbinyumsft_1-1701327130391.png

 

create a mesure with below dax formula:

Measure =
VAR _a =
    SELECTEDVALUE ( 'Table 2'[Column1] )
VAR _b =
    SELECTEDVALUE ( 'Table'[Column1] )
RETURN
    IF ( CONTAINSSTRING ( _b, _a ), 1 )

Add a sclicer with Table2 field, add a table visual with Table field, then add the measure to the table visual filter pane and set

Animation35.gif

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

I create a sample for you, please refer the attached .pbix file.

Table:

vbinbinyumsft_0-1701327112201.png

Table2:

vbinbinyumsft_1-1701327130391.png

 

create a mesure with below dax formula:

Measure =
VAR _a =
    SELECTEDVALUE ( 'Table 2'[Column1] )
VAR _b =
    SELECTEDVALUE ( 'Table'[Column1] )
RETURN
    IF ( CONTAINSSTRING ( _b, _a ), 1 )

Add a sclicer with Table2 field, add a table visual with Table field, then add the measure to the table visual filter pane and set

Animation35.gif

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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