<?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: Find the Count after filter is set in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-Count-after-filter-is-set/m-p/3453115#M131572</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601623" data-lia-user-login="FARIDMD" class="lia-mention lia-mention-user"&gt;FARIDMD&lt;/a&gt;&amp;nbsp;, This will require two separate slicers, otherwise a snapshot value[value coming after a filter] cannot be stored.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2023 08:01:34 GMT</pubDate>
    <dc:creator>ChiragGarg2512</dc:creator>
    <dc:date>2023-09-29T08:01:34Z</dc:date>
    <item>
      <title>Find the Count after filter is set</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-Count-after-filter-is-set/m-p/3453081#M131571</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need assistance from expert to find the number of count after filter is set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have total count of name from a set of date range. For example from 8/11/2021 - 21/09/2023 i have 2595 count of name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then i set the slicer, from 08/11/2021 - 31/7/2022 i have 412 count of names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the difference in count, Difference =2183. ( 2595 - 412) , in Dax and show in a card. 2183 will change everytime i adjus the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 07:50:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-Count-after-filter-is-set/m-p/3453081#M131571</guid>
      <dc:creator>FARIDMD</dc:creator>
      <dc:date>2023-09-29T07:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find the Count after filter is set</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-Count-after-filter-is-set/m-p/3453115#M131572</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601623" data-lia-user-login="FARIDMD" class="lia-mention lia-mention-user"&gt;FARIDMD&lt;/a&gt;&amp;nbsp;, This will require two separate slicers, otherwise a snapshot value[value coming after a filter] cannot be stored.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 08:01:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-Count-after-filter-is-set/m-p/3453115#M131572</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-09-29T08:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find the Count after filter is set</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-Count-after-filter-is-set/m-p/3455609#M131716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601623" data-lia-user-login="FARIDMD" class="lia-mention lia-mention-user"&gt;FARIDMD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;SPAN&gt;ChiragGarg2512 mentioned above, Power BI won't store the snapshot value when you change the slicer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I suggest you to create two unrelated Calendar table for two slicers.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then use&amp;nbsp;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;() function.&amp;nbsp;&lt;/SPAN&gt;Measures:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count of Name 1 = 
CALCULATE(COUNT('Table'[Name]),USERELATIONSHIP('Table'[Date],'Slicer 1'[Date]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Count of Name 2 = 
CALCULATE(COUNT('Table'[Name]),USERELATIONSHIP('Table'[Date],'Slicer 2'[Date]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Difference = [Count of Name 1] - [Count of Name 2]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&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>Mon, 02 Oct 2023 07:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-Count-after-filter-is-set/m-p/3455609#M131716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-02T07:32:52Z</dc:date>
    </item>
  </channel>
</rss>

