<?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: MAX Total Revenue On Card in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Total-Revenue-On-Card/m-p/2289397#M56224</link>
    <description>&lt;P&gt;The measure you've written iterates over each of the rows of 'Test Table' within the filter context and each month is in a separate row of this data table. You haven't told it that you want to aggregate before taking a max.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to iterate over the granularity that you want to aggregate at:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Max Description-Category Revenue =
MAXX (
    SUMMARIZE (
        'Test Table',
        'Test Table'[Description],
        'Test Table'[Category],
        "Rev", SUM ( 'Test Table'[Revenue] )
    ),
    [Rev]
)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 18 Jan 2022 16:45:43 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2022-01-18T16:45:43Z</dc:date>
    <item>
      <title>MAX Total Revenue On Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Total-Revenue-On-Card/m-p/2289286#M56219</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table like below:&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;When the user selects multiple months on Power BI, for example January and February, I show the following:&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;On the card I have to show the Maximum Revenue which is 260,000. As it will be 'Category A' which will be always the maximum, I can also say &lt;EM&gt;Category = 'Category A'&lt;/EM&gt; in the measure. I am using the below measure for the card:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Total Revenue = MAXX('Test Table','Test Table'[Revenue])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it is not showing the aggregated total 260,000 instead it is showing 135,000 which is the maximum for February. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 16:08:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Total-Revenue-On-Card/m-p/2289286#M56219</guid>
      <dc:creator>armchairexpert</dc:creator>
      <dc:date>2022-01-18T16:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Total Revenue On Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Total-Revenue-On-Card/m-p/2289397#M56224</link>
      <description>&lt;P&gt;The measure you've written iterates over each of the rows of 'Test Table' within the filter context and each month is in a separate row of this data table. You haven't told it that you want to aggregate before taking a max.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to iterate over the granularity that you want to aggregate at:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Max Description-Category Revenue =
MAXX (
    SUMMARIZE (
        'Test Table',
        'Test Table'[Description],
        'Test Table'[Category],
        "Rev", SUM ( 'Test Table'[Revenue] )
    ),
    [Rev]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Jan 2022 16:45:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Total-Revenue-On-Card/m-p/2289397#M56224</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-01-18T16:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Total Revenue On Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Total-Revenue-On-Card/m-p/2289414#M56226</link>
      <description>&lt;P&gt;It worked. Thanks!!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 16:52:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Total-Revenue-On-Card/m-p/2289414#M56226</guid>
      <dc:creator>armchairexpert</dc:creator>
      <dc:date>2022-01-18T16:52:26Z</dc:date>
    </item>
  </channel>
</rss>

