<?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: Help with slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-slicer/m-p/2519743#M70189</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="389430" data-lia-user-login="kdendukuri" class="lia-mention lia-mention-user"&gt;kdendukuri&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need create a new table via values(table[&lt;SPAN&gt;Datepurge])&lt;/SPAN&gt; for the slicer just giving &lt;SPAN&gt;Variable&lt;/SPAN&gt; to the measure and not participating in the filter context. The new table should have no relationships with this fact table. It is much better to get variables from the slicer via max() or min() than selectedvalue() to&amp;nbsp;avoid blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 08:09:58 GMT</pubDate>
    <dc:creator>v-chenwuz-msft</dc:creator>
    <dc:date>2022-05-17T08:09:58Z</dc:date>
    <item>
      <title>Help with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-slicer/m-p/2511919#M69698</link>
      <description>&lt;P&gt;I have Customer key, Officekey and Datetrx and DatePurge, Amount. I need my report with the below conditions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Datepurge is null or Datepurge &amp;gt;= VariableDate (a Date that user selects)&lt;/P&gt;&lt;P&gt;2. Datetrx &amp;lt;= VariableDate (a Date that user selects)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using slicers on both columns and give bot the same value, but i couldnt accomodate the or condition with Datepurge NULL or &amp;gt;=&amp;nbsp;VariableDate (a Date that user selects)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried with below dax measure but when enabled with slicers it also filters customer key and office key data due to slicers effecting the visual&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cal_mga = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR seldatepurge = SELECTEDVALUE ( MGA_AROPEN[DATEPURGE] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR seldatetrx = SELECTEDVALUE ( MGA_AROPEN[DATETRX] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR FilteredTable =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATETABLE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MGA_AROPEN,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MGA_AROPEN[CONO]=10 &amp;amp;&amp;amp; MGA_AROPEN[COVTYPE]="ComTitle" &amp;amp;&amp;amp; MGA_AROPEN[DATETRX] &amp;lt;= seldatetrx &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OR(ISBLANK(MGA_AROPEN[DATEPURGE]), MGA_AROPEN[DATEPURGE]&amp;gt;= seldatepurge))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Result = SUMX ( FilteredTable, MGA_AROPEN[AMOUNTNET] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN Result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 May 2022 02:27:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-slicer/m-p/2511919#M69698</guid>
      <dc:creator>kdendukuri</dc:creator>
      <dc:date>2022-05-13T02:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-slicer/m-p/2512262#M69720</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="389430" data-lia-user-login="kdendukuri" class="lia-mention lia-mention-user"&gt;kdendukuri&lt;/a&gt; , With a small changes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR FilteredTable =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;MGA_AROPEN,Filter(MGA_AROPEN, &lt;BR /&gt;MGA_AROPEN[CONO]=10 &amp;amp;&amp;amp; MGA_AROPEN[COVTYPE]="ComTitle" &amp;amp;&amp;amp; MGA_AROPEN[DATETRX] &amp;lt;= seldatetrx &amp;amp;&amp;amp;&lt;BR /&gt;OR(ISBLANK(MGA_AROPEN[DATEPURGE]), MGA_AROPEN[DATEPURGE]&amp;gt;= seldatepurge)))&lt;/P&gt;
&lt;P&gt;VAR Result = SUMX ( FilteredTable, MGA_AROPEN[AMOUNTNET] )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, refer approach in&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 05:59:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-slicer/m-p/2512262#M69720</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-13T05:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-slicer/m-p/2513398#M69777</link>
      <description>&lt;P&gt;I dont have issue with the my dax formula. It is working as expected when i dont have slicers Datepurge and Datetrx in my report. WHen i have those slicers and i chose same value for both which is my varibaledate , i have my other dimesnison values getting as these slicers getting applied and i cant enforce datepurge to have "is null" or &amp;gt;= Variable Date only &amp;gt;=varibale date can be done using slicer&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 11:48:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-slicer/m-p/2513398#M69777</guid>
      <dc:creator>kdendukuri</dc:creator>
      <dc:date>2022-05-13T11:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-slicer/m-p/2519743#M70189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="389430" data-lia-user-login="kdendukuri" class="lia-mention lia-mention-user"&gt;kdendukuri&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need create a new table via values(table[&lt;SPAN&gt;Datepurge])&lt;/SPAN&gt; for the slicer just giving &lt;SPAN&gt;Variable&lt;/SPAN&gt; to the measure and not participating in the filter context. The new table should have no relationships with this fact table. It is much better to get variables from the slicer via max() or min() than selectedvalue() to&amp;nbsp;avoid blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:09:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-slicer/m-p/2519743#M70189</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-05-17T08:09:58Z</dc:date>
    </item>
  </channel>
</rss>

