<?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 how many times a sum measure returns blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2937556#M96911</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simple sample, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(COUNTROWS('Hours Real'),
          FILTER(ALL('Hours Real'),
                [AC No. Hours]=0||[AC No. Hours]=BLANK()))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Polly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 05:23:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-30T05:23:03Z</dc:date>
    <item>
      <title>Count how many times a sum measure returns blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2936177#M96778</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this measure that returns the sum of hours spent on a project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AC No. Hours = SUM('Hours Real'[QTY])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I create a measure that returns the number of projects that have a sum of hours spent that is returned as (blank)?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:44:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2936177#M96778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T14:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many times a sum measure returns blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2936247#M96790</link>
      <description>&lt;P&gt;try something like this,&lt;/P&gt;&lt;DIV&gt;0ProjectCount =&amp;nbsp;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;COUNTROWS(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;FILTER(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;VALUES('Hours Real'[Project]),&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;[AC No. Hours&lt;SPAN&gt;]=BLANK()&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2022 15:05:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2936247#M96790</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-29T15:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many times a sum measure returns blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2936685#M96847</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help! It returns only one row, so it is not quite what I am looking for. The AC No. Hours measure sums the QTY so I can have the total QTY for each project ID.&lt;BR /&gt;&lt;BR /&gt;Is there a way to count how many times the AC No. Hours measure returns blank or 0 because there are no QTY values for a given project ID?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 19:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2936685#M96847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T19:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many times a sum measure returns blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2937556#M96911</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simple sample, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(COUNTROWS('Hours Real'),
          FILTER(ALL('Hours Real'),
                [AC No. Hours]=0||[AC No. Hours]=BLANK()))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Polly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 05:23:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2937556#M96911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-30T05:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many times a sum measure returns blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2938468#M96956</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great, this seems to do the trick! Do you know if there is a way for the filter on the page to apply to this measure as well? For example if I want to filter on projects in the last 12 months or with a specific person responsible.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 10:07:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-how-many-times-a-sum-measure-returns-blank/m-p/2938468#M96956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-30T10:07:03Z</dc:date>
    </item>
  </channel>
</rss>

