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
mokrane_bob
Frequent Visitor

Filter in culumn with multiple value

Hello i'm dealing with a column which has multiple values in Power Bi.

I'm trying to find a way to how to filter ?

Exemple : when i select Adidas in filter, i will have the two first rows.

 

i have to precise that i have 15 brands, and the output in Brand Column depends on the choice of people

I don't want to Split, and pivot the column because i will have a duplicated rows. is there any way ?

 

Capture.PNG

 

 

@DTSpowerbi @Anonymous @MaxPowerBI 

Capture.PNG

1 ACCEPTED SOLUTION

@mokrane_bob 

 

You can use a MEASURE as visual filter.

Please see attached file with your sample data

 

Measure =
IF (
    CONTAINSSTRING (
        SELECTEDVALUE ( Data[Brand] ),
        SELECTEDVALUE ( FilterTable[Filter] )
    ),
    1
)

 


Regards
Zubair

Please try my custom visuals

View solution in original post

3 REPLIES 3
MaxPowerBI
Regular Visitor

Hi @mokrane_bob ,

 

I would add a separate table with two columns and filter in that table. Table could look like this: 

Brand multipleBrand
Adidas, Puma, Tommy HilfigerAdidas
Adidas, Puma, Tommy HilfigerPuma
Adidas, Puma, Tommy HilfigerTommy Hilfiger
Adidas, Nike, AsicsAdidas
Adidas, Nike, AsicsNike
Adidas, Nike, AsicsAsics
Nike, Zara, ChannelNike 
Nike, Zara, ChannelZara
Nike, Zara, ChannelChannel
Hugo Boss, PumaHugo Boss
Hugo Boss, PumaPuma

Thus, you could make a relationship between your column and that new table.

 

Regards, Max

Hi  @MaxPowerBI 

 

It would be a greate solution if i have a constent input in the Column

but my problem is that the input in the Column changes every time. i can have Thousands of rows with multiple combinaison of those Brand.

 

@mokrane_bob 

 

You can use a MEASURE as visual filter.

Please see attached file with your sample data

 

Measure =
IF (
    CONTAINSSTRING (
        SELECTEDVALUE ( Data[Brand] ),
        SELECTEDVALUE ( FilterTable[Filter] )
    ),
    1
)

 


Regards
Zubair

Please try my custom visuals

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.