<?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: Month Missing from Crosstab where not data is present and using CumulativePeriod formula in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Month-Missing-from-Crosstab-where-not-data-is-present-and-using/m-p/669251#M14014</link>
    <description>&lt;P&gt;This is a data organization and recognition task.&amp;nbsp; I don't think it will be resolved by a modification of the formula you present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If, in your data, you can generate a dummy record with sales=0 for missing months, probably the sas coding you are using would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, since you have not provided the code, nor representative data in the form of a sample data step, we can't offer advice in the form of sas program statements.&amp;nbsp; I think you will need to help us help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 17:45:07 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2020-07-14T17:45:07Z</dc:date>
    <item>
      <title>Month Missing from Crosstab where not data is present and using CumulativePeriod formula</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Month-Missing-from-Crosstab-where-not-data-is-present-and-using/m-p/669209#M14012</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a cross table that can be drilled down and it has the Sales value for the month and the Actual YTD for the monthly cumulative.&amp;nbsp;However, in Sept there was no Sales, and so no entry for that month. So it’s not showing an Actual YTD for that month either then, in other words September doesn't appear in the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula for&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Actual YTD (€)&lt;SPAN&gt;&amp;nbsp;is&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;CumulativePeriod(_Sum_, Sales,&lt;/STRONG&gt;&lt;STRONG&gt;_IgnoreAllTimeFrameFilters_, 'Date'n, _Inferred_, _ByYear_, 0, 1,&lt;/STRONG&gt;&lt;STRONG&gt;_Full_, {Date})&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we adjust the formula to force an entry for September even is there is no Sales data for that month?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aoife.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 15:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Month-Missing-from-Crosstab-where-not-data-is-present-and-using/m-p/669209#M14012</guid>
      <dc:creator>A_Darcy</dc:creator>
      <dc:date>2020-07-14T15:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Month Missing from Crosstab where not data is present and using CumulativePeriod formula</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Month-Missing-from-Crosstab-where-not-data-is-present-and-using/m-p/669251#M14014</link>
      <description>&lt;P&gt;This is a data organization and recognition task.&amp;nbsp; I don't think it will be resolved by a modification of the formula you present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If, in your data, you can generate a dummy record with sales=0 for missing months, probably the sas coding you are using would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, since you have not provided the code, nor representative data in the form of a sample data step, we can't offer advice in the form of sas program statements.&amp;nbsp; I think you will need to help us help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 17:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Month-Missing-from-Crosstab-where-not-data-is-present-and-using/m-p/669251#M14014</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-07-14T17:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Month Missing from Crosstab where not data is present and using CumulativePeriod formula</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Month-Missing-from-Crosstab-where-not-data-is-present-and-using/m-p/669377#M14017</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/337734"&gt;@A_Darcy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What version are you using? I tried to recreate your issue with VA8.5 and below is the Crosstab I got. Is this different from yours? In your source data does the &lt;FONT face="courier new,courier"&gt;Date&lt;/FONT&gt; variable still have September even though &lt;FONT face="courier new,courier"&gt;Sales&lt;/FONT&gt; doesn't have value in it?&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="Capture.PNG" style="width: 922px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47161i9F970E81F3133F11/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual YTD (€) =&amp;nbsp;&lt;FONT face="courier new,courier"&gt;CumulativePeriod(_Sum_, 'Sales_missing'n,&lt;BR /&gt;_IgnoreAllTimeFrameFilters_, 'Date'n, _Inferred_, _ByYear_, 0, 1,&lt;BR /&gt;_Full_, {Date})&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the data I used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 07:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Month-Missing-from-Crosstab-where-not-data-is-present-and-using/m-p/669377#M14017</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2020-07-15T07:49:28Z</dc:date>
    </item>
  </channel>
</rss>

