<?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: Need filter to only get the highest selected year Year to Half year formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3261370#M120610</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543178" data-lia-user-login="Invisibleman" class="lia-mention lia-mention-user"&gt;Invisibleman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I couldn't find [&lt;SPAN&gt;Test Revenue Half Year to Date&lt;/SPAN&gt;] in your sample. I think you also can try code as below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Test Revenue Half Year to Date =
IF (
    ISFILTERED ( mapCalendar[Month] ),
    CALCULATE (
        [Revenue (Base) (Selection EUR or USD)],
        FILTER (
            ALL ( mapCalendar ),
            MapCalendar[Date] &amp;lt;= MAXX ( ALLSELECTED ( mapCalendar ), mapCalendar[Date] )
        ),
        VALUES ( mapCalendar[Year Part] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;If this reply still couldn't help you solve your issue please share a sample with the measure you created and show me a screenshot with the result you want. This will make it easier for me to find the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 08:51:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-31T08:51:34Z</dc:date>
    <item>
      <title>Need filter to only get the highest selected year Year to Half year formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3257694#M120359</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my project I need to have the filter for the Year to Half year that is then the half year runing total, like the TotalMTD, TotalQTD &amp;amp; TotalYTD. However, when I am using the TotalMTD, TotalQTD or TotalYTD, by default it will show me, in the Line and Stack Column Chart, only the value of the highest selected year, when I am using only the month in the in the chart. With this Year to Half Year however, it's gives the summarized value for all selected years.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can anyone please help me, that this will work the same way as the TotalMTD, TotalQTD &amp;amp; TotalYTD, so it will then also only show the value of the highest selected year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula that I got from ExcellsFun (YouTube) is;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test Revenue Half Year to Date = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ISFILTERED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mapCalendar&lt;/SPAN&gt;&lt;SPAN&gt;[Month]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &am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&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;See also the test Power BI I created;&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AilbSzpcmSsXghvD1f-7xFkgbUVi?e=T2OzWc" target="_self"&gt;Test HTD&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hans&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 May 2023 08:47:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3257694#M120359</guid>
      <dc:creator>Invisibleman</dc:creator>
      <dc:date>2023-05-29T08:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need filter to only get the highest selected year Year to Half year formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3257867#M120370</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543178" data-lia-user-login="Invisibleman" class="lia-mention lia-mention-user"&gt;Invisibleman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Test Revenue Half Year to Date =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;ISINSCOP(mapCalendar[Month])&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Revenue (Base) (Selection EUR or USD)]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mapCalendar&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;MapCalendar&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mapCalendar&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mapCalendar&lt;/SPAN&gt;&lt;SPAN&gt;[Year Part]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543178" data-lia-user-login="Invisibleman" class="lia-mention lia-mention-user"&gt;Invisibleman&lt;/a&gt;&amp;nbsp;i hope this help you!!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 May 2023 11:19:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3257867#M120370</guid>
      <dc:creator>Mahesh0016</dc:creator>
      <dc:date>2023-05-29T11:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need filter to only get the highest selected year Year to Half year formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3257893#M120374</link>
      <description>&lt;P&gt;Hello Mahesh0016,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the formula, but this doesn't change it, it is still showing the total of all selected years and I want to have to show only the highest selected year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 11:41:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3257893#M120374</guid>
      <dc:creator>Invisibleman196</dc:creator>
      <dc:date>2023-05-29T11:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need filter to only get the highest selected year Year to Half year formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3261370#M120610</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543178" data-lia-user-login="Invisibleman" class="lia-mention lia-mention-user"&gt;Invisibleman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I couldn't find [&lt;SPAN&gt;Test Revenue Half Year to Date&lt;/SPAN&gt;] in your sample. I think you also can try code as below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Test Revenue Half Year to Date =
IF (
    ISFILTERED ( mapCalendar[Month] ),
    CALCULATE (
        [Revenue (Base) (Selection EUR or USD)],
        FILTER (
            ALL ( mapCalendar ),
            MapCalendar[Date] &amp;lt;= MAXX ( ALLSELECTED ( mapCalendar ), mapCalendar[Date] )
        ),
        VALUES ( mapCalendar[Year Part] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;If this reply still couldn't help you solve your issue please share a sample with the measure you created and show me a screenshot with the result you want. This will make it easier for me to find the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 08:51:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3261370#M120610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-31T08:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need filter to only get the highest selected year Year to Half year formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3262397#M120702</link>
      <description>&lt;P&gt;Hello Rico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, but this formula is showing the total of the half year and not the highest selected year and then the total per month, like it also does with the MTD, QTD &amp;amp; YTD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I am sorry, but it seems I had a link to the wrong file here's the correct file&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AilbSzpcmSsXgl9nEreDAikT_4KH?e=9ssHin" target="_self"&gt;Correct file for Half Year to date&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure I am using is;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Revenue Half Year to Date = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SP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p; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mapCalendar&lt;/SPAN&gt;&lt;SPAN&gt;[Year Part]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And the result I want is,&amp;nbsp;&lt;img /&gt;. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And regardless the years that are selected, it should only show those value in the chart for the highest selected year. And the year, should not be needed to add in the X-Axis, like it is also not needed with MTD, QTD &amp;amp; YTD.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hans&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 May 2023 17:05:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-filter-to-only-get-the-highest-selected-year-Year-to-Half/m-p/3262397#M120702</guid>
      <dc:creator>Invisibleman</dc:creator>
      <dc:date>2023-05-31T17:05:56Z</dc:date>
    </item>
  </channel>
</rss>

