<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PROC REPORT - Add calculated row in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718270#M222251</link>
    <description>&lt;P&gt;Code currently using as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 15:23:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-02-10T15:23:06Z</dc:date>
    <item>
      <title>PROC REPORT - Add calculated row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718197#M222220</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a report with proc report.&lt;/P&gt;&lt;P&gt;Per day, I have parcels in and out. Some packages have deadlines to respect (priority 1 ...).&amp;nbsp;By priority, I count the number of packets processed within the time limit and those that did not respect the time limit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the "break after" function to get the totals by week.&lt;/P&gt;&lt;P&gt;I would like to add a line (under the totals per week), in yellow on the photo, allowing to calculate the percentages by priority.&lt;/P&gt;&lt;P&gt;For example, 58,82% = 10 / (10+7)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is-it possible with the proc report ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Charlotte37_0-1612957833447.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54544i1A4AA6D3CFF07E7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Charlotte37_0-1612957833447.png" alt="Charlotte37_0-1612957833447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 11:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718197#M222220</guid>
      <dc:creator>Charlotte37</dc:creator>
      <dc:date>2021-02-10T11:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - Add calculated row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718199#M222222</link>
      <description>&lt;P&gt;Yes. Post sample data to get a usable code answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 12:02:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718199#M222222</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-02-10T12:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - Add calculated row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718223#M222233</link>
      <description>&lt;P&gt;An example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA test;&lt;BR /&gt;LENGTH&lt;BR /&gt;Priorite $ 10&lt;BR /&gt;Date 8&lt;BR /&gt;semaine $20.&lt;BR /&gt;OK 8&lt;BR /&gt;KO 8;&lt;BR /&gt;FORMAT&lt;BR /&gt;Priorite $CHAR10.&lt;BR /&gt;Date DDMMYY10.&lt;BR /&gt;semaine $20.&lt;BR /&gt;OK 8.&lt;BR /&gt;KO 8.;&lt;BR /&gt;INFORMAT&lt;BR /&gt;Priorite $CHAR10.&lt;BR /&gt;Date DDMMYY10.&lt;BR /&gt;semaine $20.&lt;BR /&gt;OK 8.&lt;BR /&gt;KO 8.;&lt;BR /&gt;INPUT&lt;BR /&gt;Priorite : $CHAR10.&lt;BR /&gt;Date : DDMMYY10.&lt;BR /&gt;semaine : $20.&lt;BR /&gt;OK : 8.&lt;BR /&gt;KO : 8.;&lt;BR /&gt;CARDS;&lt;BR /&gt;P1 08/02/2021 6 1 0&lt;BR /&gt;P1 08/02/2021 6 1 0&lt;BR /&gt;P1 08/02/2021 6 0 1&lt;BR /&gt;P1 08/02/2021 6 1 0&lt;BR /&gt;P1 08/02/2021 6 0 1&lt;BR /&gt;P1 08/02/2021 6 1 0&lt;BR /&gt;P2 08/02/2021 6 0 1&lt;BR /&gt;P2 08/02/2021 6 1 0&lt;BR /&gt;P2 08/02/2021 6 1 0&lt;BR /&gt;P2 08/02/2021 6 1 0&lt;BR /&gt;P1 09/02/2021 6 1 0&lt;BR /&gt;P1 09/02/2021 6 1 0&lt;BR /&gt;P1 09/02/2021 6 0 1&lt;BR /&gt;P1 09/02/2021 6 0 1&lt;BR /&gt;P1 09/02/2021 6 1 0&lt;BR /&gt;P1 09/02/2021 6 1 0&lt;BR /&gt;P1 09/02/2021 6 0 1&lt;BR /&gt;P1 09/02/2021 6 1 0&lt;BR /&gt;P2 09/02/2021 6 0 1&lt;BR /&gt;P2 09/02/2021 6 1 0&lt;BR /&gt;P2 09/02/2021 6 1 0&lt;BR /&gt;P2 09/02/2021 6 0 1&lt;BR /&gt;P2 09/02/2021 6 1 0&lt;BR /&gt;P2 09/02/2021 6 1 0&lt;BR /&gt;P2 09/02/2021 6 1 0&lt;BR /&gt;P2 09/02/2021 6 0 1&lt;BR /&gt;P2 09/02/2021 6 1 0&lt;BR /&gt;P2 09/02/2021 6 1 0&lt;BR /&gt;P2 09/02/2021 6 1 0&lt;BR /&gt;P2 09/02/2021 6 1 0&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc report data=test nowd;&lt;BR /&gt;column semaine date;&lt;BR /&gt;column priorite, (ok ko);&lt;/P&gt;&lt;P&gt;define date / group missing '';&lt;BR /&gt;define semaine / group missing 'Semaine';&lt;/P&gt;&lt;P&gt;define priorite / across missing "";&lt;BR /&gt;define ok / analysis SUM "OK";&lt;BR /&gt;define ko / analysis SUM "KO";&lt;/P&gt;&lt;P&gt;break after semaine / summarize;&lt;/P&gt;&lt;P&gt;compute after semaine;&lt;BR /&gt;if upcase(_break_) = 'SEMAINE' then do;&lt;BR /&gt;semaine="Semaine " ||semaine;&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 12:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718223#M222233</guid>
      <dc:creator>Charlotte37</dc:creator>
      <dc:date>2021-02-10T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - Add calculated row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718270#M222251</link>
      <description>&lt;P&gt;Code currently using as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 15:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718270#M222251</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-10T15:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - Add calculated row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718536#M222393</link>
      <description>&lt;P&gt;Sorry, I don't understand&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 11:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718536#M222393</guid>
      <dc:creator>Charlotte37</dc:creator>
      <dc:date>2021-02-11T11:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - Add calculated row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718997#M222546</link>
      <description>Hello,&lt;BR /&gt;I relaunch my subject. Is there a solution ?</description>
      <pubDate>Fri, 12 Feb 2021 20:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/718997#M222546</guid>
      <dc:creator>Charlotte37</dc:creator>
      <dc:date>2021-02-12T20:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - Add calculated row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/719007#M222553</link>
      <description>Hi: Look at some of the more complex break processing examples in this paper&lt;BR /&gt; &lt;A href="https://support.sas.com/resources/papers/proceedings17/SAS0431-2017.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings17/SAS0431-2017.pdf&lt;/A&gt; -- in particular, look at the compute block example #5 where extra break lines are put into the report. Your example would not need so many extra break lines, but I think you might need some extra helper variables. It's not clear to me exactly how your percent on the extra row is being calculated.&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 12 Feb 2021 20:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Add-calculated-row/m-p/719007#M222553</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-02-12T20:55:12Z</dc:date>
    </item>
  </channel>
</rss>

