<?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 without selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636336#M177489</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1247151" data-lia-user-login="Marinus" class="lia-mention lia-mention-user"&gt;Marinus&lt;/a&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Overzicht aanvragen'),&lt;BR /&gt;EXCEPT(&lt;BR /&gt;ALL('Overzicht aanvragen'),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Overzicht aanvragen',&lt;BR /&gt;'Overzicht aanvragen'[Aanvraag_Routelint] IN { "Zvg -", "Vlgr -", "Rsdg -", "Odzg -", "Edng -", "Bdlg -", "Svgg -" }&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2025 08:47:06 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-04-03T08:47:06Z</dc:date>
    <item>
      <title>Countrows without selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636321#M177486</link>
      <description>&lt;P&gt;I have a command to countrows with a specific tekst :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COUNTROWS('Overzicht aanvragen'),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Overzicht aanvragen'[Aanvraag_Routelint] IN { "Zvg -", "Vlgr -", "Rsdg -", "Odzg -", "Edng -", "Bdlg -", "Svgg -" }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can someone tell me how i can countrows without this specific tekst.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can't find any DAX code that explains how to do this (i coultn't find the "IN" code too).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 08:39:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636321#M177486</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2025-04-03T08:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows without selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636336#M177489</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1247151" data-lia-user-login="Marinus" class="lia-mention lia-mention-user"&gt;Marinus&lt;/a&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Overzicht aanvragen'),&lt;BR /&gt;EXCEPT(&lt;BR /&gt;ALL('Overzicht aanvragen'),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Overzicht aanvragen',&lt;BR /&gt;'Overzicht aanvragen'[Aanvraag_Routelint] IN { "Zvg -", "Vlgr -", "Rsdg -", "Odzg -", "Edng -", "Bdlg -", "Svgg -" }&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 08:47:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636336#M177489</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-04-03T08:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows without selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636362#M177492</link>
      <description>&lt;P&gt;The result is a total of the column, but not the amount of rows without these specific text&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 09:02:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636362#M177492</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2025-04-03T09:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows without selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636372#M177493</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1247151" data-lia-user-login="Marinus" class="lia-mention lia-mention-user"&gt;Marinus&lt;/a&gt;&amp;nbsp;Have you tried NOT and IN&lt;/P&gt;
&lt;P&gt;dax&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;'Overzicht aanvragen',&lt;BR /&gt;NOT('Overzicht aanvragen'[Aanvraag_Routelint] IN { "Zvg -", "Vlgr -", "Rsdg -", "Odzg -", "Edng -", "Bdlg -", "Svgg -" })&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 09:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636372#M177493</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-04-03T09:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows without selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636444#M177496</link>
      <description>&lt;P&gt;This gives still a total of rows in the column, it includes the rows with the selected text.&lt;/P&gt;&lt;P&gt;It should count the rows without the rows with the selected text.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 09:28:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636444#M177496</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2025-04-03T09:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows without selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636617#M177514</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1247151" data-lia-user-login="Marinus" class="lia-mention lia-mention-user"&gt;Marinus&lt;/a&gt;,&lt;BR /&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following DAX measure. I assume that your column contains additional text after the "-" character.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE(
    COUNTROWS('Overzicht aanvragen'),
    FILTER(
        'Overzicht aanvragen',
        NOT (
            LEFT('Overzicht aanvragen'[Aanvraag_Routelint], SEARCH(" -", 'Overzicht aanvragen'[Aanvraag_Routelint] &amp;amp; " -") - 1) 
            IN { "Zvg", "Vlgr", "Rsdg", "Odzg", "Edng", "Bdlg", "Svgg" }
        )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the issue persists, kindly share a sample dataset along with the expected output. This will help in better understanding the problem and finding an appropriate solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you find this information helpful, please consider&lt;STRONG&gt;&amp;nbsp;"Accepting it as a solution"&lt;/STRONG&gt; and giving it a &lt;STRONG&gt;"kudos"&lt;/STRONG&gt; to assist other community members facing similar challenges.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 11:19:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636617#M177514</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-04-03T11:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows without selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636642#M177518</link>
      <description>&lt;P&gt;I have deleted the dashes to make it clearer.&lt;/P&gt;&lt;P&gt;I have a command to countrows with a specific tekst :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COUNTROWS('Overzicht aanvragen'),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Overzicht aanvragen'[Aanvraag_Routelint] IN { "Zvg", "Vlgr", "Rsdg", "Odzg", "Edng", "Bdlg", "Svgg" }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This way i count only the rows with these texts in it, but now i want to count the rows without these specific texts in it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 11:34:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636642#M177518</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2025-04-03T11:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows without selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636706#M177522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1247151" data-lia-user-login="Marinus" class="lia-mention lia-mention-user"&gt;Marinus&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’ve reproduced your scenario using sample data matching your raw data structure and achieved the expected output. Create the fallowing dax measure to calculate countrows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;rows = CALCULATE(
COUNTROWS(
FILTER(ALL('table'),
NOT('table'[Aanvraag_Routelint] IN { "Zvg -", "Vlgr -", "Rsdg -", "Odzg -", "Edng -", "Bdlg -", "Svgg -" })
)
)
)&lt;/LI-CODE&gt;
&lt;P&gt;The &lt;STRONG&gt;.pbix&lt;/STRONG&gt; file attached demonstrates this working solution with your sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this information is helpful, please &lt;STRONG&gt;“Accept it as a solution”&lt;/STRONG&gt; and give a &lt;STRONG&gt;"kudos"&lt;/STRONG&gt; to assist other community members in resolving similar issues more efficiently.&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 12:05:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-without-selection/m-p/4636706#M177522</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-04-03T12:05:56Z</dc:date>
    </item>
  </channel>
</rss>

