<?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 SAS Visual Analytics - Reports with datasets that need to be updated frequently in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Reports-with-datasets-that-need-to-be/m-p/788095#M15709</link>
    <description>&lt;P&gt;I have been tasked with creating a Dashboard that provides visualizations of the dates and times tables within the a library have been updated. There are over 450 tables in this library and the data is just the table names, what type of table it is (classified by function) and the last date and time the information within the table has been updated. The dashboard is meant to provide insight to management at NAVSUP as to whether or not tables are being updated on time or are delayed. Since the development of the Dashboard, I have stumbled upon several obstacles that make rendering the Dashboard quite time consuming as it requires a significant amount of manual manipulation every time new datasets are imported. For example, every time I update the information in the Dashboard by importing new datasets, I must manually change the column names/labels, reassign roles to each dataset for report objects, reapply any rules and filters to report objects and remap linked report objects. As you can imagine, this takes quite a bit of time and is not particularly efficient for a Dashboard that would be useful on a daily basis. Would you be able to provide any insight or feedback as to how these processes could be automated?&amp;nbsp; Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jan 2022 14:24:03 GMT</pubDate>
    <dc:creator>NAVSUP_Aya</dc:creator>
    <dc:date>2022-01-03T14:24:03Z</dc:date>
    <item>
      <title>SAS Visual Analytics - Reports with datasets that need to be updated frequently</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Reports-with-datasets-that-need-to-be/m-p/788095#M15709</link>
      <description>&lt;P&gt;I have been tasked with creating a Dashboard that provides visualizations of the dates and times tables within the a library have been updated. There are over 450 tables in this library and the data is just the table names, what type of table it is (classified by function) and the last date and time the information within the table has been updated. The dashboard is meant to provide insight to management at NAVSUP as to whether or not tables are being updated on time or are delayed. Since the development of the Dashboard, I have stumbled upon several obstacles that make rendering the Dashboard quite time consuming as it requires a significant amount of manual manipulation every time new datasets are imported. For example, every time I update the information in the Dashboard by importing new datasets, I must manually change the column names/labels, reassign roles to each dataset for report objects, reapply any rules and filters to report objects and remap linked report objects. As you can imagine, this takes quite a bit of time and is not particularly efficient for a Dashboard that would be useful on a daily basis. Would you be able to provide any insight or feedback as to how these processes could be automated?&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 14:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Reports-with-datasets-that-need-to-be/m-p/788095#M15709</guid>
      <dc:creator>NAVSUP_Aya</dc:creator>
      <dc:date>2022-01-03T14:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Analytics - Reports with datasets that need to be updated frequently</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Reports-with-datasets-that-need-to-be/m-p/788124#M15715</link>
      <description>&lt;P&gt;Are you replacing the existing data source with a different data source that has different column names? If so, then that would be considered a new table and you would have to do the manual steps you describe. If the data source is just being update (new rows added, values updated) but the column names are the same, then a refresh should update the dashboard.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 16:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Reports-with-datasets-that-need-to-be/m-p/788124#M15715</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2022-01-03T16:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Analytics - Reports with datasets that need to be updated frequently</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Reports-with-datasets-that-need-to-be/m-p/788133#M15716</link>
      <description>&lt;P&gt;I'm not exactly sure where the issue is (the report or the data prep), but depending on what you are doing you should be able to automate it with some code.&lt;/P&gt;
&lt;P&gt;From my limited understanding of the issue, I would&lt;/P&gt;
&lt;P&gt;- create a program that prepares the data how I need it. Eventually create a job that will execute it &lt;STRONG&gt;daily/weekly/monthly/etc.&amp;nbsp;&lt;/STRONG&gt;The job would prep the data as necessary, then update the previous older table.&lt;/P&gt;
&lt;P&gt;- create the report in Visual Analytics that would use the table above as it is updated&amp;nbsp;&lt;STRONG&gt;daily/weekly/monthly/etc.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From my understanding, you are documenting all available CAS tables in a caslib and looking to check when it's been modified? Here is some CASL code with an action to identify all tables in a caslib:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas conn;

proc cas;
    library = 'casuser';
    table.tableInfo / caslib = library;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My output with some fake tables. Notice the Created and Last Modified columns:&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="tableInfo.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67083iE4D86EC49CFB2B0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="tableInfo.png" alt="tableInfo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TableInfo gives me created date and last modified dates. You can add the results = option to save this result as a CASTable (or SAS DATA set) and execute some code to try and do any data prep you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code to save the table above as a CAS Table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cas;
    library = 'casuser';
    table.tableInfo result = ti / caslib = library;

    * store the dictionary as a table*;
    CASTables = ti.TableInfo;
    * Save the table as a CAStable*;
    saveresult CASTables casout='listoftables' caslib=library;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you could use some DATA step code to manipulate that CAS table how you want it for the report. Then update the previous table that the report is using.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Connect SAS to your caslib *;
libname casuser cas caslib = 'casuser';

* Execute data step to manipulate the table*;
data casuser.prepdata;
    set casuser.listoftables;
    * Here i'm simply converting the string date to a date value in SAS*;
    DateUpdated = datepart(input(ModTimeFormatted,ANYDTDTM.));
    format DateUpdated date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am a bit confused by this part:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I have stumbled upon several obstacles that make rendering the Dashboard quite time consuming as it requires a significant amount of manual manipulation every time new datasets are imported. For example, every time I update the information in the Dashboard by importing new datasets, I must manually change the column names/labels, reassign roles to each dataset for report objects, reapply any rules and filters to report objects and remap linked report objects.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean by new data set is imported? Do you mean a new data set is being added to the library?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm also not sure why you need to change column names/labels, reassign roles to report objects and more. Once you create a report and save it this should already be done and stored and using a CAS table. Are you creating a new report each time you update your main table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Peter&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>Mon, 03 Jan 2022 16:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Reports-with-datasets-that-need-to-be/m-p/788133#M15716</guid>
      <dc:creator>Panagiotis</dc:creator>
      <dc:date>2022-01-03T16:36:27Z</dc:date>
    </item>
  </channel>
</rss>

