<?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: Dynmic data representation - updating Excel Pivot tables? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714139#M24816</link>
    <description>&lt;P&gt;Yes, I created the pivot&amp;nbsp;table and charts from excel &lt;STRONG&gt;table&lt;/STRONG&gt; instead of the range.&amp;nbsp;Every day when I updated my line list( excel table) that table is dropped and recreated that's when the link is broken between the pivot table and excel table as a result its not getting refreshed, even when I checked the&lt;STRONG&gt; refresh&amp;nbsp;data when opening the file&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;May be appending the rows might work but I cannot use append because some of my previous data will be updated so I need to write the complete table every day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you create the pivot table? ODS or DDE or just proc export?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 01:20:33 GMT</pubDate>
    <dc:creator>Stalk</dc:creator>
    <dc:date>2021-01-26T01:20:33Z</dc:date>
    <item>
      <title>Dynmic data representation - updating Excel Pivot tables?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714120#M24814</link>
      <description>&lt;P&gt;I am looking for a best way to process my data and export to excel so the users will have flexibility to filter and get the summary counts.&lt;/P&gt;
&lt;P&gt;So far what I have done in my SAS program is: &amp;nbsp;I applied all the filters and&amp;nbsp;the business rules and created a line list. Using&amp;nbsp;Excel engine I wrote&amp;nbsp;this line list to a pre-existing Excel template where I created a pivot table with all the row and column counts and grand total along with standard bar graphs. When I run this every afternoon the line list is overwriting the existing Excel table so my pivot table is not refreshing with new data.&amp;nbsp; Running SAS on local machine (windows environment). Open to any suggestions to give flexibility to my users to filter by&amp;nbsp;start date, end date, dept. etc and get the overall counts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank&amp;nbsp; you&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 23:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714120#M24814</guid>
      <dc:creator>Stalk</dc:creator>
      <dc:date>2021-01-25T23:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynmic data representation - updating Excel Pivot tables?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714123#M24815</link>
      <description>Make sure you're building your Excel template such that your pivot tables are being built off an Excel Table not a range. Ranges won't dynamically update if you add rows, but a Table will. &lt;BR /&gt;&lt;BR /&gt;You will also need to add a step to REFRESH or force a refresh on opening so that the tables are refreshed. Your source data can be at whatever level you want to include in the dashboard, I usually hide it and the users only see the pivot table but do have access to the underlying data if needed.</description>
      <pubDate>Mon, 25 Jan 2021 23:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714123#M24815</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-25T23:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynmic data representation - updating Excel Pivot tables?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714139#M24816</link>
      <description>&lt;P&gt;Yes, I created the pivot&amp;nbsp;table and charts from excel &lt;STRONG&gt;table&lt;/STRONG&gt; instead of the range.&amp;nbsp;Every day when I updated my line list( excel table) that table is dropped and recreated that's when the link is broken between the pivot table and excel table as a result its not getting refreshed, even when I checked the&lt;STRONG&gt; refresh&amp;nbsp;data when opening the file&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;May be appending the rows might work but I cannot use append because some of my previous data will be updated so I need to write the complete table every day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you create the pivot table? ODS or DDE or just proc export?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 01:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714139#M24816</guid>
      <dc:creator>Stalk</dc:creator>
      <dc:date>2021-01-26T01:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynmic data representation - updating Excel Pivot tables?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714831#M24825</link>
      <description>&lt;P&gt;I found a solution...&lt;/P&gt;
&lt;P&gt;option 1: Creating table using libname&amp;nbsp;BL xlsx file="c:\temp\temp.xlsx"; - this method will not work&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option 2: Only ODS will work..&lt;/P&gt;
&lt;P&gt;ods excel file="c:\temp\temp.xlsx" options(sheet_name="shoe_report");&lt;/P&gt;
&lt;P&gt;proc print data=sashelp.shoes;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods excel close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Followed this link and was able to create pivot table. Very helpful: &lt;A href="https://blogs.sas.com/content/sgf/2015/03/27/using-sas-to-add-pivottables-to-your-excel-workbook/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2015/03/27/using-sas-to-add-pivottables-to-your-excel-workbook/&lt;/A&gt;. But have some issues with chart creation&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 22:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714831#M24825</guid>
      <dc:creator>Stalk</dc:creator>
      <dc:date>2021-01-27T22:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynmic data representation - updating Excel Pivot tables?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714835#M24826</link>
      <description>It seems like when you're exporting and replacing the data the link was broken but you never showed us how that was happening. If my memory is correct, PROC EXPORT with XLSX does not do the replacement correctly but the PCFILES or ODBC will replace the table correctly. You also need to ensure you drop the table before you recreate it. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Jan 2021 23:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714835#M24826</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-27T23:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynmic data representation - updating Excel Pivot tables?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714988#M24830</link>
      <description>&lt;P&gt;While using the libname excel engine statement (option 1 in my post), I am writing to a preexisitng Excel template where the pivot table and pivot chart are locally created in Excel template using the line list exported from SAS. Next day when I run my SAS program new line list is over writting the exisitng line list in excel( which is nothing but the Excel table) the source of local pivot table.&lt;/P&gt;
&lt;P&gt;By using option 2, Pivot table&amp;nbsp;is created in&amp;nbsp;the SAS program with all the dimentions&amp;nbsp;of&amp;nbsp;columns and rows&amp;nbsp;and then exported to the Excel.&lt;/P&gt;
&lt;P&gt;Hope this clarifies your question.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 13:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynmic-data-representation-updating-Excel-Pivot-tables/m-p/714988#M24830</guid>
      <dc:creator>Stalk</dc:creator>
      <dc:date>2021-01-28T13:52:08Z</dc:date>
    </item>
  </channel>
</rss>

