<?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: Formula to return a count for given criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-to-return-a-count-for-given-criteria/m-p/2813300#M89100</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450078" data-lia-user-login="KVPBI1" class="lia-mention lia-mention-user"&gt;KVPBI1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use the functions provided by power bi to achieve the results you want. Please refer to the gif below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 08:06:03 GMT</pubDate>
    <dc:creator>v-chenwuz-msft</dc:creator>
    <dc:date>2022-10-03T08:06:03Z</dc:date>
    <item>
      <title>Formula to return a count for given criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-to-return-a-count-for-given-criteria/m-p/2809190#M88805</link>
      <description>&lt;P&gt;I have a dataset that includes multiple IDs and expiration buckets. Each ID should only have one count per bucket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TB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lt;TD&gt;90&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 19:42:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-to-return-a-count-for-given-criteria/m-p/2809190#M88805</guid>
      <dc:creator>KVPBI1</dc:creator>
      <dc:date>2022-09-30T19:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to return a count for given criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-to-return-a-count-for-given-criteria/m-p/2809645#M88877</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450078" data-lia-user-login="KVPBI1" class="lia-mention lia-mention-user"&gt;KVPBI1&lt;/a&gt; , Use a measure &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Distinctcount(Table[ID]) in a visual with Expired&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or calculate(Distinctcount(Table[ID]), filter(Table, table[Expired] &amp;lt;&amp;gt;0 ))&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 02:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-to-return-a-count-for-given-criteria/m-p/2809645#M88877</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-10-01T02:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to return a count for given criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-to-return-a-count-for-given-criteria/m-p/2813300#M89100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450078" data-lia-user-login="KVPBI1" class="lia-mention lia-mention-user"&gt;KVPBI1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use the functions provided by power bi to achieve the results you want. Please refer to the gif below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 08:06:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-to-return-a-count-for-given-criteria/m-p/2813300#M89100</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-10-03T08:06:03Z</dc:date>
    </item>
  </channel>
</rss>

