<?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 Proc Tabulate: Wrong totals and Percent Totals in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125328#M34430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;Hi all—&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;I’m having issues getting the correct totals and percentages in Proc Tabulate tables. I can’t seem to figure out how to negotiate the code to fix the issue (my code is below the two tables). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;These are the tables I'm generating now with the current vision of my code. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 532px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl48" colspan="9" height="21" width="532"&gt; INDICATOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl49" colspan="9" height="21" width="532"&gt; Sub-indicator A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl47" colspan="7" height="23" width="443"&gt;Q16a: Is there a recorded available during the 6 month review period?&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="20" style="border-top: none;" width="122"&gt;Count&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="94"&gt;Yes&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="86"&gt;No&lt;/TD&gt;&lt;TD class="xl41" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="69"&gt;Count Total&lt;/TD&gt;&lt;TD class="xl44" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="72"&gt;% Total&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="20" width="122"&gt;Overall %&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl30" height="20" width="122"&gt; &lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="54"&gt;%&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="46"&gt;%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" scope="row" style="border-top: none;" width="122"&gt;Program 1&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;5&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;11%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="46"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;5&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="72"&gt;11%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" scope="row" style="border-top: none;" width="122"&gt;Program 2&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;8&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;18%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="46"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;8&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="72"&gt;18%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program 3&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;16&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;37%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;2%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;17&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="72"&gt;39%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program 4&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;12&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;27%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;2%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;13&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="72"&gt;30%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl33" height="21" scope="row" style="border-top: none;" width="122"&gt;Overall Agency Totals&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="40"&gt;41&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="54"&gt;95%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="40"&gt;2&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="46"&gt;4%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="69"&gt;43&lt;/TD&gt;&lt;TD class="xl36" style="border-top: none; border-left: none;" width="72"&gt;100%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl47" colspan="9" height="23" width="532"&gt;Q16a: Is there a recorded available? &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="20" style="border-top: none;" width="122"&gt;Count&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="94"&gt;Yes&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="86"&gt;No&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="141"&gt;Skipped&lt;/TD&gt;&lt;TD class="xl41" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="44"&gt;Count Total&lt;/TD&gt;&lt;TD class="xl44" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="45"&gt;% Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="20" width="122"&gt;Overall %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl30" height="20" width="122"&gt; &lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="54"&gt;%&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="46"&gt;%&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="69"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="72"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" scope="row" style="border-top: none;" width="122"&gt;Program 1&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;5&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;1%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="46"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="72"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="44"&gt;5&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="45"&gt;1%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program2&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;7&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;1%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="72"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="44"&gt;8&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="45"&gt;1%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program 3&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;15&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;3%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="72"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="44"&gt;17&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="45"&gt;3%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program 4&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;11&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;2%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="72"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="44"&gt;13&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="45"&gt;3%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl33" height="21" scope="row" style="border-top: none;" width="122"&gt;Overall Agency Totals&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="40"&gt;38&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="54"&gt;8%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="40"&gt;3&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="46"&gt;0%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="69"&gt;2&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="72"&gt;0%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="44"&gt;43&lt;/TD&gt;&lt;TD class="xl36" style="border-top: none; border-left: none;" width="45"&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Arial;"&gt;Below is what I need instead. You will notice the response percentages are being calculated by dividing the Overall Agency Totals’ % Total. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 532px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl45" colspan="9" height="21" width="532"&gt; INDICATOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl46" colspan="9" height="21" width="532"&gt; Sub-indicator A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl44" colspan="7" height="23" width="443"&gt;Q16a: Is there a recorded available? &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="20" scope="col" style="border-top: none;" width="122"&gt;Count&lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="94"&gt;Yes&lt;BR /&gt; &lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="86"&gt;No&lt;/TD&gt;&lt;TD class="xl38" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="69"&gt;Count Total&lt;/TD&gt;&lt;TD class="xl41" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="72"&gt;% Total&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="20" width="122"&gt;Overall %&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl30" height="20" width="122"&gt; &lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="54"&gt;%&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="46"&gt;%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" scope="row" style="border-top: none;" width="122"&gt;Program 1&lt;/TD&gt;&lt;TD class="xl47" style="border-top: none; border-left: none;" width="40"&gt;5&lt;/TD&gt;&lt;TD class="xl53"&gt;&lt;STRONG&gt;11.6%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl52" style="border-top: none;" width="40"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;0.0%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;5&lt;/TD&gt;&lt;TD class="xl54" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" scope="row" style="border-top: none;" width="122"&gt;Program 2&lt;/TD&gt;&lt;TD class="xl47" style="border-top: none; border-left: none;" width="40"&gt;8&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;18.6%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl52" style="border-top: none;" width="40"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;0.0%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;8&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="72"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program 3&lt;/TD&gt;&lt;TD class="xl47" style="border-top: none; border-left: none;" width="40"&gt;16&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;37.2%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl49" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;2.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;17&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="72"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program 4&lt;/TD&gt;&lt;TD class="xl47" style="border-top: none; border-left: none;" width="40"&gt;12&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;27.9%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl49" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;2.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;13&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="72"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl32" height="21" scope="row" style="border-top: none;" width="122"&gt;Overall Agency Totals&lt;/TD&gt;&lt;TD class="xl48" style="border-top: none; border-left: none;" width="40"&gt;41&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;95.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl50" style="border-top: none;" width="40"&gt;2&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;4.7%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl55" style="border-top: none; border-left: none;" width="69"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;43&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="72"&gt;1&lt;STRONG&gt;00%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl44" colspan="9" height="23" width="532"&gt;Q17: Is the&amp;nbsp; assessment in the most recent ?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="20" scope="col" style="border-top: none;" width="122"&gt;Count&lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="94"&gt;Yes&lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="86"&gt;No&lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="141"&gt;Skipped&lt;/TD&gt;&lt;TD class="xl38" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="44"&gt;Count Total&lt;/TD&gt;&lt;TD class="xl41" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="45"&gt;% Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="20" width="122"&gt;Overall %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl30" height="20" width="122"&gt; &lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="54"&gt;%&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="46"&gt;%&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="69"&gt;Count&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="72"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" scope="row" style="border-top: none;" width="122"&gt;Program 1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="40"&gt;5&lt;/TD&gt;&lt;TD class="xl53"&gt;&lt;STRONG&gt;11.6%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none;" width="40"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;0.0%&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;0.0%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="44"&gt;5&lt;/TD&gt;&lt;TD class="xl54" style="border-top: none; border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program2&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="40"&gt;7&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;16.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;2.3%&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;0.0%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="44"&gt;8&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program 3&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="40"&gt;15&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;34.9%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;2.3%&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;2.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="44"&gt;17&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program 4&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="40"&gt;11&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;25.6%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;2.3%&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;2.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="44"&gt;13&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl32" height="21" scope="row" style="border-top: none;" width="122"&gt;Overall Agency Totals&lt;/TD&gt;&lt;TD class="xl33" style="border-top: none; border-left: none;" width="40"&gt;38&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;88.4%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33" style="border-top: none;" width="40"&gt;3&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;7.0%&lt;/TD&gt;&lt;TD class="xl33" style="border-top: none; border-left: none;" width="69"&gt;2&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;4.7%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl55" style="border-top: none; border-left: none;" width="44"&gt;&lt;STRONG style="color: #ff0000;"&gt;43&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;tabulate&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=have&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(where=(question in(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Q16' 'Q17'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;amp; Program_Type in(&amp;amp;program)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=[background=white foreground=black&amp;nbsp; font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10.5&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt just=c cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;title1&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"^S={font_face='Arial Narrow' font_weight=bold font_size=12pt} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;INDICATOR"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;title2&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"^S={font_face='Arial Narrow' font_weight=bold font_size=12pt} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;Sub-indicator A"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; question program_name &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_weight=bold font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt cellheight=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;50&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; }; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Responce1 / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;formatted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_weight=bold font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;classlev&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; question &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=[font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;classlev&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; program_name &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in cellheight=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.4&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in just=l}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;classlev&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Responce1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt&amp;nbsp; }; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Question=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;program_name =&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;all=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Overall Agency Totals'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Responce1=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;*(n=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Count'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;best8.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; pctn=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'%'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;p.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;n=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Count Total'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; pctn=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'% Total'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; *&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;p.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;row&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;float&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;box&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Count^{newline 1}Overall^_%'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt font_weight=bold cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in}}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; question &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$ques.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; responce1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$resp.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;keyword&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;n&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;pctn&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; / &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=[font_weight=bold foreground=black&amp;nbsp; font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt just=c]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;keyword&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;all&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=[font_weight=bold foreground=black&amp;nbsp; font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt just=l]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;The percentage format is defined with this code: &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc format ;&lt;/P&gt;&lt;P&gt;picture p&lt;/P&gt;&lt;P&gt;&amp;nbsp; low-high='0099%';&lt;/P&gt;&lt;P&gt; run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial;"&gt;Any help is &lt;/SPAN&gt;greatly is greatly appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2012 15:45:50 GMT</pubDate>
    <dc:creator>Mgarret</dc:creator>
    <dc:date>2012-09-19T15:45:50Z</dc:date>
    <item>
      <title>Proc Tabulate: Wrong totals and Percent Totals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125328#M34430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;Hi all—&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;I’m having issues getting the correct totals and percentages in Proc Tabulate tables. I can’t seem to figure out how to negotiate the code to fix the issue (my code is below the two tables). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;These are the tables I'm generating now with the current vision of my code. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 532px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl48" colspan="9" height="21" width="532"&gt; INDICATOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl49" colspan="9" height="21" width="532"&gt; Sub-indicator A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl47" colspan="7" height="23" width="443"&gt;Q16a: Is there a recorded available during the 6 month review period?&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="20" style="border-top: none;" width="122"&gt;Count&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="94"&gt;Yes&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="86"&gt;No&lt;/TD&gt;&lt;TD class="xl41" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="69"&gt;Count Total&lt;/TD&gt;&lt;TD class="xl44" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="72"&gt;% Total&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="20" width="122"&gt;Overall %&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl30" height="20" width="122"&gt; &lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="54"&gt;%&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="46"&gt;%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" scope="row" style="border-top: none;" width="122"&gt;Program 1&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;5&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;11%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="46"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;5&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="72"&gt;11%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" scope="row" style="border-top: none;" width="122"&gt;Program 2&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;8&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;18%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="46"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;8&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="72"&gt;18%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program 3&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;16&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;37%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;2%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;17&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="72"&gt;39%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program 4&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;12&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;27%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;2%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;13&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="72"&gt;30%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl33" height="21" scope="row" style="border-top: none;" width="122"&gt;Overall Agency Totals&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="40"&gt;41&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="54"&gt;95%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="40"&gt;2&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="46"&gt;4%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="69"&gt;43&lt;/TD&gt;&lt;TD class="xl36" style="border-top: none; border-left: none;" width="72"&gt;100%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl47" colspan="9" height="23" width="532"&gt;Q16a: Is there a recorded available? &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="20" style="border-top: none;" width="122"&gt;Count&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="94"&gt;Yes&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="86"&gt;No&lt;/TD&gt;&lt;TD class="xl37" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="141"&gt;Skipped&lt;/TD&gt;&lt;TD class="xl41" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="44"&gt;Count Total&lt;/TD&gt;&lt;TD class="xl44" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="45"&gt;% Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="20" width="122"&gt;Overall %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl30" height="20" width="122"&gt; &lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="54"&gt;%&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="46"&gt;%&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="69"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="72"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" scope="row" style="border-top: none;" width="122"&gt;Program 1&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;5&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;1%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="46"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="72"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="44"&gt;5&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="45"&gt;1%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program2&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;7&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;1%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="72"&gt;.&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="44"&gt;8&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="45"&gt;1%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program 3&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;15&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;3%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="72"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="44"&gt;17&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="45"&gt;3%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="20" style="border-top: none;" width="122"&gt;Program 4&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;11&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="54"&gt;2%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="46"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="69"&gt;1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="72"&gt;0%&lt;/TD&gt;&lt;TD class="xl26" style="border-top: none; border-left: none;" width="44"&gt;13&lt;/TD&gt;&lt;TD class="xl32" style="border-top: none; border-left: none;" width="45"&gt;3%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl33" height="21" scope="row" style="border-top: none;" width="122"&gt;Overall Agency Totals&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="40"&gt;38&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="54"&gt;8%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="40"&gt;3&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="46"&gt;0%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="69"&gt;2&lt;/TD&gt;&lt;TD class="xl35" style="border-top: none; border-left: none;" width="72"&gt;0%&lt;/TD&gt;&lt;TD class="xl34" style="border-top: none; border-left: none;" width="44"&gt;43&lt;/TD&gt;&lt;TD class="xl36" style="border-top: none; border-left: none;" width="45"&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Arial;"&gt;Below is what I need instead. You will notice the response percentages are being calculated by dividing the Overall Agency Totals’ % Total. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 532px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl45" colspan="9" height="21" width="532"&gt; INDICATOR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl46" colspan="9" height="21" width="532"&gt; Sub-indicator A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl44" colspan="7" height="23" width="443"&gt;Q16a: Is there a recorded available? &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="20" scope="col" style="border-top: none;" width="122"&gt;Count&lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="94"&gt;Yes&lt;BR /&gt; &lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="86"&gt;No&lt;/TD&gt;&lt;TD class="xl38" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="69"&gt;Count Total&lt;/TD&gt;&lt;TD class="xl41" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="72"&gt;% Total&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="20" width="122"&gt;Overall %&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl30" height="20" width="122"&gt; &lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" scope="col" style="border-top: none; border-left: none;" width="54"&gt;%&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="46"&gt;%&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" scope="row" style="border-top: none;" width="122"&gt;Program 1&lt;/TD&gt;&lt;TD class="xl47" style="border-top: none; border-left: none;" width="40"&gt;5&lt;/TD&gt;&lt;TD class="xl53"&gt;&lt;STRONG&gt;11.6%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl52" style="border-top: none;" width="40"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;0.0%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;5&lt;/TD&gt;&lt;TD class="xl54" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" scope="row" style="border-top: none;" width="122"&gt;Program 2&lt;/TD&gt;&lt;TD class="xl47" style="border-top: none; border-left: none;" width="40"&gt;8&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;18.6%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl52" style="border-top: none;" width="40"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;0.0%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;8&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="72"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program 3&lt;/TD&gt;&lt;TD class="xl47" style="border-top: none; border-left: none;" width="40"&gt;16&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;37.2%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl49" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;2.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;17&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="72"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program 4&lt;/TD&gt;&lt;TD class="xl47" style="border-top: none; border-left: none;" width="40"&gt;12&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;27.9%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl49" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;2.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;13&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="72"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl32" height="21" scope="row" style="border-top: none;" width="122"&gt;Overall Agency Totals&lt;/TD&gt;&lt;TD class="xl48" style="border-top: none; border-left: none;" width="40"&gt;41&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;95.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl50" style="border-top: none;" width="40"&gt;2&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;&lt;STRONG&gt;4.7%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl55" style="border-top: none; border-left: none;" width="69"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;43&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="72"&gt;1&lt;STRONG&gt;00%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;TD class="xl24"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl44" colspan="9" height="23" width="532"&gt;Q17: Is the&amp;nbsp; assessment in the most recent ?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="20" scope="col" style="border-top: none;" width="122"&gt;Count&lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="94"&gt;Yes&lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="86"&gt;No&lt;/TD&gt;&lt;TD class="xl34" colspan="2" rowspan="2" scope="colgroup" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="141"&gt;Skipped&lt;/TD&gt;&lt;TD class="xl38" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="44"&gt;Count Total&lt;/TD&gt;&lt;TD class="xl41" rowspan="3" scope="col" style="border-bottom: .5pt solid black; border-top: none;" width="45"&gt;% Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="20" width="122"&gt;Overall %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl30" height="20" width="122"&gt; &lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="54"&gt;%&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="40"&gt;Count&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="46"&gt;%&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="69"&gt;Count&lt;/TD&gt;&lt;TD class="xl26" scope="col" style="border-top: none; border-left: none;" width="72"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" scope="row" style="border-top: none;" width="122"&gt;Program 1&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="40"&gt;5&lt;/TD&gt;&lt;TD class="xl53"&gt;&lt;STRONG&gt;11.6%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none;" width="40"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;0.0%&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;0.0%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="44"&gt;5&lt;/TD&gt;&lt;TD class="xl54" style="border-top: none; border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program2&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="40"&gt;7&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;16.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;2.3%&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;0&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;0.0%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="44"&gt;8&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program 3&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="40"&gt;15&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;34.9%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;2.3%&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;2.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="44"&gt;17&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="21" style="border-top: none;" width="122"&gt;Program 4&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="40"&gt;11&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;25.6%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none;" width="40"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;2.3%&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="69"&gt;1&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;2.3%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-top: none; border-left: none;" width="44"&gt;13&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl32" height="21" scope="row" style="border-top: none;" width="122"&gt;Overall Agency Totals&lt;/TD&gt;&lt;TD class="xl33" style="border-top: none; border-left: none;" width="40"&gt;38&lt;/TD&gt;&lt;TD class="xl53" style="border-top: none;"&gt;&lt;STRONG&gt;88.4%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33" style="border-top: none;" width="40"&gt;3&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="46"&gt;7.0%&lt;/TD&gt;&lt;TD class="xl33" style="border-top: none; border-left: none;" width="69"&gt;2&lt;/TD&gt;&lt;TD class="xl51" style="border-top: none; border-left: none;" width="72"&gt;&lt;STRONG&gt;4.7%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl55" style="border-top: none; border-left: none;" width="44"&gt;&lt;STRONG style="color: #ff0000;"&gt;43&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl54" style="border-left: none;" width="45"&gt;&lt;STRONG&gt;100%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;tabulate&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=have&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(where=(question in(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Q16' 'Q17'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;amp; Program_Type in(&amp;amp;program)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=[background=white foreground=black&amp;nbsp; font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10.5&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt just=c cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;title1&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"^S={font_face='Arial Narrow' font_weight=bold font_size=12pt} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;INDICATOR"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;title2&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"^S={font_face='Arial Narrow' font_weight=bold font_size=12pt} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;Sub-indicator A"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; question program_name &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_weight=bold font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt cellheight=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;50&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; }; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Responce1 / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;formatted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_weight=bold font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;classlev&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; question &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=[font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;classlev&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; program_name &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in cellheight=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.4&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in just=l}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;classlev&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Responce1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt&amp;nbsp; }; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Question=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;program_name =&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;all=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Overall Agency Totals'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Responce1=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;*(n=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Count'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;best8.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; pctn=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'%'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;p.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;n=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Count Total'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; pctn=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'% Total'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; *&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;p.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;row&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;float&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;box&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Count^{newline 1}Overall^_%'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;={font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt font_weight=bold cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.6&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in}}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; question &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$ques.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; responce1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$resp.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;keyword&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;n&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;pctn&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; / &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=[font_weight=bold foreground=black&amp;nbsp; font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt just=c]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;keyword&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;all&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=[font_weight=bold foreground=black&amp;nbsp; font_face=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Arial Narrow'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt just=l]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: white; font-family: arial, helvetica, sans-serif; background-repeat: initial initial; background-position: initial initial;"&gt;The percentage format is defined with this code: &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc format ;&lt;/P&gt;&lt;P&gt;picture p&lt;/P&gt;&lt;P&gt;&amp;nbsp; low-high='0099%';&lt;/P&gt;&lt;P&gt; run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial;"&gt;Any help is &lt;/SPAN&gt;greatly is greatly appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 15:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125328#M34430</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2012-09-19T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate: Wrong totals and Percent Totals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125329#M34431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mgarret,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are a couple of items to consider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a place after the decimal point, include it in your picture format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;picture p low-high = '009.9%';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC TABULATE lets you specify a denominator when computing a PCTN statistic.&amp;nbsp; But it's something you should read about and play with to get a feel for.&amp;nbsp; Basically, you'll be adding your denominator definition within the TABLE statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pctn&amp;lt;denominator definition&amp;gt;='% Total'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get missing values to print out as 0, I'm not sure.&amp;nbsp; There is a way to get missing values to print as 0, but that won't be good enough.&amp;nbsp; It won't print the % sign, and the 0 may not line up with other numbers in the column.&amp;nbsp; The solution may lie with a preloaded format, but that would take some experimenting and testing as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry not to have full answers, but this will at least get you started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 16:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125329#M34431</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-09-19T16:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate: Wrong totals and Percent Totals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125330#M34432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to get your wanted display for count and percent when missing is to add missing to your P format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;. = '0.0%' (noedit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and similar for a new count format to use with n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;picture c&lt;/P&gt;&lt;P&gt;. = '0' (noedit)&lt;/P&gt;&lt;P&gt;low - high = '00000009'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure but I think instead of&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;n=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Count Total'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; pctn=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'% Total'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; *&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;p.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may be looking for&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;n=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Count Total'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; rowpctn=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'% Total'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; *&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;p.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 17:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125330#M34432</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-09-19T17:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate: Wrong totals and Percent Totals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125331#M34433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC TABULATE has many ways to calculate a percentage. You hardly need to specify a denominator definition anymore with these available:&lt;/P&gt;&lt;P&gt;PCTN/PCTSUM&lt;/P&gt;&lt;P&gt;ROWPCTN/ROWPCTSUM&lt;/P&gt;&lt;P&gt;COLPCTN/COLPCTSUM&lt;/P&gt;&lt;P&gt;PAGEPCTN/PAGEPCTSUM&lt;/P&gt;&lt;P&gt;REPPCTN/REPPCTSUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In addition percents can be impacted with BY group processing. PROC TABULATE treats each BY group as a separate entity, so in some instances, BY group processing will give you what you want, as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The TABULATE documentation has some good examples of using the different percent keyword statistics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 18:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125331#M34433</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-09-19T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate: Wrong totals and Percent Totals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125332#M34434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I needed. Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 19:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Wrong-totals-and-Percent-Totals/m-p/125332#M34434</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2012-09-19T19:41:02Z</dc:date>
    </item>
  </channel>
</rss>

