cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Labraham36
Helper I
Helper I

Filters with various conditions

Hello Community! I ask you a query: I need to generate a filter, which should actually be an "Advanced Filter", which basically has to do is that when a word has certain characters, I filter the word. In SQL it would be something like "ANA%" (Everything that has the word ANA and has more characters), "LOG", "% ADA%", etc. Now, Power BI has the advanced filter function, but this does not allow to put more than two conditions. Something like "Contains X" And / or "Contains Y". I need to add more than two conditions to my filter. How can this be done? Thanks!

1 ACCEPTED SOLUTION
edugoncalves
Resolver I
Resolver I

Hi @Labraham36 ,

I would go with a measure, e.g.:

Filter Measure = IF(LEFT(SELECTEDVALUE(Column[Table]), 2) = "A1" && ..., 1)

Then, on the filter panel, filter "Filter Measure" to 1 and the visual will "inherit" the selected filters in the measure.

You can also refer to this link.


Best Regards,

Eduardo

View solution in original post

3 REPLIES 3
edugoncalves
Resolver I
Resolver I

Hi @Labraham36 ,

I would go with a measure, e.g.:

Filter Measure = IF(LEFT(SELECTEDVALUE(Column[Table]), 2) = "A1" && ..., 1)

Then, on the filter panel, filter "Filter Measure" to 1 and the visual will "inherit" the selected filters in the measure.

You can also refer to this link.


Best Regards,

Eduardo

Thanks a lot! It worked for me Perfect!

rodrigosan
Resolver III
Resolver III

Hello how are you?
Have you considered the possibility of using the Smart Filter by OKVIZ visual?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors