<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Slicer on comma separated list of string in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/2296414#M831796</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First and foremost, the LovesPets column should have only one entry per cell.&amp;nbsp; So please use the split cells by delimiter feature.&amp;nbsp; Under Advanced, select split by rows there.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 23:41:09 GMT</pubDate>
    <dc:creator>Ashish_Mathur</dc:creator>
    <dc:date>2022-01-21T23:41:09Z</dc:date>
    <item>
      <title>Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1403863#M595095</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what i am trying to achieve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FieldName&lt;/TD&gt;&lt;TD&gt;PersonName&lt;/TD&gt;&lt;TD&gt;LovesPets&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FieldDatatype&lt;/TD&gt;&lt;TD&gt;string&lt;/TD&gt;&lt;TD&gt;string&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Sheldon&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Amy&lt;/TD&gt;&lt;TD&gt;Dog&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Penny&lt;/TD&gt;&lt;TD&gt;Bird,Dog,Cat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Howard&lt;/TD&gt;&lt;TD&gt;Cat,Turtle&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Leonard&lt;/TD&gt;&lt;TD&gt;Dog,Cat&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, i want to have a slicer (filter) with multi-select like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pet:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dog&lt;/LI&gt;&lt;LI&gt;Cat&lt;/LI&gt;&lt;LI&gt;Bird&lt;/LI&gt;&lt;LI&gt;Turtle&lt;/LI&gt;&lt;LI&gt;Blank&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It would be great to have this list of values in the slicer created dynamically from the main dataset. But its okay if its not dynamic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried doing this using Measure and SEARCH DAX query (found this approach online), but Measures are not applicable as a page level filter. So thats a deal breaker. Even when i apply this on a visual, the results were incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 07:25:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1403863#M595095</guid>
      <dc:creator>amandal1810</dc:creator>
      <dc:date>2020-09-30T07:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1403874#M595097</link>
      <description>&lt;P&gt;One way to do is you should split your column into rows in Power Query using "Split Column" and use that column as a slicer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 07:36:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1403874#M595097</guid>
      <dc:creator>FarhanAhmed</dc:creator>
      <dc:date>2020-09-30T07:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1406464#M595793</link>
      <description>&lt;P&gt;Thanks for your reply Farhan!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dont think this solution is viable. Reason: the concerned dataset is pulled from an Azure SQL Server and has over 4 million rows. Now if i split the column into rows like your said, its gonna explode the dataset. I dont think PowerBI will be able to handle it. Nevertheless, I will try out this approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 05:57:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1406464#M595793</guid>
      <dc:creator>amandal1810</dc:creator>
      <dc:date>2020-10-01T05:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1406507#M595804</link>
      <description>&lt;P&gt;I am not sure if this works for you but have you checked Text Filter from App Source "?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381309?src=office&amp;amp;tab=Overview" target="_blank"&gt;https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381309?src=office&amp;amp;tab=Overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 06:17:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1406507#M595804</guid>
      <dc:creator>FarhanAhmed</dc:creator>
      <dc:date>2020-10-01T06:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1411923#M597350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="261407" data-lia-user-login="amandal1810" class="lia-mention lia-mention-user"&gt;amandal1810&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best way is to go to power query using split columns,if it's not a good solution for you,then you may create mulitiple columns using dax,such as below:&lt;/P&gt;
&lt;P&gt;First create a column to count out the total number of comma:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Comma count = LEN('Table'[LovesPets])-LEN(SUBSTITUTE('Table'[LovesPets],",",""))&lt;/LI-CODE&gt;
&lt;P&gt;Then create a column to get the first column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
var _searchcomma=SEARCH(",",'Table'[LovesPets],1,0)
Return
IF(_searchcomma=0,'Table'[LovesPets],LEFT('Table'[LovesPets],_searchcomma-1))
&lt;/LI-CODE&gt;
&lt;P&gt;And you will see:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then continue to create the remaining columns:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Remainingstring = 
IF('Table'[Comma count]=0,BLANK(),RIGHT('Table'[LovesPets],LEN('Table'[LovesPets])-LEN('Table'[Column])-1)

)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Column 2 = 
var _searchcomma=SEARCH(",",'Table'[Remainingstring],1,0)
Return
IF('Table'[Remainingstring]&amp;lt;&amp;gt;BLANK(),IF(_searchcomma=0,'Table'[Remainingstring],LEFT('Table'[Remainingstring],_searchcomma-1))
)&lt;/LI-CODE&gt;
&lt;P&gt;Finally create a table for slicer:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Slicer table = DISTINCT(UNION(DISTINCT('Table'[Column]),DISTINCT('Table'[Column 2])))&lt;/LI-CODE&gt;
&lt;P&gt;And you will see:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;For details,pls refer to attachment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Kelly&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 02:31:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1411923#M597350</guid>
      <dc:creator>v-kelly-msft</dc:creator>
      <dc:date>2020-10-05T02:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1414365#M598048</link>
      <description>&lt;P&gt;yes, i did take a look at this. The end user has to type in the values, which is not what i am looking for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 05:09:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1414365#M598048</guid>
      <dc:creator>amandal1810</dc:creator>
      <dc:date>2020-10-06T05:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1414370#M598050</link>
      <description>&lt;P&gt;Thanks a lot Kelly for your detailed reply! Unfortunately it does not address my use case completely.&lt;/P&gt;&lt;P&gt;The number of values in the LovesPets column is dynamic: so i would not know for sure how many columns i need to split it across. And the RemainingString column would still contain the comma concat-ed strings, thereby landing me in the same problem that i started with.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 05:12:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1414370#M598050</guid>
      <dc:creator>amandal1810</dc:creator>
      <dc:date>2020-10-06T05:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1417008#M598801</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="261407" data-lia-user-login="amandal1810" class="lia-mention lia-mention-user"&gt;amandal1810&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes,using dax is a bit complex in your case,as&amp;nbsp;&lt;SPAN&gt;LovesPets column is dynamic ,we dont know how many comma each row may have,column "comma count" is help to count the total number of comma in a row,which is telling you how many columns you may need to create.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;----RemainingString column would still contain the comma&lt;/P&gt;
&lt;P&gt;Yes,as each row may have different numbers of comma,we need an intermediary column to store the remaining strings which may have comma inside.There's no easy way to directly get all the values before comma.&lt;/P&gt;
&lt;P&gt;My suggestion is if possible,you'd better go to power query&amp;gt;split column by comma,which would be much easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Kelly&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 05:25:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/1417008#M598801</guid>
      <dc:creator>v-kelly-msft</dc:creator>
      <dc:date>2020-10-07T05:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/2296232#M831746</link>
      <description>&lt;P&gt;Have you found a solution for this? I have the same issue and the proposed solution wouldn't work either.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 19:44:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/2296232#M831746</guid>
      <dc:creator>ChristianR</dc:creator>
      <dc:date>2022-01-21T19:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/2296414#M831796</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First and foremost, the LovesPets column should have only one entry per cell.&amp;nbsp; So please use the split cells by delimiter feature.&amp;nbsp; Under Advanced, select split by rows there.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 23:41:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/2296414#M831796</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2022-01-21T23:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/3850897#M1242027</link>
      <description>&lt;P&gt;HI Kelly ,&lt;BR /&gt;once the column are created and slicer table is created, what is be done after that ?&lt;BR /&gt;I dont see the slicer table filtering the data in table.&lt;BR /&gt;&lt;BR /&gt;Can you please guide or suggest what i am missing after that?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 19:19:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/3850897#M1242027</guid>
      <dc:creator>Kartic21</dc:creator>
      <dc:date>2024-04-18T19:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer on comma separated list of string</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/3850907#M1242030</link>
      <description>&lt;P&gt;HI Kelly ,&lt;BR /&gt;&lt;BR /&gt;I created the columns and slicer table as shown by you in steps but i dont see slicer able to filter the table ( in the PBI shared by you also it not able to filter )&lt;BR /&gt;Am i missing something , could you please guide with next steps&lt;/P&gt;&lt;P&gt;.. thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 19:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Slicer-on-comma-separated-list-of-string/m-p/3850907#M1242030</guid>
      <dc:creator>Kartic21</dc:creator>
      <dc:date>2024-04-18T19:27:23Z</dc:date>
    </item>
  </channel>
</rss>

