<?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: Show 6 months of data, total the rest in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4610199#M176469</link>
    <description>&lt;P&gt;Update - the sort column solution above worked!&amp;nbsp; I researched the validation error message I received, and was able to resolve it by doing this:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;Verify whether a program is causing the issue by closing Power BI Desktop, opening Windows Settings &amp;gt; About &amp;gt; Advanced system settings and selecting Environment Variables. Select New under User variables and add variable name WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS with the value --disable-features=RendererCodeIntegrity.&lt;/DIV&gt;&lt;P&gt;Thanks again&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430689" data-lia-user-login="vicky_" class="lia-mention lia-mention-user"&gt;vicky_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 12:30:35 GMT</pubDate>
    <dc:creator>gdaniel</dc:creator>
    <dc:date>2025-03-14T12:30:35Z</dc:date>
    <item>
      <title>Show 6 months of data, total the rest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4607492#M176377</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a Matrix report that show 6 months of data, then totals everything beyond 6 months.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have sucessfully created a calculated column that does this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;_MonthYear =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;"Beyond 6 Months"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[MonthYear]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It works, but displays the months in alphabetical order, not chronological.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to figure out either 1) how to sort the _MonthYear column chronologically, or 2) how to hide columns greater than 6 months out but still keep the Total column.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error I get when trying to sort the _MonthYear column is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;Appreciate any help!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Mar 2025 19:26:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4607492#M176377</guid>
      <dc:creator>gdaniel</dc:creator>
      <dc:date>2025-03-12T19:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show 6 months of data, total the rest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4607592#M176380</link>
      <description>&lt;P&gt;To sort chronologically, you need to create a new integer column. This could be something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Month Sort Column = SWITCH('Calendar'[MonthYear], "Beyond 6 Months", 9999999, FORMAT('Calendar'[MonthYear], "yyyymm") // e.g. Apr-2025 should give you 202504&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;then select your original Month-Year column and sort using the above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, you could try something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table Measure = IF(HASONEVALUE(Calendar[MonthYear]), [Your normal calculation], [Your calculation for the total])&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Mar 2025 21:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4607592#M176380</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2025-03-12T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show 6 months of data, total the rest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4608287#M176394</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="308651" data-lia-user-login="gdaniel" class="lia-mention lia-mention-user"&gt;gdaniel&lt;/a&gt;&amp;nbsp;please try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power Query, add an Index Column to your Calendar table and name it _MonthYearIndex.&lt;BR /&gt;In Data View, select _MonthYear and sort it by _MonthYearIndex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 09:35:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4608287#M176394</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-03-13T09:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show 6 months of data, total the rest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4608915#M176428</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430689" data-lia-user-login="vicky_" class="lia-mention lia-mention-user"&gt;vicky_&lt;/a&gt;&amp;nbsp;,&amp;nbsp; I created a column like this, and it works to create the correct data in the column:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;_Sort2 = &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; 'Calendar'[Date] &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;"999999"&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;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;( 'Calendar'[Date], &lt;/SPAN&gt;&lt;SPAN&gt;"YYYYMM"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;However, when I try to sort my _MonthYear column with this new _Sort2 column, I get a very unhelpful error message&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;I will keep working on this, and post a solution if I find one.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Mar 2025 15:16:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4608915#M176428</guid>
      <dc:creator>gdaniel</dc:creator>
      <dc:date>2025-03-13T15:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show 6 months of data, total the rest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4610199#M176469</link>
      <description>&lt;P&gt;Update - the sort column solution above worked!&amp;nbsp; I researched the validation error message I received, and was able to resolve it by doing this:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;Verify whether a program is causing the issue by closing Power BI Desktop, opening Windows Settings &amp;gt; About &amp;gt; Advanced system settings and selecting Environment Variables. Select New under User variables and add variable name WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS with the value --disable-features=RendererCodeIntegrity.&lt;/DIV&gt;&lt;P&gt;Thanks again&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430689" data-lia-user-login="vicky_" class="lia-mention lia-mention-user"&gt;vicky_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 12:30:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-6-months-of-data-total-the-rest/m-p/4610199#M176469</guid>
      <dc:creator>gdaniel</dc:creator>
      <dc:date>2025-03-14T12:30:35Z</dc:date>
    </item>
  </channel>
</rss>

