<?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 Materialized View using a table from a Dashboard in Dashboards &amp; Analytics Discussions</title>
    <link>https://community.incorta.com/t5/dashboards-analytics-discussions/materialized-view-using-a-table-from-a-dashboard/m-p/3608#M296</link>
    <description>&lt;P&gt;Hi all, is it possible to create a materialized view from an existing table in a dashboard, I want to do this because I want to create some statistics with python using the layout and data that is present in the dashboard. The table I want to use is a listing table, as I figured that an aggregate table would be more complex&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 11:22:53 GMT</pubDate>
    <dc:creator>keenan</dc:creator>
    <dc:date>2023-01-19T11:22:53Z</dc:date>
    <item>
      <title>Materialized View using a table from a Dashboard</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/materialized-view-using-a-table-from-a-dashboard/m-p/3608#M296</link>
      <description>&lt;P&gt;Hi all, is it possible to create a materialized view from an existing table in a dashboard, I want to do this because I want to create some statistics with python using the layout and data that is present in the dashboard. The table I want to use is a listing table, as I figured that an aggregate table would be more complex&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 11:22:53 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/materialized-view-using-a-table-from-a-dashboard/m-p/3608#M296</guid>
      <dc:creator>keenan</dc:creator>
      <dc:date>2023-01-19T11:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Materialized View using a table from a Dashboard</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/materialized-view-using-a-table-from-a-dashboard/m-p/3612#M298</link>
      <description>&lt;P&gt;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/698"&gt;@keenan&lt;/a&gt;&amp;nbsp; - All referencable columns from a materialized view can be found &lt;A href="https://docs.incorta.com/cloud/concepts-materialized-view#referenceable-columns" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;With dashboard tables not referencable, you could leverage any of the objects as outlined in the above article. &lt;BR /&gt;&lt;BR /&gt;Another option is to extract the SQL logic generated by the table insight, then drop that SQL into my MV to read in data via SQL statement.&amp;nbsp;&lt;BR /&gt;Retrieve the SQL from the insight table here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeM_0-1674146878679.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/1890i5E712F34E8FE32BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeM_0-1674146878679.png" alt="JoeM_0-1674146878679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Read it into the MV using the incorta_sql() function:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;df = incorta_sql("SELECT * FROM DS_Orders.Order_Source_Analyzer_Monthly WHERE (DS_Orders.Order_Source_Analyzer_Monthly.ORGANIZATION_CODE = 'M2' AND DS_Orders.Order_Source_Analyzer_Monthly.INVENTORY_ITEM_ID = 11923) AND DS_Orders.Order_Source_Analyzer_Monthly.MONTH&amp;gt;'2008-01-01' SORT BY DS_Orders.Order_Source_Analyzer_Monthly.MONTH ASC ")

incorta.show(df)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 16:50:28 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/materialized-view-using-a-table-from-a-dashboard/m-p/3612#M298</guid>
      <dc:creator>JoeM</dc:creator>
      <dc:date>2023-01-19T16:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Materialized View using a table from a Dashboard</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/materialized-view-using-a-table-from-a-dashboard/m-p/3618#M303</link>
      <description>&lt;P&gt;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/3"&gt;@JoeM&lt;/a&gt;&amp;nbsp;, thank you for your reply, however i believe the incorta_sql module/library is currently available only for cloud implementation of Incorta and not for on-premise. Is there any work around to this for on-prem installation ?&lt;/P&gt;&lt;P&gt;Thank you !&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 04:58:55 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/materialized-view-using-a-table-from-a-dashboard/m-p/3618#M303</guid>
      <dc:creator>keenan</dc:creator>
      <dc:date>2023-01-20T04:58:55Z</dc:date>
    </item>
  </channel>
</rss>

