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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.