<?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 Measure: how to display same MAXX value in a matrix when multiple months are selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-how-to-display-same-MAXX-value-in-a-matrix-when-multiple/m-p/2682756#M80420</link>
    <description>&lt;P&gt;I created a measure called MaxBirths, that would show the highest level of Births for all countries in a matrix. If I select any month on my slicer, the matrix looks perfectly fine:&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;However, if I select multiple months, or all months in a year, it sums them all up like this:&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;If I select 'All months', and the highest births in ASIA were witnessed, for example, in China in May - then that's the number I would like to be displayed for both China and ASIA rows, not the sum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how I could accomplish that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current formula:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MaxBirths = MAXX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Table'[Country]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Table'[Births]&lt;/SPAN&gt;&lt;SPAN&gt; ) ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will appreciate any advice, have spent hours on this!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 21:44:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-04T21:44:14Z</dc:date>
    <item>
      <title>Measure: how to display same MAXX value in a matrix when multiple months are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-how-to-display-same-MAXX-value-in-a-matrix-when-multiple/m-p/2682756#M80420</link>
      <description>&lt;P&gt;I created a measure called MaxBirths, that would show the highest level of Births for all countries in a matrix. If I select any month on my slicer, the matrix looks perfectly fine:&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;However, if I select multiple months, or all months in a year, it sums them all up like this:&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;If I select 'All months', and the highest births in ASIA were witnessed, for example, in China in May - then that's the number I would like to be displayed for both China and ASIA rows, not the sum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how I could accomplish that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current formula:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MaxBirths = MAXX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Table'[Country]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Table'[Births]&lt;/SPAN&gt;&lt;SPAN&gt; ) ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will appreciate any advice, have spent hours on this!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 21:44:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-how-to-display-same-MAXX-value-in-a-matrix-when-multiple/m-p/2682756#M80420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-04T21:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Measure: how to display same MAXX value in a matrix when multiple months are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-how-to-display-same-MAXX-value-in-a-matrix-when-multiple/m-p/2683008#M80424</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MaxBirths = MAXX (Summarize('Table', 'Table'[Country], 'Table[Month] ), CALCULATE ( COUNT ( 'Table'[Births] ) ) )&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 01:41:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-how-to-display-same-MAXX-value-in-a-matrix-when-multiple/m-p/2683008#M80424</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-05T01:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Measure: how to display same MAXX value in a matrix when multiple months are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-how-to-display-same-MAXX-value-in-a-matrix-when-multiple/m-p/2683648#M80459</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;DEFINE 

MEASURE Births[#Births] =
    SUM( Births[Births] )

MEASURE Births[Max #Births] = 
CALCULATE(
    MAXX(
        SUMMARIZE(
            Births,
            Births[Country],
            Births[Period]
        ),
        Births[#Births]
    ),
    ALLSELECTED( Births[Period] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Aug 2022 08:19:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-how-to-display-same-MAXX-value-in-a-matrix-when-multiple/m-p/2683648#M80459</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-05T08:19:02Z</dc:date>
    </item>
  </channel>
</rss>

