<?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 Help defining a slicer (some data should be included in all selections) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-defining-a-slicer-some-data-should-be-included-in-all/m-p/4081394#M162018</link>
    <description>&lt;P&gt;Here's a situation I can't puzzle out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large table with a column that contain one of three values: A, B, or X.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add a slicer to a report that uses this table, based on that column. &amp;nbsp;However the slicer should only contain two choices: Yes and No.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes should include rows with values A or X.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No should include rows with values B or X.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we make a slicer that will do this? &amp;nbsp;The table is large (hundreds of millions of rows), so solutions with too many steps are probably out as they won't perform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would love ideas for an elegant solution if anyone has any. &amp;nbsp;This one is breaking my brain!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 13:29:35 GMT</pubDate>
    <dc:creator>markmsc</dc:creator>
    <dc:date>2024-08-05T13:29:35Z</dc:date>
    <item>
      <title>Help defining a slicer (some data should be included in all selections)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-defining-a-slicer-some-data-should-be-included-in-all/m-p/4081394#M162018</link>
      <description>&lt;P&gt;Here's a situation I can't puzzle out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large table with a column that contain one of three values: A, B, or X.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add a slicer to a report that uses this table, based on that column. &amp;nbsp;However the slicer should only contain two choices: Yes and No.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes should include rows with values A or X.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No should include rows with values B or X.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we make a slicer that will do this? &amp;nbsp;The table is large (hundreds of millions of rows), so solutions with too many steps are probably out as they won't perform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would love ideas for an elegant solution if anyone has any. &amp;nbsp;This one is breaking my brain!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 13:29:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-defining-a-slicer-some-data-should-be-included-in-all/m-p/4081394#M162018</guid>
      <dc:creator>markmsc</dc:creator>
      <dc:date>2024-08-05T13:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a slicer (some data should be included in all selections)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-defining-a-slicer-some-data-should-be-included-in-all/m-p/4081478#M162024</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="767899" data-lia-user-login="markmsc" class="lia-mention lia-mention-user"&gt;markmsc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;Enter Data&lt;/STRONG&gt; to create a table with Two rows for Yes and Two for No join this table onto the large list:&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Join these together using Single from the choice table (yes no) to the main table:&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use this in a slicer:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works please mark it as a solution for others to find &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 13:52:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-defining-a-slicer-some-data-should-be-included-in-all/m-p/4081478#M162024</guid>
      <dc:creator>SamWiseOwl</dc:creator>
      <dc:date>2024-08-05T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a slicer (some data should be included in all selections)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-defining-a-slicer-some-data-should-be-included-in-all/m-p/4081486#M162025</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="767899" data-lia-user-login="markmsc" class="lia-mention lia-mention-user"&gt;markmsc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;imho you need to work like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step1&lt;/STRONG&gt; create the table slicer:&lt;/P&gt;
&lt;P&gt;SlicerTable = &lt;BR /&gt;DATATABLE(&lt;BR /&gt;"YesNo", STRING,&lt;BR /&gt;{&lt;BR /&gt;{"Yes"},&lt;BR /&gt;{"No"}&lt;BR /&gt;}&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 2&lt;/STRONG&gt;&amp;nbsp;Create a Measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IncludeRow = &lt;BR /&gt;VAR SelectedValue = SELECTEDVALUE(SlicerTable[YesNo])&lt;BR /&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;SelectedValue = "Yes" &amp;amp;&amp;amp; Table[Value] IN {"A", "X"},&lt;BR /&gt;1,&lt;BR /&gt;IF(&lt;BR /&gt;SelectedValue = "No" &amp;amp;&amp;amp; Table[Value] IN {"B", "X"},&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Step 3&lt;/STRONG&gt;&amp;nbsp;put the measure in the slicer pane:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set the filter to only include rows wher includerow =1&lt;BR /&gt;&lt;BR /&gt;Let me know and don't forget to mark as accepted solution &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 14:00:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-defining-a-slicer-some-data-should-be-included-in-all/m-p/4081486#M162025</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-08-05T14:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a slicer (some data should be included in all selections)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-defining-a-slicer-some-data-should-be-included-in-all/m-p/4081496#M162026</link>
      <description>&lt;P&gt;I changed my mind probably you don't need the calculated column&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 14:01:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-defining-a-slicer-some-data-should-be-included-in-all/m-p/4081496#M162026</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-08-05T14:01:09Z</dc:date>
    </item>
  </channel>
</rss>

