<?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: List table automatically add/remove fields based on data plan output in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-table-automatically-add-remove-fields-based-on-data-plan/m-p/852222#M16796</link>
    <description>&lt;P&gt;With "traditional" SAS (SAS9, Viya spre) you can simply use something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=&amp;lt;your table&amp;gt; noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want a report in Viya then you need up-to-date metadata objects for the table in CAS and for the Report.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can dynamically update table metadata so it stays in synch with the physical table but I don't believe you can do something similar for report metadata (a report object). How could SAS "know" where a new column would need to be placed in a report and how to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing table structures always cause challenges and additional coding work. Ideally re-arrange your data from wide to long and load this stable table structure into CAS for reporting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of a table structure like below...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1672888117995.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79049i48714A7F2DF7DD65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1672888117995.png" alt="Patrick_0-1672888117995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;...re-arrange your data prior to loading into CAS to...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1672888374982.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79050i7A223C2A4605D987/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_1-1672888374982.png" alt="Patrick_1-1672888374982.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;</description>
    <pubDate>Thu, 05 Jan 2023 03:19:42 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2023-01-05T03:19:42Z</dc:date>
    <item>
      <title>List table automatically add/remove fields based on data plan output</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-table-automatically-add-remove-fields-based-on-data-plan/m-p/852213#M16795</link>
      <description>&lt;P&gt;In a table I have column headings of the dates of activity based on a SAS table that is always being updated.&amp;nbsp; Is there a way to program a list table to display column headings no matter what they are called or how many there are?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I create new list tables it always asks for the column headings, essentially hard-coding the names and number of the columns.&amp;nbsp; I need a more polymorphic solution.&amp;nbsp; Any ideas?&amp;nbsp; Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 00:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-table-automatically-add-remove-fields-based-on-data-plan/m-p/852213#M16795</guid>
      <dc:creator>ahawkins61</dc:creator>
      <dc:date>2023-01-05T00:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: List table automatically add/remove fields based on data plan output</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-table-automatically-add-remove-fields-based-on-data-plan/m-p/852222#M16796</link>
      <description>&lt;P&gt;With "traditional" SAS (SAS9, Viya spre) you can simply use something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=&amp;lt;your table&amp;gt; noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want a report in Viya then you need up-to-date metadata objects for the table in CAS and for the Report.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can dynamically update table metadata so it stays in synch with the physical table but I don't believe you can do something similar for report metadata (a report object). How could SAS "know" where a new column would need to be placed in a report and how to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing table structures always cause challenges and additional coding work. Ideally re-arrange your data from wide to long and load this stable table structure into CAS for reporting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of a table structure like below...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1672888117995.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79049i48714A7F2DF7DD65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1672888117995.png" alt="Patrick_0-1672888117995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;...re-arrange your data prior to loading into CAS to...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1672888374982.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79050i7A223C2A4605D987/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_1-1672888374982.png" alt="Patrick_1-1672888374982.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;</description>
      <pubDate>Thu, 05 Jan 2023 03:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-table-automatically-add-remove-fields-based-on-data-plan/m-p/852222#M16796</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-05T03:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: List table automatically add/remove fields based on data plan output</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-table-automatically-add-remove-fields-based-on-data-plan/m-p/854521#M16859</link>
      <description>You can use a data driven content and create a viya job that creates the table dynamically and display it in VA.&lt;BR /&gt;Might help you...:)&lt;BR /&gt;BR&lt;BR /&gt;Fredrik</description>
      <pubDate>Thu, 19 Jan 2023 10:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-table-automatically-add-remove-fields-based-on-data-plan/m-p/854521#M16859</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2023-01-19T10:20:40Z</dc:date>
    </item>
  </channel>
</rss>

