<?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: Using a Slicer to filter concatenated Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/2381982#M61593</link>
    <description>&lt;P&gt;Hi! Thanks for your reply, but unfortunately with the actual Dataset that would create way too many rows for the final product. (that would be 9 rows for report A alone) Additionally, the format it is in is the format my department wants to use for the final dashboard. That's why I'm hoping to use a measure.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 19:16:09 GMT</pubDate>
    <dc:creator>Jenni3hugs</dc:creator>
    <dc:date>2022-03-08T19:16:09Z</dc:date>
    <item>
      <title>Using a Slicer to filter concatenated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/2381660#M61569</link>
      <description>&lt;P&gt;Hello! I am trying to use a slicer to filter a concatenated column and the measures I have found/edited from this fourm are not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Esentially my data looks something like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Item&lt;/TD&gt;&lt;TD&gt;Scope&lt;/TD&gt;&lt;TD&gt;Topic&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;Report A&lt;/TD&gt;&lt;TD&gt;Employees | Students | Programs&lt;/TD&gt;&lt;TD&gt;Finances | Human Resources | Enrollment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jul&lt;/TD&gt;&lt;TD&gt;Report B&lt;/TD&gt;&lt;TD&gt;Employees&lt;/TD&gt;&lt;TD&gt;Human Resources&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sep&lt;/TD&gt;&lt;TD&gt;Report C&lt;/TD&gt;&lt;TD&gt;Students&lt;/TD&gt;&lt;TD&gt;Enrollment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sep&lt;/TD&gt;&lt;TD&gt;Report D&lt;/TD&gt;&lt;TD&gt;Programs&lt;/TD&gt;&lt;TD&gt;Outcomes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct&lt;/TD&gt;&lt;TD&gt;Report E&lt;/TD&gt;&lt;TD&gt;Students | Programs&lt;/TD&gt;&lt;TD&gt;Enrollment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct&lt;/TD&gt;&lt;TD&gt;Report F&lt;/TD&gt;&lt;TD&gt;Programs | Employees&lt;/TD&gt;&lt;TD&gt;Finances&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to use the slicer to view if the scope contains Students, programs or employees.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new table with just the scope values (Students, Programs, Employees) to use for the Slicer values. (named Scope)&lt;/P&gt;&lt;P&gt;I tried creating the following measures, (individually) but when I use the filter it doesn't show any of the concatenated rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(In example: if I selected "students" on the slicer, only Report C would show. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure1 =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/S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sp; =&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Calculate&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;Countrows&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILter&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'Scope'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Search&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Scope'[Scope]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Table1'[Scope]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;))&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help on how to edit these measures (or create a new measure) to enable the slicer to work as I would like would be greatly appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Mar 2022 16:06:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/2381660#M61569</guid>
      <dc:creator>Jenni3hugs</dc:creator>
      <dc:date>2022-03-08T16:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Slicer to filter concatenated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/2381817#M61581</link>
      <description>&lt;P&gt;I think your best bet would to use Power Query to manipulate the data so that you have one row per combination, so Report A would have rows for Employees / Finances, Employees / Human Resources etc.&lt;/P&gt;&lt;P&gt;Splitting the columns by delimiter and then turning the new columns into rows by pivoting or unpivoting ( I can never remember which is which ) should do the trick.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 17:25:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/2381817#M61581</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-08T17:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Slicer to filter concatenated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/2381982#M61593</link>
      <description>&lt;P&gt;Hi! Thanks for your reply, but unfortunately with the actual Dataset that would create way too many rows for the final product. (that would be 9 rows for report A alone) Additionally, the format it is in is the format my department wants to use for the final dashboard. That's why I'm hoping to use a measure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 19:16:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/2381982#M61593</guid>
      <dc:creator>Jenni3hugs</dc:creator>
      <dc:date>2022-03-08T19:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Slicer to filter concatenated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/2388350#M61998</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="364839" data-lia-user-login="Jenni3hugs" class="lia-mention lia-mention-user"&gt;Jenni3hugs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We still need a new table for the filter.&amp;nbsp;And don't create relationship with Table1.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a measure and use it on the table visual filter, set the filter to show items when value is 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = IF(CONTAINSSTRING(MAX('Table1'[Scope]),MAX('Scope'[Scope])),1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The result should be like this.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Attach the PBIX file for reference. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If this doesn't work for you, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;It makes it easier to give you a solution.&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;Sample (dummy dataset) data as text, use the table tool in the editing bar.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;Expected output from sample data.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;Explanation in words of how to get from 1. to 2.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team_Gao&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 09:51:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/2388350#M61998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-11T09:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Slicer to filter concatenated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/3889110#M151688</link>
      <description>&lt;P&gt;Apologies to necro-threadjack - but I struggle with this option all of the time. I have datasets where numerous columns might be concatenated (label1;label2;label3) and I often need to develop analysis on the individual members of a concanentation and even as a funciton of another concatenated column (tag1;tag2;tag3). I.e., the unique combinations of of two columns. What I've been doing is as you suggested, creating a reference query off the main and splitting the reference by all of the fields I need to unroll label x tag as an example. And then I use those to display static calculations, percentages, totals etc on a summary page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I always struggle with - how do I give the user the ability to filter on one of those into the NON concatenated data source. I.e., how can I pass a TAG from the unconcatenated/expanded table into the original concatenated table so I can filter that table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:50:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Slicer-to-filter-concatenated-Column/m-p/3889110#M151688</guid>
      <dc:creator>gemcityzach</dc:creator>
      <dc:date>2024-05-03T12:50:47Z</dc:date>
    </item>
  </channel>
</rss>

