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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Distinct values from cell as filter

Hi,

 

I have country column, where multiple values can appear in a cell.

Example, for row of column "Available Country", data appears in following way (data in a cell):

 

TanmayG31_0-1622394364488.png

 

 

Is there a way in which I can take distinct values from this column and show it as a list using slicer,

TanmayG31_0-1622394881066.png

 

in that case if I select "India" as a the value in the slicer all rous where India appears as a country should come up in the grid.

 

Regards

Tanmay

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

You need to split the column into rows to create a distinct list in Power Query and add measure as follows then assign the measure to the visual filter of the table. Please check the attached file below my signature.

 

Fowmy_0-1622401610353.png

Selector = 
INT(
    CONTAINSSTRING(MAX(Master[Country Availability]),SELECTEDVALUE(Slicer[Country]))
)


 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@Anonymous 

You need to split the column into rows to create a distinct list in Power Query and add measure as follows then assign the measure to the visual filter of the table. Please check the attached file below my signature.

 

Fowmy_0-1622401610353.png

Selector = 
INT(
    CONTAINSSTRING(MAX(Master[Country Availability]),SELECTEDVALUE(Slicer[Country]))
)


 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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