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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
snyder27
New Member

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
v-binbinyu-msft
Community Support
Community Support

Hi @snyder27 ,

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
v-binbinyu-msft
Community Support
Community Support

Hi @snyder27 ,

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors