<?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: Dataflux  - Add a Grand total row to an excel output file in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/728090#M19868</link>
    <description>&lt;P&gt;You can either add a calculated field&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VincentRejany_0-1616402796963.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56214i4506C73191A22A6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VincentRejany_0-1616402796963.png" alt="VincentRejany_0-1616402796963.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;an "expression node" with the following code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pre processing&lt;/P&gt;
&lt;P&gt;real myTotal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;expression&lt;/P&gt;
&lt;P&gt;myTotal = toreal(&lt;SPAN&gt;total_sales) + toreal(total_income)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 08:46:43 GMT</pubDate>
    <dc:creator>VincentRejany</dc:creator>
    <dc:date>2021-03-22T08:46:43Z</dc:date>
    <item>
      <title>Dataflux  - Add a Grand total row to an excel output file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/727823#M19867</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a datajob that writes output to an excel file.&amp;nbsp; It shows multiple rows which include fields like total_sales, total_income etc. At the end of my dj I have data going to an "text file output" node which then feeds into a "Data Target (insert)" node. Is it possible to create a final summary row to the output that would give me a grand total for each of these columns?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 17:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/727823#M19867</guid>
      <dc:creator>beamer108</dc:creator>
      <dc:date>2021-03-19T17:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux  - Add a Grand total row to an excel output file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/728090#M19868</link>
      <description>&lt;P&gt;You can either add a calculated field&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VincentRejany_0-1616402796963.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56214i4506C73191A22A6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VincentRejany_0-1616402796963.png" alt="VincentRejany_0-1616402796963.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;an "expression node" with the following code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pre processing&lt;/P&gt;
&lt;P&gt;real myTotal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;expression&lt;/P&gt;
&lt;P&gt;myTotal = toreal(&lt;SPAN&gt;total_sales) + toreal(total_income)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 08:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/728090#M19868</guid>
      <dc:creator>VincentRejany</dc:creator>
      <dc:date>2021-03-22T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux  - Add a Grand total row to an excel output file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/728143#M19870</link>
      <description>&lt;P&gt;Im actually looking to add a row not a column.&amp;nbsp; So it would look something like this: (row in red is what I am looking to add)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="beamer108_0-1616415535320.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56233i49A0491CA55F9382/image-size/medium?v=v2&amp;amp;px=400" role="button" title="beamer108_0-1616415535320.png" alt="beamer108_0-1616415535320.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 12:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/728143#M19870</guid>
      <dc:creator>beamer108</dc:creator>
      <dc:date>2021-03-22T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux  - Add a Grand total row to an excel output file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/728208#M19872</link>
      <description>&lt;P&gt;for adding a final line with a grand total, do the following&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;//pre processing expression&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;hidden real hgrandTotalSales&lt;/P&gt;
&lt;P&gt;hidden real hgrandTotalIncome&lt;/P&gt;
&lt;P&gt;hgrandTotalSales = 0&lt;/P&gt;
&lt;P&gt;hgrandTotalIncome = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//&lt;STRONG&gt;expression&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;hgrandTotalSales =&amp;nbsp;hgrandTotalSales+ toreal(total_sales)&lt;/P&gt;
&lt;P&gt;hgrandTotalIncome = hgrandTotalIncome+ toreal(total_income)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;//post processing expression&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;service_from_date = null&lt;/P&gt;
&lt;P&gt;total_sales =&amp;nbsp;hgrandTotalSales&lt;/P&gt;
&lt;P&gt;total_income =&amp;nbsp;hgrandTotalIncome&lt;/P&gt;
&lt;P&gt;pushrow()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 14:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/728208#M19872</guid>
      <dc:creator>VincentRejany</dc:creator>
      <dc:date>2021-03-22T14:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux  - Add a Grand total row to an excel output file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/728214#M19873</link>
      <description>Thank you SOOO much! This is amazing. I had almost convinced myself that it wasn't possible. Thank you!</description>
      <pubDate>Mon, 22 Mar 2021 15:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Add-a-Grand-total-row-to-an-excel-output-file/m-p/728214#M19873</guid>
      <dc:creator>beamer108</dc:creator>
      <dc:date>2021-03-22T15:44:17Z</dc:date>
    </item>
  </channel>
</rss>

