<?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 Count occurrences based on other columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-occurrences-based-on-other-columns/m-p/1092061#M15852</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="70203" data-lia-user-login="mtb1973" class="lia-mention lia-mention-user"&gt;mtb1973&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a&amp;nbsp;measure is what you want and you're going to use it in a table visual like the one you show, try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
COUNTROWS (
    CALCULATETABLE (
        SUMMARIZE ( Table1, Table1[WC1], Table1[Job Order Number] ),
        ALL ( Table1[WC1], Table1[Job Order Number] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Contact me privately for support with any larger-scale BI needs&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 18:09:27 GMT</pubDate>
    <dc:creator>AlB</dc:creator>
    <dc:date>2020-05-15T18:09:27Z</dc:date>
    <item>
      <title>How to Count occurrences based on other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-occurrences-based-on-other-columns/m-p/1092031#M15851</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I am struggling to put together a formula that calculates how many times the combination of WC1 and Job Order Number occur per Family Code in the given context. In blue is what the count should be. Any assistance is greatly appreciated. Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 17:43:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-occurrences-based-on-other-columns/m-p/1092031#M15851</guid>
      <dc:creator>mtb1973</dc:creator>
      <dc:date>2020-05-15T17:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count occurrences based on other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-occurrences-based-on-other-columns/m-p/1092061#M15852</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="70203" data-lia-user-login="mtb1973" class="lia-mention lia-mention-user"&gt;mtb1973&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a&amp;nbsp;measure is what you want and you're going to use it in a table visual like the one you show, try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
COUNTROWS (
    CALCULATETABLE (
        SUMMARIZE ( Table1, Table1[WC1], Table1[Job Order Number] ),
        ALL ( Table1[WC1], Table1[Job Order Number] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Contact me privately for support with any larger-scale BI needs&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 18:09:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-occurrences-based-on-other-columns/m-p/1092061#M15852</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-05-15T18:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count occurrences based on other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-occurrences-based-on-other-columns/m-p/1092160#M15855</link>
      <description>&lt;P&gt;Thanks, maybe I am misunderstanding something. I am trying to count how many distinct WC/Job combinations there are for for each distinct Famuly code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 19:32:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-occurrences-based-on-other-columns/m-p/1092160#M15855</guid>
      <dc:creator>mtb1973</dc:creator>
      <dc:date>2020-05-15T19:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count occurrences based on other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-occurrences-based-on-other-columns/m-p/1092608#M15878</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="70203" data-lia-user-login="mtb1973" class="lia-mention lia-mention-user"&gt;mtb1973&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the following measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =

CALCULATE(COUNT(Table1[WC1]),ALLEXCEPT(Table3,Table1[WC1], Table1[Job Order Number]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 14:31:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-occurrences-based-on-other-columns/m-p/1092608#M15878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-16T14:31:14Z</dc:date>
    </item>
  </channel>
</rss>

