<?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 countrow when return zero or blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317459#M57776</link>
    <description>&lt;P&gt;I have a filter and want to display count of rows returned after search. but im not able to figure out how to write condition if blank is returned from count rows&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Total Rows = IF(ISFILTERED ('table'[Search]),COUNTROWS('table')&amp;nbsp; &amp;amp;&amp;nbsp; " customer match(es) found.", "No customer match(es) found.")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;before any search is performed im displaying below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 10:30:49 GMT</pubDate>
    <dc:creator>sanjanarama</dc:creator>
    <dc:date>2022-02-03T10:30:49Z</dc:date>
    <item>
      <title>countrow when return zero or blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317459#M57776</link>
      <description>&lt;P&gt;I have a filter and want to display count of rows returned after search. but im not able to figure out how to write condition if blank is returned from count rows&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Total Rows = IF(ISFILTERED ('table'[Search]),COUNTROWS('table')&amp;nbsp; &amp;amp;&amp;nbsp; " customer match(es) found.", "No customer match(es) found.")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;before any search is performed im displaying below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 10:30:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317459#M57776</guid>
      <dc:creator>sanjanarama</dc:creator>
      <dc:date>2022-02-03T10:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: countrow when return zero or blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317546#M57781</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try using ISBLANK. So something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Total Rows = IF(ISFILTERED ('table'[Search]),&lt;BR /&gt;&lt;BR /&gt;IF(ISBLANK(COUNTROWS('table') ), "No customer match(es) found.",&lt;BR /&gt;&lt;BR /&gt;COUNTROWS('table')&amp;nbsp; &amp;amp;&amp;nbsp; " customer match(es) found.", "No customer match(es) found."))&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 11:22:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317546#M57781</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-03T11:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: countrow when return zero or blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317748#M57804</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Too many arguments were passed to the IF function. The maximum argument count for the function is 3.&lt;BR /&gt;&lt;BR /&gt;im getting above error when i use the dax&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 13:25:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317748#M57804</guid>
      <dc:creator>sanjanarama</dc:creator>
      <dc:date>2022-02-03T13:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: countrow when return zero or blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317763#M57807</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349822" data-lia-user-login="sanjanarama" class="lia-mention lia-mention-user"&gt;sanjanarama&lt;/a&gt;&amp;nbsp; There was a problem with the brackects. Here is the modified verison:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISFILTERED&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'table'&lt;/SPAN&gt;&lt;SPAN&gt;[Search]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'table'&lt;/SPAN&gt;&lt;SPAN&gt;) , &lt;/SPAN&gt;&lt;SPAN&gt;"No customer match(es) found."&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'table'&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" customer match(es) found."&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"No customer match(es) found."&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Feb 2022 13:47:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317763#M57807</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-03T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: countrow when return zero or blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317777#M57808</link>
      <description>&lt;P&gt;I'm sorry "Too many arguments were passed to the ISBLANK function. The maximum argument count for the function is 1."&lt;BR /&gt;&lt;BR /&gt;this is error im seeing&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 13:51:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2317777#M57808</guid>
      <dc:creator>sanjanarama</dc:creator>
      <dc:date>2022-02-03T13:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: countrow when return zero or blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2319347#M57895</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;In case if anyone is looking for solution, i did figure out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;1) first create measure to get total rows and return 0 if no rows&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TotalRowsCount = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;('Table'&lt;/SPAN&gt;&lt;SPAN&gt;) ) = &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt; (),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;('Table'&lt;/SPAN&gt;&lt;SPAN&gt;) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;2) create below measure to get the display&amp;nbsp;&lt;BR /&gt;Total Rows = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;ISFILTERED&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'Table'[Search]&lt;/SPAN&gt;&lt;SPAN&gt;) ,'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[TotalRowsCount]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" customer match(es) found."&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"No customer match(es) found."&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; )&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Feb 2022 08:42:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrow-when-return-zero-or-blank/m-p/2319347#M57895</guid>
      <dc:creator>sanjanarama</dc:creator>
      <dc:date>2022-02-04T08:42:17Z</dc:date>
    </item>
  </channel>
</rss>

