<?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: COUNTIFS Functionality in  DAX in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/1299854#M565771</link>
    <description>&lt;P&gt;How does the usage/formula differ if you leave out the CALCULATE part (something like below). With some similar formulas I have had similar results by using FILTER inside COUNTROWS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;COUNTROWS ( Table ),
    FILTER (
        Table,
        Table[fault_code] = fault_code1
            &amp;amp;&amp;amp; Table[equipment_id] = equipment_id1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;COUNTROWS (
    FILTER (
        Table,
        Table[fault_code] = fault_code1
            &amp;amp;&amp;amp; Table[equipment_id] = equipment_id1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 06:39:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-17T06:39:56Z</dc:date>
    <item>
      <title>COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/123456#M52251</link>
      <description>&lt;P&gt;Trying to find a DAX equivilent to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ACTIVITY =COUNTIFS([fault_code],[@[fault_code]],[equipment_id],[@[equipment_id]])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have experimented with COUNT and CALCULATE but can't find a syntax that works, all column headers are in the same table, as always any and all help gratefully received&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 01:23:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/123456#M52251</guid>
      <dc:creator>Stoo48</dc:creator>
      <dc:date>2017-02-07T01:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/123474#M52261</link>
      <description>&lt;P&gt;Although I still use Excel I have not done anything in regular tables (meaning not PowerPivot tables) in years...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So with this caveat I belive this is the equivalent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Activity COLUMN =
IF ( 'Table'[fault_code] = BLANK () || 'Table'[equipment_id] = BLANK (), 0, 1 )&lt;/PRE&gt;&lt;P&gt;Hopefully this is the desired outcome! :smileyhappy:&lt;/P&gt;&lt;P&gt;Good Luck! :smileyhappy:&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 02:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/123474#M52261</guid>
      <dc:creator>Sean</dc:creator>
      <dc:date>2017-02-07T02:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/123772#M52365</link>
      <description>&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, not quitre returning the results I was hoping for, its populated the retuurn column with a 1 or 0, similar to when you would build a truth table to conditionally format something, In excel the CONTIFS when set as described counts occurences of in this case Fault_Code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for input, but back to the drawing board on this for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 13:38:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/123772#M52365</guid>
      <dc:creator>Stoo48</dc:creator>
      <dc:date>2017-02-07T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/130541#M55625</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="20755" data-lia-user-login="Stoo48" class="lia-mention lia-mention-user"&gt;Stoo48&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, you want to count rows which meet the criteria. Right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a measure like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;COUNTIFS =
CALCULATE (
    COUNTROWS ( Table ),
    FILTER (
        Table,
        Table[fault_code] = fault_code1
            &amp;amp;&amp;amp; Table[equipment_id] = equipment_id1
    )
)&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 09:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/130541#M55625</guid>
      <dc:creator>v-sihou-msft</dc:creator>
      <dc:date>2017-02-21T09:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/215660#M95447</link>
      <description>&lt;P&gt;Hi, I have been given an excel doc by a colleague they want translating into Power BI. They have used COUNTIF in excel, not sure if the same is required in PBI or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially we have a single table, with a list of incident numbers and a reporting month. I have created a column (in same table) to define whether the reporting month is, "Current Month", "Previous Month" or "Historic".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need to do now is calculate if an incident is still open using the following logic:&lt;/P&gt;&lt;P&gt;- Incident number exists in Current Month and Previous Month then a value of "Open" is returned&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Incident number does not exist in Current Month but exists in&amp;nbsp;Previous Month then a value of "Closed in Period" is returned&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be&amp;nbsp;gratefully received!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 10:18:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/215660#M95447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T10:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/469804#M218256</link>
      <description>&lt;P&gt;shucks.. not quite for what i want..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mark - blue&lt;/P&gt;&lt;P&gt;mark - blue&lt;/P&gt;&lt;P&gt;suzy - red&lt;/P&gt;&lt;P&gt;suzy - blue&lt;/P&gt;&lt;P&gt;john - yellow&lt;/P&gt;&lt;P&gt;john - yellow&lt;/P&gt;&lt;P&gt;mary - blue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;want a function in power bi that will give me the count of the # of times each combo exists.. to give this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mark - blue - 2&lt;/P&gt;&lt;P&gt;mark - blue - 2&lt;/P&gt;&lt;P&gt;suzy - red - 1&lt;/P&gt;&lt;P&gt;suzy - blue - 1&lt;/P&gt;&lt;P&gt;john - yellow - 2&lt;/P&gt;&lt;P&gt;john - yellow - 2&lt;/P&gt;&lt;P&gt;mary - blue - 1&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 22:16:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/469804#M218256</guid>
      <dc:creator>vollmers</dc:creator>
      <dc:date>2018-07-23T22:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/475599#M221165</link>
      <description>&lt;P&gt;what i'm looking for is a COUNTIFS that shows the # of times that each combo shows up:&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NAME - COLOR&lt;/P&gt;&lt;P&gt;mark - red&lt;/P&gt;&lt;P&gt;mark - red&lt;/P&gt;&lt;P&gt;mark - blue&lt;/P&gt;&lt;P&gt;john - red&lt;/P&gt;&lt;P&gt;john - blue&lt;/P&gt;&lt;P&gt;john - yellow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTPUT:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NAME - COLOR - COUNT&lt;/P&gt;&lt;P&gt;mark - red - 2&lt;/P&gt;&lt;P&gt;mark - red - 2&lt;/P&gt;&lt;P&gt;mark - blue - 1&lt;/P&gt;&lt;P&gt;john - red - 1&lt;/P&gt;&lt;P&gt;john - blue - 1&lt;/P&gt;&lt;P&gt;john - yellow - 1&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 17:46:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/475599#M221165</guid>
      <dc:creator>vollmers</dc:creator>
      <dc:date>2018-07-30T17:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/475620#M221178</link>
      <description>&lt;P&gt;If you just want the count you can achieve this without any Measures or Calculated Columns.&lt;/P&gt;&lt;P&gt;Just create a Matrix.&lt;/P&gt;&lt;P&gt;Place Name in Rows - place Color in Columns - finally place either Name or Color in Values and change to display Count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you insist on having a COLUMN with this information&lt;/P&gt;&lt;P&gt;Concatenate the possible Name-Color combinations in a column and then count the results of that column&lt;/P&gt;&lt;P&gt;So first create a COLUMN:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Column&lt;/FONT&gt; = 'Table'[Name]&amp;amp;"-"&amp;amp;"'Table'[Color]&lt;/P&gt;&lt;P&gt;then create a COLUMN:&lt;/P&gt;&lt;P&gt;Countifs Column = CALCULATE ( COUNTA ( 'Table'[&lt;FONT color="#ff0000"&gt;Column&lt;/FONT&gt;] ), ALLEXCEPT('Table', 'Table'[&lt;FONT color="#ff0000"&gt;Column&lt;/FONT&gt;] ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should do it! Good Luck! :smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 18:35:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/475620#M221178</guid>
      <dc:creator>Sean</dc:creator>
      <dc:date>2018-07-30T18:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/475680#M221215</link>
      <description>&lt;P&gt;you are awesome. i'm going to keep bugging you. congrats :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 100s of thousands of rows and thousands of unique combinations.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 20:07:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/475680#M221215</guid>
      <dc:creator>vollmers</dc:creator>
      <dc:date>2018-07-30T20:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/581720#M275301</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the next case where C5 y F5 are variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=+COUNTIFS($C$2:$C$8,C5,$D$2:$D$8,F5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i select a variable cell?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 20:55:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/581720#M275301</guid>
      <dc:creator>emoncada</dc:creator>
      <dc:date>2018-12-07T20:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/1299854#M565771</link>
      <description>&lt;P&gt;How does the usage/formula differ if you leave out the CALCULATE part (something like below). With some similar formulas I have had similar results by using FILTER inside COUNTROWS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;COUNTROWS ( Table ),
    FILTER (
        Table,
        Table[fault_code] = fault_code1
            &amp;amp;&amp;amp; Table[equipment_id] = equipment_id1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;COUNTROWS (
    FILTER (
        Table,
        Table[fault_code] = fault_code1
            &amp;amp;&amp;amp; Table[equipment_id] = equipment_id1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 06:39:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/1299854#M565771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T06:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/1725261#M681285</link>
      <description>&lt;P&gt;This should be the solution - this is the closest i can see to an alternative to excel's COUNTIF function. Alot of the other solutions require you to specify each variable or create a seperate list - this allows the variables to change by row. Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 13:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/1725261#M681285</guid>
      <dc:creator>GlassShark1</dc:creator>
      <dc:date>2021-03-16T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS Functionality in  DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/3537660#M1166827</link>
      <description>&lt;P&gt;Dear v-sihou,&lt;/P&gt;&lt;P&gt;thsnk you for your solution. I've tried to apply your COUNTROWS FILTER combination, but it didn't work for me.. could you advise maybe, what do I do wrong?&lt;/P&gt;&lt;P&gt;thank you in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3537654#M135935" target="_blank"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3537654#M135935&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 18:08:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNTIFS-Functionality-in-DAX/m-p/3537660#M1166827</guid>
      <dc:creator>Katja262373</dc:creator>
      <dc:date>2023-11-16T18:08:13Z</dc:date>
    </item>
  </channel>
</rss>

