<?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: How to replicate Excel COUNTIF formula? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936077#M42101</link>
    <description>&lt;P&gt;Thank you, that seems to work. Though I am a little confused as to what the function is actually doing. How does it know that I am trying to match the two columns? Is that implied from the one to many relationship already?&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jul 2021 08:36:26 GMT</pubDate>
    <dc:creator>JollyRoger01</dc:creator>
    <dc:date>2021-07-03T08:36:26Z</dc:date>
    <item>
      <title>How to replicate Excel COUNTIF formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936027#M42097</link>
      <description>&lt;P&gt;I am struggling to get my head around the basic layout of DAX, even a simple COUNTIF formula. I have two tables in my data model connected by a field called System. I just wanted to calculate in this table how many rows are in Table 1 where the two row values for System are the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 04:33:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936027#M42097</guid>
      <dc:creator>JollyRoger01</dc:creator>
      <dc:date>2021-07-03T04:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate Excel COUNTIF formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936058#M42100</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="171867" data-lia-user-login="JollyRoger01" class="lia-mention lia-mention-user"&gt;JollyRoger01&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I guess you have a one-to-many relationship from this table to table1. Add the following calculated column to the table on the one side&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count System = 
CALCULATE(
    COUNTA(Table1[System]),
    RELATEDTABLE(Table1)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 03 Jul 2021 07:37:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936058#M42100</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-07-03T07:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate Excel COUNTIF formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936077#M42101</link>
      <description>&lt;P&gt;Thank you, that seems to work. Though I am a little confused as to what the function is actually doing. How does it know that I am trying to match the two columns? Is that implied from the one to many relationship already?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 08:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936077#M42101</guid>
      <dc:creator>JollyRoger01</dc:creator>
      <dc:date>2021-07-03T08:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate Excel COUNTIF formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936080#M42102</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="171867" data-lia-user-login="JollyRoger01" class="lia-mention lia-mention-user"&gt;JollyRoger01&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes, since you already have a valid relationship, CALCULATE activates it here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 08:47:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936080#M42102</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-07-03T08:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate Excel COUNTIF formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936095#M42104</link>
      <description>&lt;P&gt;Okay, I understand that. But how would I do this if I didn't have a relationship?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 10:02:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936095#M42104</guid>
      <dc:creator>JollyRoger01</dc:creator>
      <dc:date>2021-07-03T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate Excel COUNTIF formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936104#M42105</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="171867" data-lia-user-login="JollyRoger01" class="lia-mention lia-mention-user"&gt;JollyRoger01&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can do it this way:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count System =
VAR __system = [System]
RETURN
    COUNTROWS ( FILTER ( ALL ( Table1[System] ), Table1[System] = __system ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 03 Jul 2021 10:40:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1936104#M42105</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-07-03T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate Excel COUNTIF formula?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1937030#M42142</link>
      <description>&lt;P&gt;I can't seem to make that one work. Are you sure that is in the right format?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 04:42:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-Excel-COUNTIF-formula/m-p/1937030#M42142</guid>
      <dc:creator>JollyRoger01</dc:creator>
      <dc:date>2021-07-05T04:42:23Z</dc:date>
    </item>
  </channel>
</rss>

