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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Contains Filter issue

Hi All,

I have these values in a column in a table

AEP
AEP
AEP,AO
AEP,AO,SQI
AEP,SQI
AO
AO,SQI
SQI

From this I have created a slicer in power BI using "contains" which has the follwing values

AEP
AO
SQI
 
My issue:
     i) When I select  "AEP" in the slicer, all related values should appear ex: AEP, (AEP,AO), (AEP,SQI).... should appear ,
       but when i  deselect  "AEP" ,only AEP should be removed and rest all values associated with it should appear.
similarly AO and SQI values should behave.
Thanks in Advance!
2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

I am afraid that it cannot be achieved at present.

Powerbi cannot obtain the status of your last step. Each change of the selected state is compared with the unselected state of the slicer and you cannot compare the last selection state of the slicer with the current selection state.

 

Best Regards,
Community Support Team _ Eason

mahoneypat
Microsoft Employee
Microsoft Employee

You should be able to use a measure like this in your table visual with your column of values to be searched (or as a visual level filter = 1).

 

Visible =
VAR slicervalues =
    VALUES ( Table1[SlicerColumn] )
VAR thisvalue =
    MIN ( Table2[SearchColumnValues] )
VAR rowsfound =
    FILTER ( slicervaluesSEARCH ( Table1[SlicerColumn], thisvalue10 ) > 0 )
RETURN
    IF ( rowsfound > 01BLANK () )

 

Pat

 

 

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.