<?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: CountRows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CountRows/m-p/3465044#M132222</link>
    <description>&lt;P&gt;hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;i think in your code it count blank row also if blank row present in your data&lt;BR /&gt;try below measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;count =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;var curr = MAX(Sheet1[HMI])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;return&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;COUNTX(FILTER(ALL(Sheet1),Sheet1[HMI]&amp;lt;curr),Sheet1[HMI])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/FONT&gt;&lt;FONT color="#333399"&gt;&lt;SPAN&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;FONT size="3" color="#000000"&gt;Appreciate your kudos&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 07 Oct 2023 13:06:37 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2023-10-07T13:06:37Z</dc:date>
    <item>
      <title>CountRows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CountRows/m-p/3464822#M132217</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your help on this. I'm trying to compare each value and count if it's less than, but it's not giving me the correct count. Any help is much appreciated. I have shared a link for the data.&amp;nbsp;&lt;BR /&gt;Here's the&amp;nbsp;&lt;A href="https://docs.google.com/spreadsheets/d/1n56Busm30-LeHMcAkmkRjW18gMw26DE5/edit?usp=sharing&amp;amp;ouid=110820996605556538896&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;data&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2023 02:18:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CountRows/m-p/3464822#M132217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-07T02:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: CountRows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CountRows/m-p/3465044#M132222</link>
      <description>&lt;P&gt;hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;i think in your code it count blank row also if blank row present in your data&lt;BR /&gt;try below measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;count =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;var curr = MAX(Sheet1[HMI])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;return&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;COUNTX(FILTER(ALL(Sheet1),Sheet1[HMI]&amp;lt;curr),Sheet1[HMI])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/FONT&gt;&lt;FONT color="#333399"&gt;&lt;SPAN&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;FONT size="3" color="#000000"&gt;Appreciate your kudos&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 07 Oct 2023 13:06:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CountRows/m-p/3465044#M132222</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-07T13:06:37Z</dc:date>
    </item>
  </channel>
</rss>

