<?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 Count where count &amp;gt; 1 based on grouping in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-where-count-gt-1-based-on-grouping/m-p/3066043#M106162</link>
    <description>&lt;P&gt;I have been asked to do an analysis on orders with multiple shipments/colli.&lt;/P&gt;&lt;P&gt;Below a screenshot of a matrix visual with order number. A count of tracking codes and a sum of colli.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to count tracking codes where the previous count is bigger than one. grouped by order number.&lt;/P&gt;&lt;P&gt;So in the example below I would expect to see blank rows on the 1 rows. And 150 as a total in the matrix / card visuals.&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;I think this would be something like this in SQL. But I'm not sure how to do this in DAX.&lt;/P&gt;&lt;P&gt;SELECT order_number,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; COUNT(track_and_trace)&lt;BR /&gt;WHERE COUNT(track_and_trace &amp;gt; 1&lt;/P&gt;&lt;P&gt;GROUP BY order_number&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 11:20:00 GMT</pubDate>
    <dc:creator>LvanLaar</dc:creator>
    <dc:date>2023-02-07T11:20:00Z</dc:date>
    <item>
      <title>Count where count &gt; 1 based on grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-where-count-gt-1-based-on-grouping/m-p/3066043#M106162</link>
      <description>&lt;P&gt;I have been asked to do an analysis on orders with multiple shipments/colli.&lt;/P&gt;&lt;P&gt;Below a screenshot of a matrix visual with order number. A count of tracking codes and a sum of colli.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to count tracking codes where the previous count is bigger than one. grouped by order number.&lt;/P&gt;&lt;P&gt;So in the example below I would expect to see blank rows on the 1 rows. And 150 as a total in the matrix / card visuals.&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;I think this would be something like this in SQL. But I'm not sure how to do this in DAX.&lt;/P&gt;&lt;P&gt;SELECT order_number,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; COUNT(track_and_trace)&lt;BR /&gt;WHERE COUNT(track_and_trace &amp;gt; 1&lt;/P&gt;&lt;P&gt;GROUP BY order_number&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 11:20:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-where-count-gt-1-based-on-grouping/m-p/3066043#M106162</guid>
      <dc:creator>LvanLaar</dc:creator>
      <dc:date>2023-02-07T11:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count where count &gt; 1 based on grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-where-count-gt-1-based-on-grouping/m-p/3066105#M106168</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477431" data-lia-user-login="LvanLaar" class="lia-mention lia-mention-user"&gt;LvanLaar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try plot with the OrderNumber column and a measure like:&lt;/P&gt;&lt;P&gt;count of Track and Trace =&lt;/P&gt;&lt;P&gt;VAR _count = COUNTROWS(TableName)&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;IF(_count=1, BLANK(), _count)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the total card visual, try like:&lt;/P&gt;&lt;P&gt;1PlusCountTotal =&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR _table =&lt;/P&gt;&lt;P&gt;ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VALUES(TableName[OrderNumber]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "Count",&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALCULATE(COUNTROWS(TableName))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;COUNTROWS(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;FILTER(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_table,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[Count]&amp;gt;1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 11:54:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-where-count-gt-1-based-on-grouping/m-p/3066105#M106168</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-07T11:54:51Z</dc:date>
    </item>
  </channel>
</rss>

