<?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 group by summed amounts? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-summed-amounts/m-p/2774769#M86555</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating measures to solve.&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;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customers count by category: =
CALCULATE (
    COUNTROWS ( Customer ),
    FILTER (
        Customer,
        COUNTROWS (
            FILTER (
                Category,
                [Sales amount:] &amp;gt;= Category[Min]
                    &amp;amp;&amp;amp; [Sales amount:] &amp;lt; Category[Max]
            )
        ) &amp;gt;= 1
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Sep 2022 03:14:04 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-09-17T03:14:04Z</dc:date>
    <item>
      <title>How to group by summed amounts?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-summed-amounts/m-p/2774701#M86548</link>
      <description>&lt;P&gt;I'm trying to figure out how take the total sales amount for filtered list of customers, catagorize them (e.g., Large, Medium, Small) and provide a count for those catagories.&lt;/P&gt;&lt;P&gt;For instance, if I want Large &amp;gt;= $100K, Med $25K to $100K , Small under $25K and my table is:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Customer&amp;nbsp; &amp;nbsp; &amp;nbsp; Product&amp;nbsp; &amp;nbsp; &amp;nbsp;Amount&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;================================&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new, courier"&gt;Customer A&amp;nbsp; &amp;nbsp; &amp;nbsp;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$80,000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new, courier"&gt;Customer A&amp;nbsp; &amp;nbsp; &amp;nbsp;XYZ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$40,000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new, courier"&gt;Customer B&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new, courier"&gt;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$20,000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new, courier"&gt;Customer B&amp;nbsp; &amp;nbsp; &amp;nbsp;XYZ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$60,000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new, courier"&gt;Customer c&amp;nbsp; &amp;nbsp; &amp;nbsp;XYZ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $7,000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to produce:&lt;/P&gt;&lt;P&gt;Category&amp;nbsp; &amp;nbsp; &amp;nbsp; Count&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;Large&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;Medium&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Small&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were using Tableau, I would use a CASE statement and a LEVEL OF DETAIL calc, but I can't figure out how to do this with DAX. Also, I'm using Direct Query, so functions like ALLCOLUMNS won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 22:56:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-summed-amounts/m-p/2774701#M86548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-16T22:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to group by summed amounts?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-summed-amounts/m-p/2774769#M86555</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating measures to solve.&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;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customers count by category: =
CALCULATE (
    COUNTROWS ( Customer ),
    FILTER (
        Customer,
        COUNTROWS (
            FILTER (
                Category,
                [Sales amount:] &amp;gt;= Category[Min]
                    &amp;amp;&amp;amp; [Sales amount:] &amp;lt; Category[Max]
            )
        ) &amp;gt;= 1
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 03:14:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-summed-amounts/m-p/2774769#M86555</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-09-17T03:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to group by summed amounts?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-summed-amounts/m-p/2785160#M87266</link>
      <description>&lt;P&gt;This solution breaks the data query out into separate joined datasets. My data is structured like shown above, in a single flat file. As such, this solutions doesn't work as it counts multiple rows for each customer and doesn't aggregate them. I need to keep my original query as to much stuff is already built on it, but I guess I could build new queries to use this solution. I just wish I could do it as is, with different DAX statement.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 21:24:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-summed-amounts/m-p/2785160#M87266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-21T21:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to group by summed amounts?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-summed-amounts/m-p/2785241#M87270</link>
      <description>&lt;P&gt;Actually upon further examination, the solution isn't using the additional tables, but it still doesn't work properly when any filter is applied.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 22:09:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-summed-amounts/m-p/2785241#M87270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-21T22:09:55Z</dc:date>
    </item>
  </channel>
</rss>

