<?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: Count of Distinct Clients for 3 Consecutive Days based on a Selected Value from a Slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2047716#M46010</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="323002" data-lia-user-login="MITHUN_NAIR" class="lia-mention lia-mention-user"&gt;MITHUN_NAIR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the below measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR Selected_Date =SELECTEDVALUE ( Date[Date] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Return CountofClients&lt;/SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN class="hljs-built_in"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN class="hljs-built_in"&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;SPAN&gt; Clients[Client] )&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-built_in"&gt;DATESBETWEEN&lt;/SPAN&gt;&lt;SPAN&gt;( 'Date'[Date], DATEADD('Date'[Date],-2, DAY),&lt;/SPAN&gt;&lt;SPAN&gt; &lt;SPAN&gt;Selected_Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mark this as a solution if I answered your question. Kudos are always appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Aug 2021 05:27:43 GMT</pubDate>
    <dc:creator>Tanushree_Kapse</dc:creator>
    <dc:date>2021-08-31T05:27:43Z</dc:date>
    <item>
      <title>Count of Distinct Clients for 3 Consecutive Days based on a Selected Value from a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2046858#M45991</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Need your help in Solving the Below Issue.&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;if I Select a Date from the Slicer(Report Levvel) i.e. 28/08/2021 I should get the Count of Distinct Clients based on the below Condition.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KPI=Not met Or Quality=Not Met&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should compare the above Condition for three consecutive days i.e 26th ,27th &amp;amp; 28th&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if any of this column (KPI &amp;amp; Quality) is Not Met for all 3 rows for each client then find the Distinct Count of Clients from the Above Data. The Result would be 1(Distinct Count of Clients-A).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only take the count if all the 3 rows satisfies the condition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Created a Measure&amp;nbsp; for the Specific Date that is &lt;STRONG&gt;28th July&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DAX Code: Measure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Counts =&lt;BR /&gt;VAR Selected_Date =&lt;BR /&gt;SELECTEDVALUE ( Date[Date] )&lt;BR /&gt;VAR CountofClients =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;DISTINCTCOUNT ( Clients[Client] ),&lt;BR /&gt;FILTER ( Clients, Clients[KPI] = "Not Met" || Clients[Quality] = "Not Met" ),&lt;BR /&gt;Clients[Date] = Selected_Date&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;CountofClients&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:38:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2046858#M45991</guid>
      <dc:creator>MITHUN_NAIR</dc:creator>
      <dc:date>2021-08-31T07:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Clients for 3 Consecutive Days based on a Selected Value from a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2047716#M46010</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="323002" data-lia-user-login="MITHUN_NAIR" class="lia-mention lia-mention-user"&gt;MITHUN_NAIR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the below measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR Selected_Date =SELECTEDVALUE ( Date[Date] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Return CountofClients&lt;/SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN class="hljs-built_in"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN class="hljs-built_in"&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;SPAN&gt; Clients[Client] )&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-built_in"&gt;DATESBETWEEN&lt;/SPAN&gt;&lt;SPAN&gt;( 'Date'[Date], DATEADD('Date'[Date],-2, DAY),&lt;/SPAN&gt;&lt;SPAN&gt; &lt;SPAN&gt;Selected_Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mark this as a solution if I answered your question. Kudos are always appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 05:27:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2047716#M46010</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-08-31T05:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Clients for 3 Consecutive Days based on a Selected Value from a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2047748#M46011</link>
      <description>&lt;P&gt;Hi Tanusree,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your code we are getting the data for those dates. But where are we comparing the values based on the condition I mentioned.Need to get those count where the condition satisfies&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 05:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2047748#M46011</guid>
      <dc:creator>MITHUN_NAIR</dc:creator>
      <dc:date>2021-08-31T05:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Clients for 3 Consecutive Days based on a Selected Value from a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2047755#M46012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="323002" data-lia-user-login="MITHUN_NAIR" class="lia-mention lia-mention-user"&gt;MITHUN_NAIR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR Selected_Date =SELECTEDVALUE ( Date[Date] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Return CountofClients=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="hljs-built_in"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="hljs-built_in"&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;nbsp;Clients[Client] ),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="hljs-built_in"&gt;DATESBETWEEN&lt;/SPAN&gt;&lt;SPAN&gt;( 'Date'[Date], DATEADD('Date'[Date],-2, DAY),&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Selected_Date&lt;/SPAN&gt;&lt;SPAN&gt;) ,FILTER ( Clients, Clients[KPI] = "Not Met" || Clients[Quality] = "Not Met" ))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 05:47:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2047755#M46012</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-08-31T05:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Clients for 3 Consecutive Days based on a Selected Value from a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2047853#M46017</link>
      <description>&lt;P&gt;Hi Tanusree,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take distinct count of clients only if all the 3 rows satisfies the condition. From the Above data for client A we have all the 3 rows satisfies the condition.So the count result is 1&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 06:30:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2047853#M46017</guid>
      <dc:creator>MITHUN_NAIR</dc:creator>
      <dc:date>2021-08-31T06:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Clients for 3 Consecutive Days based on a Selected Value from a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2048609#M46038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="323002" data-lia-user-login="MITHUN_NAIR" class="lia-mention lia-mention-user"&gt;MITHUN_NAIR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mark this as a solution if I answered your question. Kudos are always appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 10:39:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Distinct-Clients-for-3-Consecutive-Days-based-on-a/m-p/2048609#M46038</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-08-31T10:39:18Z</dc:date>
    </item>
  </channel>
</rss>

