<?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: Counting number of occurrences in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3358042#M126218</link>
    <description>&lt;P&gt;Please try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Occursnces = CALCULATE(COUNT('Table'[column]),allexcept('Table','Table'[Range]))&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2023 13:29:40 GMT</pubDate>
    <dc:creator>eliasayyy</dc:creator>
    <dc:date>2023-07-31T13:29:40Z</dc:date>
    <item>
      <title>Counting number of occurrences in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3357938#M126213</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to find out total number of occurences of a&amp;nbsp; Range measure .&lt;BR /&gt;&lt;BR /&gt;I have a column called&amp;nbsp; offset from the time table &amp;amp; for every offset, based on certain conditions am finding the range .Requirement is to count the number of occurenecs for&amp;nbsp; each range as shown below in the expected output column.&lt;BR /&gt;&lt;BR /&gt;I am using offset column and range measure in a table visual and am looking to solve this without creating any calculated table as connection method is Live.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 12:47:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3357938#M126213</guid>
      <dc:creator>as1195</dc:creator>
      <dc:date>2023-07-31T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of occurrences in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3358042#M126218</link>
      <description>&lt;P&gt;Please try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Occursnces = CALCULATE(COUNT('Table'[column]),allexcept('Table','Table'[Range]))&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 13:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3358042#M126218</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-07-31T13:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of occurrences in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3358089#M126219</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for the reply!&lt;BR /&gt;But I dont think this will work as Allexcept only takes table and column as arguments wherin in my case "Range" is calculated measure and not a column&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 13:52:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3358089#M126219</guid>
      <dc:creator>as1195</dc:creator>
      <dc:date>2023-07-31T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of occurrences in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3358094#M126220</link>
      <description>&lt;P&gt;ok can you please provide a sample dataset taht isnt confidential as well as your measures&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 13:55:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3358094#M126220</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-07-31T13:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of occurrences in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3360852#M126340</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437676" data-lia-user-login="as1195" class="lia-mention lia-mention-user"&gt;as1195&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Measure:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Range = SWITCH(TRUE(),
SELECTEDVALUE('Table'[Number])&amp;gt;=151&amp;amp;&amp;amp;SELECTEDVALUE('Table'[Number])&amp;lt;157,"151-157",
SELECTEDVALUE('Table'[Number])&amp;gt;=139&amp;amp;&amp;amp;SELECTEDVALUE('Table'[Number])&amp;lt;145,"139-145",
SELECTEDVALUE('Table'[Number])&amp;gt;=133&amp;amp;&amp;amp;SELECTEDVALUE('Table'[Number])&amp;lt;139,"133-139",
SELECTEDVALUE('Table'[Number])&amp;gt;=127&amp;amp;&amp;amp;SELECTEDVALUE('Table'[Number])&amp;lt;133,"127-133")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Count = 
VAR CurrentRange = [Range]
RETURN
CALCULATE(COUNTROWS('Table'), FILTER(ALL('Table'), [Range] = CurrentRange ))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&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 _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 02:54:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-occurrences-in-DAX/m-p/3360852#M126340</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-08-02T02:54:22Z</dc:date>
    </item>
  </channel>
</rss>

