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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
geetika3110
Regular Visitor

Help with customised Slicer

Hi, I am creating a PBI report for my work. There is a column that has multiple text rows. But I need a slicer that selects one of the data points, not the entire column. E.g., in the below table, I have solutions that are not unique. Now I need a filter that gives me unique value, e.g. The filter option shows individual values, e.g., A, B  C  D  E  F etc. 

 

Thank you so much for your support in advance. 

 

bf7dbdc5-edb0-4270-8f1f-3336b0bbecc7.png

 

 

 



1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Create a mapping table that links each solution to the individual items.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUTIyVYrViVZy0nEGcoyNoBwXHVcQ1xjMddVxAymEcBx1oEpNlGJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Solution = _t, cost = _t]),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(Source, {{"Solution", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Solution"),
    #"Removed Duplicates" = Table.Distinct(#"Split Column by Delimiter", {"Solution"}),
    #"Removed Columns" = Table.RemoveColumns(#"Removed Duplicates",{"cost"})
in
    #"Removed Columns"

lbendlin_0-1733964176149.png

let
    Source = Solutions,
    #"Added Custom" = Table.AddColumn(Source, "Custom", (k)=> Table.SelectRows(Facts, each List.Contains(Text.Split([Solution],","),k[Solution]))),
    #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Solution"}, {"Match"})
in
    #"Expanded Custom"

lbendlin_1-1733964368287.png

 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Create a mapping table that links each solution to the individual items.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUTIyVYrViVZy0nEGcoyNoBwXHVcQ1xjMddVxAymEcBx1oEpNlGJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Solution = _t, cost = _t]),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(Source, {{"Solution", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Solution"),
    #"Removed Duplicates" = Table.Distinct(#"Split Column by Delimiter", {"Solution"}),
    #"Removed Columns" = Table.RemoveColumns(#"Removed Duplicates",{"cost"})
in
    #"Removed Columns"

lbendlin_0-1733964176149.png

let
    Source = Solutions,
    #"Added Custom" = Table.AddColumn(Source, "Custom", (k)=> Table.SelectRows(Facts, each List.Contains(Text.Split([Solution],","),k[Solution]))),
    #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Solution"}, {"Match"})
in
    #"Expanded Custom"

lbendlin_1-1733964368287.png

 

Thank you for your reply. Highly appreciated. Let me try the same and get back to you. For time being, i used Text filter as a work around

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors