<?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 Count row with blank data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3707950#M144240</link>
    <description>&lt;P&gt;Hi everyone !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple request but i tried different ways but I didn't solve it.&lt;/P&gt;&lt;P&gt;I would like to count how many times I have a blank rows, here is the field " Groupe mandataire retraité" (the first row).&lt;/P&gt;&lt;P&gt;Here is the matrix :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here, is an excel with the expected result :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried all those possibilities :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 1 = COUNTBLANK(groupe mandataire retraité [groupe mandataire retraité])&lt;/P&gt;&lt;P&gt;Result : Blank (because there are blank in data?)&lt;/P&gt;&lt;P&gt;Measure 2 =&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result = Nothing happened&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt; &lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISEMPTY&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Groupe mandataire retraité'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Mandataire&lt;/SPAN&gt;&lt;SPAN&gt;[Groupe mandataire]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I don't have any solutions but maybe you have one !&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;The aim is also to create just a card to inform about number of blank lines.&lt;/DIV&gt;&lt;DIV&gt;Thank you in advance,&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 12:02:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-19T12:02:29Z</dc:date>
    <item>
      <title>Count row with blank data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3707950#M144240</link>
      <description>&lt;P&gt;Hi everyone !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple request but i tried different ways but I didn't solve it.&lt;/P&gt;&lt;P&gt;I would like to count how many times I have a blank rows, here is the field " Groupe mandataire retraité" (the first row).&lt;/P&gt;&lt;P&gt;Here is the matrix :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here, is an excel with the expected result :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried all those possibilities :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 1 = COUNTBLANK(groupe mandataire retraité [groupe mandataire retraité])&lt;/P&gt;&lt;P&gt;Result : Blank (because there are blank in data?)&lt;/P&gt;&lt;P&gt;Measure 2 =&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result = Nothing happened&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt; &lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISEMPTY&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Groupe mandataire retraité'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Mandataire&lt;/SPAN&gt;&lt;SPAN&gt;[Groupe mandataire]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I don't have any solutions but maybe you have one !&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;The aim is also to create just a card to inform about number of blank lines.&lt;/DIV&gt;&lt;DIV&gt;Thank you in advance,&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 12:02:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3707950#M144240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-19T12:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count row with blank data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3708028#M144246</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(COUNTROWS('groupe mandataire retraité'),ISBLANK('groupe mandataire retraité'[groupe mandataire retraité])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Feb 2024 12:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3708028#M144246</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-02-19T12:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count row with blank data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3708105#M144250</link>
      <description>&lt;P&gt;To count the number of blank rows based on the field "Groupe mandataire retraité" in Power BI using DAX, you can create a new calculated column or measure depending on your requirement.&lt;/P&gt;&lt;P&gt;Here's how you can do it:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Create a new calculated column: You can create a new calculated column using the following DAX formula:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;BlankRowCount = IF(ISBLANK([Groupe mandataire retraité]), 1, 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;This formula will assign a value of 1 to the new column if the "Groupe mandataire retraité" field is blank, and 0 otherwise.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Create a measure: If you prefer to use a measure to dynamically calculate the count of blank rows, you can create a measure using the following DAX formula:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;BlankRowCount =&lt;BR /&gt;COUNTROWS(FILTER('YourTableName', ISBLANK('YourTableName'[Groupe mandataire retraité])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Replace 'YourTableName' with the name of your table where the data is stored.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Once you have either the calculated column or measure in place, you can add it to your report and it will show the count of blank rows based on the "Groupe mandataire retraité" field.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&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;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Feb 2024 13:22:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3708105#M144250</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-02-19T13:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count row with blank data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3708724#M144288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403667" data-lia-user-login="123abc" class="lia-mention lia-mention-user"&gt;123abc&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunatly it displays blank value.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 17:36:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3708724#M144288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-19T17:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count row with blank data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3708728#M144289</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226664" data-lia-user-login="sjoerdvn" class="lia-mention lia-mention-user"&gt;sjoerdvn&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunatly it displays blank value &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 17:37:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3708728#M144289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-19T17:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count row with blank data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3709840#M144341</link>
      <description>&lt;P&gt;To count the number of blank rows based on the "Groupe mandataire retraité" column in Power BI using DAX, you can use the following approach:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a calculated column that checks if the "Groupe mandataire retraité" column is blank for each row.&lt;/LI&gt;&lt;LI&gt;Then, create a measure to count the number of rows where the calculated column is true.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here are the steps to implement this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Create a calculated column:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to the table where your data is located.&lt;/LI&gt;&lt;LI&gt;Click on "Modeling" in the menu at the top.&lt;/LI&gt;&lt;LI&gt;Click on "New Column" in the toolbar.&lt;/LI&gt;&lt;LI&gt;Enter the following formula for the new column:&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;BlankRowCheck = ISBLANK('YourTableName'[Groupe mandataire retraité])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Replace 'YourTableName' with the name of your table.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Create a measure to count blank rows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Click on "New Measure" in the toolbar.&lt;/LI&gt;&lt;LI&gt;Enter the following formula for the measure:&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;BlankRowCount = COUNTROWS(FILTER('YourTableName', 'YourTableName'[BlankRowCheck]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Replace 'YourTableName' with the name of your table.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After creating the measure, you can add it to a card visual to display the number of blank rows based on the "Groupe mandataire retraité" column.&lt;/P&gt;&lt;P&gt;This approach should give you the count of blank rows as expected in your Excel example. Make sure to replace 'YourTableName' with the actual name of your table in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 05:36:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-row-with-blank-data/m-p/3709840#M144341</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-02-20T05:36:11Z</dc:date>
    </item>
  </channel>
</rss>

