<?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: Dynamic Tabulate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568058#M159831</link>
    <description>Not clear what you mean by a percent or measure being passed and what you want to do with it.</description>
    <pubDate>Fri, 21 Jun 2019 19:55:20 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-06-21T19:55:20Z</dc:date>
    <item>
      <title>Dynamic Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568057#M159830</link>
      <description>&lt;P&gt;I received a request to a function that feeds in 1 to 4 columns variables from a table and 1 to 4 row variables and creates a tabulate statement from them.&amp;nbsp; This part is easy.&amp;nbsp; Any advice on how to dynamically handle percent of for a measure being passed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there an article that gives an example?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 19:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568057#M159830</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-06-21T19:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568058#M159831</link>
      <description>Not clear what you mean by a percent or measure being passed and what you want to do with it.</description>
      <pubDate>Fri, 21 Jun 2019 19:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568058#M159831</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-21T19:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568059#M159832</link>
      <description>&lt;P&gt;If a user wants to see a column breakout by pct of total rather than a numeric count of a column.&amp;nbsp; Or a user wants to see both.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 19:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568059#M159832</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-06-21T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568062#M159834</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5059"&gt;@DavidPhillips2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If a user wants to see a column breakout by pct of total rather than a numeric count of a column.&amp;nbsp; Or a user wants to see both.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Is "total" a total count or a sum of some VAR variable?&lt;/P&gt;
&lt;P&gt;COLPCTN or COLPCTSUM look like the desired statistics without a more concrete example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 20:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568062#M159834</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-21T20:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568071#M159841</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; TABULATE has keyword statistics ROWPCTSUM, COLPCTSUM and PCTSUM, PAGEPCTSUM, etc, that you use to control the denominator of a percent. If you are prompting them for information, you'd have to ask them what percent they want to see and start with the simple 3:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Even if you are not going to show the Grand Total or the Row Total or the Column Total, I like to make sure that people understand what the keyword statistics are going to produce before I let them pick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If they want anything other than the N, that moves you to needing a VAR statement and a SUM statistic. The percent statistic they get will or should be based on where they expect the 100% to be. This is what I give them to start, something like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_3_diff_percents.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30465i37C6A554A9ED1F3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="_3_diff_percents.png" alt="_3_diff_percents.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That way, they can imagine their own data and where you see the 100 in the percent column indicates which SUM was used as the denominator for the percent calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not a full answer, but a place to start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 20:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568071#M159841</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-21T20:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568073#M159843</link>
      <description>&lt;P&gt;This block is likely what I need.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 20:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dynamic-Tabulate/m-p/568073#M159843</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-06-21T20:29:28Z</dc:date>
    </item>
  </channel>
</rss>

