<?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: Sum of count in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-count/m-p/1535528#M30167</link>
    <description>&lt;P&gt;Hi Pat,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution works excellent! Thanks a lot.&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 05:57:20 GMT</pubDate>
    <dc:creator>wem</dc:creator>
    <dc:date>2020-12-07T05:57:20Z</dc:date>
    <item>
      <title>Sum of count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-count/m-p/1532746#M30086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Below a simplified view of the model I use for my calculations.&lt;/P&gt;&lt;P&gt;I've made a measure (count) of FileNumber. In that table the complaint_ID and FileNumber are unique.&lt;/P&gt;&lt;P&gt;Count FileNumber generates: 1000 unique FileNumbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to count FileNumbers on Department (Table 2) and on Subject (Table 3) I made following dax:&lt;/P&gt;&lt;P&gt;Calculate ( measureFileNumber, crossfilter ( Table1[complaint_ID], Table2[complaint_ID], 2), crossfilter ( Table2[cyclus_ID], Table3[Cyclus_ID],2 ) )&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far so good because it 'works': it's returning&amp;nbsp; a unique measureFileNumber on level of Department and Subject.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in reality one FileNumber can affect more then one Department or more then one Subject.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;FileNumber 2018-800 relates to 2 department and relates to 2 Subjects.&lt;/P&gt;&lt;P&gt;2018-800 / Department 1 / Subject 1&lt;/P&gt;&lt;P&gt;2018-800 / Department 2 / Subject 1&lt;/P&gt;&lt;P&gt;2018-800 / Department 2 / Subject 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, the MeasureFileNumber should return 3 instead of 1 when displayed in a Card-visual&lt;/P&gt;&lt;P&gt;I've been trying with sumx (solution I found on the community), combined with the different sorts of 'counts' but without the expected result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please assist me in finding the correct dax formula?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 10:19:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-count/m-p/1532746#M30086</guid>
      <dc:creator>wem</dc:creator>
      <dc:date>2020-12-04T10:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-count/m-p/1533940#M30131</link>
      <description>&lt;P&gt;Please try a measure like this one&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Subject Count = COUNTROWS(SUMMARIZE(Table3, Table3[Subject], Table2[Complaint_ID], Table2[Department]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 04:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-count/m-p/1533940#M30131</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-12-05T04:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-count/m-p/1535528#M30167</link>
      <description>&lt;P&gt;Hi Pat,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution works excellent! Thanks a lot.&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 05:57:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-count/m-p/1535528#M30167</guid>
      <dc:creator>wem</dc:creator>
      <dc:date>2020-12-07T05:57:20Z</dc:date>
    </item>
  </channel>
</rss>

