<?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/4630061#M177246</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;The CALCULATE function in DAX is used to modify the context in which data is evaluated, but the syntax you are using for the filter condition is not correct. You should use the FILTER function to specify the condition within CALCULATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Overzicht aanvragen'),&lt;BR /&gt;FILTER('Overzicht aanvragen', 'Overzicht aanvragen'[Aanvraag_Routelint] = "Zvg -,Vlgr -,Rsdg -,Odzg -,Edng -,Bdlg -,Svgg -")&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Sat, 29 Mar 2025 04:27:07 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-03-29T04:27:07Z</dc:date>
    <item>
      <title>COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4627593#M177151</link>
      <description>&lt;P&gt;I want to count the rows with a specific combination.&lt;/P&gt;&lt;P&gt;Can you tell me wat is wrong in my code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; COUNTROWS('Overzicht aanvragen'); Overzicht aanvragen[Aanvraag_Routelint] = "Zvg -,Vlgr -,Rsdg -,Odzg -,Edng -,Bdlg -,Svgg -")&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 12:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4627593#M177151</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2025-03-27T12:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4627671#M177157</link>
      <description>&lt;P&gt;Hello&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you need to count rows where&amp;nbsp;&lt;SPAN&gt;Aanvraag_Routelint is&amp;nbsp;Zvg -OR Vlgr -OR Rsdg - OR Odzg -OR Edng - OR Bdlg - OR Svgg -"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I'm right, you have to use IN feature, so you code should become&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Overzicht aanvragen'),&lt;BR /&gt;'Overzicht aanvragen'[Aanvraag_Routelint] IN { "Zvg -", "Vlgr -", "Rsdg -", "Odzg -", "Edng -", "Bdlg -", "Svgg -" }&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 13:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4627671#M177157</guid>
      <dc:creator>Cookistador</dc:creator>
      <dc:date>2025-03-27T13:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4627674#M177158</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;&amp;nbsp;&lt;BR /&gt;Could you please let me know what error you encountered?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 13:24:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4627674#M177158</guid>
      <dc:creator>Pow3Range</dc:creator>
      <dc:date>2025-03-27T13:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4628546#M177197</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;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;you can use this formula -&lt;BR /&gt;CALCULATE(COUNTROWS('Overzicht aanvragen'),&lt;BR /&gt;'Overzicht aanvragen'[Aanvraag_Routelint]&lt;/P&gt;&lt;P&gt;IN {"Zvg -", "Vlgr -", "Rsdg -", "Odzg -", "Edng -", "Bdlg -", "Svgg -"}&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;SPAN&gt;, then please give us Kudos and consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as a solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 05:59:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4628546#M177197</guid>
      <dc:creator>vivek31</dc:creator>
      <dc:date>2025-03-28T05:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4630061#M177246</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;The CALCULATE function in DAX is used to modify the context in which data is evaluated, but the syntax you are using for the filter condition is not correct. You should use the FILTER function to specify the condition within CALCULATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Overzicht aanvragen'),&lt;BR /&gt;FILTER('Overzicht aanvragen', 'Overzicht aanvragen'[Aanvraag_Routelint] = "Zvg -,Vlgr -,Rsdg -,Odzg -,Edng -,Bdlg -,Svgg -")&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 29 Mar 2025 04:27:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4630061#M177246</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-03-29T04:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4630556#M177283</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;Your DAX formula has a syntax error, as semicolons (;) are being used instead of commas (,), which are the correct parameter separators for functions in DAX. Additionally, the specific combination condition for Overzicht aanvragen[Aanvraag_Routelint] isn't properly defined for a multi-condition comparison.&lt;BR /&gt;&lt;BR /&gt;The corrected DAX :&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Overzicht aanvragen'),&lt;BR /&gt;'Overzicht aanvragen'[Aanvraag_Routelint] = "Zvg -, Vlgr -, Rsdg -, Odzg -, Edng -, Bdlg -, Svgg -"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Mar 2025 19:06:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4630556#M177283</guid>
      <dc:creator>praveen_511</dc:creator>
      <dc:date>2025-03-29T19:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4630903#M177295</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;&amp;nbsp;do you want to match entire string ? or partial match?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Mar 2025 16:16:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4630903#M177295</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-03-30T16:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4636773#M177527</link>
      <description>&lt;P&gt;I hope you can help me with my next question.&lt;/P&gt;&lt;P&gt;I have this code :&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;&lt;P&gt;&lt;SPAN&gt;I hope you can help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Marinus Schouten&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 12:38:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS/m-p/4636773#M177527</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2025-04-03T12:38:48Z</dc:date>
    </item>
  </channel>
</rss>

