<?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 rows containing value in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/2496466#M75615</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would suggest you to use DAX instead of Power Query for your need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;NumberOfTwo = CALCULATE(
                COUNT(PQPFocus[Vekt utenfor norm]),
                    PQPFocus[Vekt utenfor norm] = 2
                        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Same thing for 5 etc.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I hope this will answer your question.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 05 May 2022 15:38:01 GMT</pubDate>
    <dc:creator>Querynalyst</dc:creator>
    <dc:date>2022-05-05T15:38:01Z</dc:date>
    <item>
      <title>Count rows containing value</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/2496414#M75606</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to count the rows containing specific values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table.FindText(PQPFocus[Vekt utenfor norm],2)&amp;nbsp;&lt;/P&gt;&lt;P&gt;... but I'm getting a cyclic error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My column&amp;nbsp;[Vekt utenfor norm] contains the values 5, 2, norm, -2, -5.&amp;nbsp;&lt;BR /&gt;I need to know how many rows contain the value 5, how many contains 2 and how many that contains the sum of those.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:14:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/2496414#M75606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T15:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows containing value</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/2496466#M75615</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would suggest you to use DAX instead of Power Query for your need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;NumberOfTwo = CALCULATE(
                COUNT(PQPFocus[Vekt utenfor norm]),
                    PQPFocus[Vekt utenfor norm] = 2
                        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Same thing for 5 etc.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I hope this will answer your question.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 May 2022 15:38:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/2496466#M75615</guid>
      <dc:creator>Querynalyst</dc:creator>
      <dc:date>2022-05-05T15:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows containing value</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/2496516#M75619</link>
      <description>&lt;P&gt;I used countrows, but I need it to give me the number in each row, not just mark the numbers with 1...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 16:02:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/2496516#M75619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T16:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows containing value</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/2496706#M75620</link>
      <description>&lt;P&gt;For counting 2, use following (Replace Previous Step with your previous step)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= List.Count(List.FindText(#"Previous Step"[Vekt utenfor norm],"2"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For any other value say 5, replace 2 with 5.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 17:08:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/2496706#M75620</guid>
      <dc:creator>Vijay_A_Verma</dc:creator>
      <dc:date>2022-05-05T17:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows containing value</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/3260039#M105090</link>
      <description>&lt;P&gt;I tried applying this calc to my issue, but it didn't work, can you tell me what i did wrong? Or maybe I'm using it wrong. I have a survey table (Form1) with column [Language]. I'm trying to create a visual table that contains a column for where the survey originated [Center], and then&amp;nbsp; column English with the total of English language surveys submitted for that center, and again with a column for Spanish. I thought i could just create a measure to count the occurange of English and add that to my table but the calc below does not work. The rest of the calc is valid, but it doesnt recognize "english". Maybe if I transform it to a numeric value? Thanks so much for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;English = &lt;/SPAN&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Form1&lt;/SPAN&gt;&lt;SPAN&gt;[Language]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Form1&lt;/SPAN&gt;&lt;SPAN&gt;[Language]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;FONT color="#FF0000"&gt;English&lt;/FONT&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 May 2023 15:53:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Count-rows-containing-value/m-p/3260039#M105090</guid>
      <dc:creator>Crangel</dc:creator>
      <dc:date>2023-05-30T15:53:11Z</dc:date>
    </item>
  </channel>
</rss>

