<?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: Wanted Crosstab between three variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483271#M125314</link>
    <description>&lt;P&gt;What do you mean by "i wanted&amp;nbsp;actual volume"? Can you post test data and the output required?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2018 05:11:23 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2018-08-02T05:11:23Z</dc:date>
    <item>
      <title>Wanted Crosstab between three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483266#M125310</link>
      <description>&lt;P&gt;Hello Sir/Madam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data set having three variable&amp;nbsp;two variables are&amp;nbsp;numeric&amp;nbsp;and third is date variable which is in MONYY. format.&lt;/P&gt;&lt;P&gt;I wanted to write a code for&lt;/P&gt;&lt;P&gt;Proc freq data = ;&lt;BR /&gt;format&amp;nbsp;Date&amp;nbsp;MONYY.;&lt;BR /&gt;tables (NUM QTY) * Date/NOCUM NOFREQ nocol norow;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i am running this code output is generating but that output is giving me frequency and i wanted&amp;nbsp;actual volume for each NUM variable against Date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please&amp;nbsp;correct my code or any additional step i wanted to add in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 04:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483266#M125310</guid>
      <dc:creator>nishSAS</dc:creator>
      <dc:date>2018-08-02T04:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Wanted Crosstab between three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483271#M125314</link>
      <description>&lt;P&gt;What do you mean by "i wanted&amp;nbsp;actual volume"? Can you post test data and the output required?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 05:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483271#M125314</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-08-02T05:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Wanted Crosstab between three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483279#M125316</link>
      <description>&lt;P&gt;You probably want proc tabulate, something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc&amp;nbsp;tabulate ;
  format&amp;nbsp;DATE monyy.;
  class&amp;nbsp;NUM QTY DATE;
  table DATE, (NUM QTY)*n=' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Aug 2018 05:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483279#M125316</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-02T05:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Wanted Crosstab between three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483458#M125363</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/224236"&gt;@nishSAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello Sir/Madam,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data set having three variable&amp;nbsp;two variables are&amp;nbsp;numeric&amp;nbsp;and third is date variable which is in MONYY. format.&lt;/P&gt;
&lt;P&gt;I wanted to write a code for&lt;/P&gt;
&lt;P&gt;Proc freq data = ;&lt;BR /&gt;format&amp;nbsp;Date&amp;nbsp;MONYY.;&lt;BR /&gt;tables (NUM QTY) * Date/NOCUM NOFREQ nocol norow;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i am running this code output is generating but that output is giving me frequency and i wanted&amp;nbsp;actual volume for each NUM variable against Date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please&amp;nbsp;correct my code or any additional step i wanted to add in it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THanks,&lt;/P&gt;
&lt;P&gt;Nishant&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The code you posted will create percent values, not frequencies.&lt;/P&gt;
&lt;P&gt;You need to describe what you think you mean by "volumne" as Proc Freq will generate counts, percentages, cumulative counts and percentages (which you have turned off)&amp;nbsp; row and column percentages(also turned off) and a number of statistical tests (not requested). But "Volumn" needs clarification.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 16:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483458#M125363</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-02T16:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wanted Crosstab between three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483598#M125417</link>
      <description>&lt;P&gt;Maybe yo mean sum when you say volume?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;tabulate&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DATE&lt;/SPAN&gt; monyy&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt; NUM QTY &lt;SPAN class="token function"&gt;DATE&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token statement"&gt;table&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DATE&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;NUM QTY&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*sum&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;' '&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 21:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483598#M125417</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-02T21:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Wanted Crosstab between three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483705#M125475</link>
      <description>&lt;P&gt;Thanks ChrisNZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have used proc Report and i&amp;nbsp;got what i&amp;nbsp;was expecting. Below is the syntax for&amp;nbsp;review&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data = tab;&lt;BR /&gt;column NDC Date, QTY;&lt;BR /&gt;define NDC / display Group;&lt;BR /&gt;define Date / order order=internal;&lt;BR /&gt;define QTY / sum;&lt;BR /&gt;define Date / across;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again. Looking forward for more assistance in future &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 08:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wanted-Crosstab-between-three-variables/m-p/483705#M125475</guid>
      <dc:creator>nishSAS</dc:creator>
      <dc:date>2018-08-03T08:58:40Z</dc:date>
    </item>
  </channel>
</rss>

