<?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 Data label only for Max Value with Time Aggregation parameter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4397938#M174617</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to show only one data label with Max value for certain Time aggregation parameter?&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 am using following parameter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Time Aggregation = {
    ("Year", NAMEOF('dimCalendar'[Year]), 0),
    ("Quarter", NAMEOF('dimCalendar'[Quarter]), 1),
    ("Month", NAMEOF('dimCalendar'[Month]), 2)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1zX0aBAOcYPi3IIF0-N2Mh-0_j-f-as3D/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1zX0aBAOcYPi3IIF0-N2Mh-0_j-f-as3D/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 09:41:30 GMT</pubDate>
    <dc:creator>Pk8524</dc:creator>
    <dc:date>2025-02-06T09:41:30Z</dc:date>
    <item>
      <title>Data label only for Max Value with Time Aggregation parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4397938#M174617</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to show only one data label with Max value for certain Time aggregation parameter?&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 am using following parameter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Time Aggregation = {
    ("Year", NAMEOF('dimCalendar'[Year]), 0),
    ("Quarter", NAMEOF('dimCalendar'[Quarter]), 1),
    ("Month", NAMEOF('dimCalendar'[Month]), 2)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1zX0aBAOcYPi3IIF0-N2Mh-0_j-f-as3D/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1zX0aBAOcYPi3IIF0-N2Mh-0_j-f-as3D/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 09:41:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4397938#M174617</guid>
      <dc:creator>Pk8524</dc:creator>
      <dc:date>2025-02-06T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data label only for Max Value with Time Aggregation parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4398136#M174621</link>
      <description>&lt;P&gt;You can create a new measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Sales Data Label = 
VAR CurrentValue = [Total Sales]
VAR MaxValue = SWITCH(
    SELECTEDVALUE( 'Time Aggregation'[Time Aggregation Order] ),
    0, -- Year 
    MAXX(
        ALLSELECTED( dimCalendar[Year] ),
        [Total Sales]
    ),
    1, -- Quarter 
    MAXX(
        ALLSELECTED( dimCalendar[Quarter] ),
        CALCULATE( [Total Sales], REMOVEFILTERS( dimCalendar[QuarterNr] ) )
    ),
    2, -- Month 
    MAXX(
        ALLSELECTED( dimCalendar[Month] ),
        CALCULATE( [Total Sales], REMOVEFILTERS( dimCalendar[MonthNr] ) )
    )
)
VAR Result = IF( CurrentValue = MaxValue, CurrentValue )
RETURN Result
&lt;/LI-CODE&gt;
&lt;P&gt;and use that as the value for the data labels on the chart visual.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 12:12:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4398136#M174621</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-02-06T12:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data label only for Max Value with Time Aggregation parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4398241#M174626</link>
      <description>&lt;P&gt;why it is needed to remove filters on quarter nr?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MAXX(
        ALLSELECTED( dimCalendar[Quarter] ),
        CALCULATE( [Total Sales], REMOVEFILTERS( dimCalendar[QuarterNr] ) )
    ),&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 13:32:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4398241#M174626</guid>
      <dc:creator>Pk8524</dc:creator>
      <dc:date>2025-02-06T13:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data label only for Max Value with Time Aggregation parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4398242#M174627</link>
      <description>&lt;P&gt;why it is needed to remove filters on quarternr in case of quarter?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 13:33:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4398242#M174627</guid>
      <dc:creator>Pk8524</dc:creator>
      <dc:date>2025-02-06T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data label only for Max Value with Time Aggregation parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4398343#M174631</link>
      <description>&lt;P&gt;That column is used to sort the Quarter column, same for Month number and month. Because they are used for sorting they are included in the underlying query generated for the visual, and are therefore in the filter context when the measure is calculated for a given month / quarter. We need to remove those filters so that we get the right total.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 14:27:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-label-only-for-Max-Value-with-Time-Aggregation-parameter/m-p/4398343#M174631</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-02-06T14:27:44Z</dc:date>
    </item>
  </channel>
</rss>

