<?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: Fairly new to Dax - Count Question in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fairly-new-to-Dax-Count-Question/m-p/2169179#M50339</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;My Team =
CALCULATE (
    COUNTROWS ( 'Table Name' ),
    'Table Name'[Task] = 1,
    'Table Name'[Group] = "Team 1",
    ALLEXCEPT('Table Name','Table Name'[Case Number])
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 18:29:32 GMT</pubDate>
    <dc:creator>ERD</dc:creator>
    <dc:date>2021-11-02T18:29:32Z</dc:date>
    <item>
      <title>Fairly new to Dax - Count Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fairly-new-to-Dax-Count-Question/m-p/2169127#M50337</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am fairly new to Dax and find myself stuck.&amp;nbsp; I have data as below in the table with a Case Number where there are individual Tasks associated with that Case.&amp;nbsp; I need to do a couple of things, but believe they are all related in the Dax necessary to get my results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a new Column and count the number of times a Case Number has a Task = 1 and the Group = Team 1.&amp;nbsp; I'm able to get a result for that specific row of 1, but would like that result of 1 to appear on the rows having Task = 2 or 3 or beyond.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My Team = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table Name'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Table Name'[Case Number]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Table Name'[Group]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Team 1"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get a 1 in the row where the Group = "Team 1".&amp;nbsp; However, the 4 rows below with the same Case Number (= 100) are blank and I would like to have the result return 1 on those rows as well.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Nov 2021 17:54:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fairly-new-to-Dax-Count-Question/m-p/2169127#M50337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-02T17:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fairly new to Dax - Count Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fairly-new-to-Dax-Count-Question/m-p/2169179#M50339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;My Team =
CALCULATE (
    COUNTROWS ( 'Table Name' ),
    'Table Name'[Task] = 1,
    'Table Name'[Group] = "Team 1",
    ALLEXCEPT('Table Name','Table Name'[Case Number])
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 18:29:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fairly-new-to-Dax-Count-Question/m-p/2169179#M50339</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-11-02T18:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fairly new to Dax - Count Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fairly-new-to-Dax-Count-Question/m-p/2169214#M50340</link>
      <description>&lt;P&gt;Yes, thank you!&amp;nbsp; Looks like I need to read up on ALLEXCEPT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the feedback and help!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 19:08:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fairly-new-to-Dax-Count-Question/m-p/2169214#M50340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-02T19:08:40Z</dc:date>
    </item>
  </channel>
</rss>

