<?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: SAS Visual Analytics: How can a cumulative total for two years be displayed in a line chart? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983428#M18930</link>
    <description>&lt;P&gt;Hi TSBruce,&amp;nbsp;That looks wonderful! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_heart_eyes:"&gt;😍&lt;/span&gt;&amp;nbsp;&amp;nbsp;But I can't quite reproduce it yet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created the CAS Table as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data public.test_agg1 (promote=yes);
	set cpm0978.test_agg;
	attrib dyear length=8 format=year.;
	attrib dmonth length=8 format=month.;
	dyear=mdy(month, 1, year);
	dmonth=mdy(month, 1, year);
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="klroesner_0-1770934975670.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113160i919DE005309C4BC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="klroesner_0-1770934975670.png" alt="klroesner_0-1770934975670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Unfortunately, the YTD metric only generates missing values and get a error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="klroesner_1-1770935072663.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113161i97227523D162DB4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="klroesner_1-1770935072663.png" alt="klroesner_1-1770935072663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Error message: "A mix of date references has resulted in missing values being returned for a period calculation. Consider creating the date references by duplicating the data element and then adjusting the properties of the duplicated data element. For example, you can change the format."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Definition:&amp;nbsp;CumulativePeriod(_Sum_, 'value'n, _IgnoreAllTimeFrameFilters_, 'dyear'n, _Inferred_, _ByYear_, 0, 1, _Full_, {Date})&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give me a hint as to what I'm doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking forward to your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Klaus&lt;/P&gt;</description>
    <pubDate>Thu, 12 Feb 2026 22:33:06 GMT</pubDate>
    <dc:creator>klroesner</dc:creator>
    <dc:date>2026-02-12T22:33:06Z</dc:date>
    <item>
      <title>SAS Visual Analytics: How can a cumulative total for two years be displayed in a line chart?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983401#M18928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;we want to display the cumulative totals for the years 2022 and 2023 in a line chart. Unfortunately, this does not work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="klroesner_0-1770905046444.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113151i29A02886BE33E8CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="klroesner_0-1770905046444.png" alt="klroesner_0-1770905046444.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max view of the diagram:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="klroesner_1-1770905046448.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113149i903B1D9E24EFA098/image-size/medium?v=v2&amp;amp;px=400" role="button" title="klroesner_1-1770905046448.png" alt="klroesner_1-1770905046448.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumlative Totals definition (value_agg):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="klroesner_2-1770905046448.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113150i33B3820100F36C96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="klroesner_2-1770905046448.png" alt="klroesner_2-1770905046448.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;. Only when a filter is applied to the year 2022 are the correct values displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="klroesner_3-1770905046451.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113152i44898EF1F33DAF32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="klroesner_3-1770905046451.png" alt="klroesner_3-1770905046451.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can everyone give us a hint as to what we are doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Klaus&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 14:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983401#M18928</guid>
      <dc:creator>klroesner</dc:creator>
      <dc:date>2026-02-12T14:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Analytics: How can a cumulative total for two years be displayed in a line chart?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983406#M18929</link>
      <description>&lt;P&gt;I think you may need to use a Period to Date calculation using the full data (not using the default ToToday)&amp;nbsp; instead of a Cumulative Total.&amp;nbsp; Here is my expression:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;CumulativePeriod&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_Sum_&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;IgnoreAllTimeFrameFilters&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Year'n&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Inferred&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ByYear&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Full&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;And here is my results in a line chart:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cumulative.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113153i9851433650098238/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cumulative.png" alt="Cumulative.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if this gets you what you need.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 15:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983406#M18929</guid>
      <dc:creator>TSBruce</dc:creator>
      <dc:date>2026-02-12T15:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Analytics: How can a cumulative total for two years be displayed in a line chart?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983428#M18930</link>
      <description>&lt;P&gt;Hi TSBruce,&amp;nbsp;That looks wonderful! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_heart_eyes:"&gt;😍&lt;/span&gt;&amp;nbsp;&amp;nbsp;But I can't quite reproduce it yet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created the CAS Table as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data public.test_agg1 (promote=yes);
	set cpm0978.test_agg;
	attrib dyear length=8 format=year.;
	attrib dmonth length=8 format=month.;
	dyear=mdy(month, 1, year);
	dmonth=mdy(month, 1, year);
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="klroesner_0-1770934975670.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113160i919DE005309C4BC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="klroesner_0-1770934975670.png" alt="klroesner_0-1770934975670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Unfortunately, the YTD metric only generates missing values and get a error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="klroesner_1-1770935072663.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113161i97227523D162DB4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="klroesner_1-1770935072663.png" alt="klroesner_1-1770935072663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Error message: "A mix of date references has resulted in missing values being returned for a period calculation. Consider creating the date references by duplicating the data element and then adjusting the properties of the duplicated data element. For example, you can change the format."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Definition:&amp;nbsp;CumulativePeriod(_Sum_, 'value'n, _IgnoreAllTimeFrameFilters_, 'dyear'n, _Inferred_, _ByYear_, 0, 1, _Full_, {Date})&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give me a hint as to what I'm doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking forward to your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Klaus&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 22:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983428#M18930</guid>
      <dc:creator>klroesner</dc:creator>
      <dc:date>2026-02-12T22:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Analytics: How can a cumulative total for two years be displayed in a line chart?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983429#M18931</link>
      <description>By the way we are using SAS Viya 3.5 ...</description>
      <pubDate>Thu, 12 Feb 2026 22:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983429#M18931</guid>
      <dc:creator>klroesner</dc:creator>
      <dc:date>2026-02-12T22:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Analytics: How can a cumulative total for two years be displayed in a line chart?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983441#M18932</link>
      <description>&lt;P&gt;Hello Bruce!&amp;nbsp;A colleague advised me to duplicate the month column and use the Year. format. And what can I say? It works! Bruce, you made our day!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it beautifully demonstrates the power of SAS VA! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 06:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-How-can-a-cumulative-total-for-two-years-be/m-p/983441#M18932</guid>
      <dc:creator>klroesner</dc:creator>
      <dc:date>2026-02-13T06:53:53Z</dc:date>
    </item>
  </channel>
</rss>

