<?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 Online Store with updated Dates - my gift to you! in Administrative Discussions</title>
    <link>https://community.incorta.com/t5/administrative-discussions/online-store-with-updated-dates-my-gift-to-you/m-p/5573#M273</link>
    <description>&lt;P&gt;Hello Incorta folks&amp;nbsp; (&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Incortites&lt;/EM&gt;&lt;/STRONG&gt;?&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt; Incortiac&lt;/EM&gt;&lt;/STRONG&gt;s?&amp;nbsp; Home &lt;STRONG&gt;&lt;EM&gt;Incorting&lt;/EM&gt;&lt;/STRONG&gt; King/Queens?&amp;nbsp; Surely not &lt;STRONG&gt;&lt;EM&gt;Inco&lt;/EM&gt;&lt;/STRONG&gt;herents!&amp;nbsp; ),&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was on a webinar for another vendor and one of the things which caught my eye was the fact that their demo data was dated up to 2024.&lt;/P&gt;&lt;P&gt;"Hey," I thought to myself, "&lt;EM&gt;my&lt;/EM&gt;&amp;nbsp;demo data isn't dated up to 2024 and it's always kind of bugged me."&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I thought why not fix it?&amp;nbsp; &amp;nbsp;So I did.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached Online Store schema export should contain tables with dates updated to reflect the current calendar.&amp;nbsp; Logic at the end of this post.&lt;/P&gt;&lt;P&gt;Turns out the time dimension only runs through 2024 so that should get updated before Jan 25, but my energy was waning and more important tasks were calling.&amp;nbsp; Do feel free.&lt;/P&gt;&lt;P&gt;If you've read this far here's an interesting nugget!&amp;nbsp; &amp;nbsp;I had originally created an MV for the address table named "AddressMeAsCaptain" because I have an odd sense of humor.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;That's not the interesting part.&amp;nbsp; I deleted that MV.&amp;nbsp; &amp;nbsp;I've saved a bunch of times since then.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you dig though the export there it is under the notebook folder complete with the date update logic ** and the result set for the MV ** which is terribly interesting to me.&amp;nbsp; &amp;nbsp;I'd have assumed the result set would have been stored in a parquet file and not read when zipping the export.&amp;nbsp; &amp;nbsp;"Hmmmmm" as they say, "interesting."&lt;/P&gt;&lt;P&gt;In any case, here it is.&amp;nbsp; &amp;nbsp;If you fix my mistakes and/or extend it pls post a reply w/ an updated export and we'll all pay it forward to new Incorta folks...&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;======Applied wherever there is a date field ==========&lt;/P&gt;&lt;P&gt;select&lt;BR /&gt;CountryRegionCode&lt;BR /&gt;, CountryRegionName&lt;/P&gt;&lt;P&gt;, date_add(modifieddate, ModifiedDateDaysUntil ) ModifiedDate&lt;/P&gt;&lt;P&gt;from OnlineStore.countryregion&lt;BR /&gt;JOIN&lt;/P&gt;&lt;P&gt;(select max(modifieddate) MaxOriginalModifiedDate&lt;BR /&gt;, datediff(current_date, max(modifieddate)) as ModifiedDateDaysUntil&lt;BR /&gt;from OnlineStore.address ) mxdt&lt;/P&gt;&lt;P&gt;ON 1 = 1&lt;/P&gt;&lt;P&gt;===========999================&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2024 22:34:32 GMT</pubDate>
    <dc:creator>RADSr</dc:creator>
    <dc:date>2024-03-19T22:34:32Z</dc:date>
    <item>
      <title>Online Store with updated Dates - my gift to you!</title>
      <link>https://community.incorta.com/t5/administrative-discussions/online-store-with-updated-dates-my-gift-to-you/m-p/5573#M273</link>
      <description>&lt;P&gt;Hello Incorta folks&amp;nbsp; (&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Incortites&lt;/EM&gt;&lt;/STRONG&gt;?&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt; Incortiac&lt;/EM&gt;&lt;/STRONG&gt;s?&amp;nbsp; Home &lt;STRONG&gt;&lt;EM&gt;Incorting&lt;/EM&gt;&lt;/STRONG&gt; King/Queens?&amp;nbsp; Surely not &lt;STRONG&gt;&lt;EM&gt;Inco&lt;/EM&gt;&lt;/STRONG&gt;herents!&amp;nbsp; ),&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was on a webinar for another vendor and one of the things which caught my eye was the fact that their demo data was dated up to 2024.&lt;/P&gt;&lt;P&gt;"Hey," I thought to myself, "&lt;EM&gt;my&lt;/EM&gt;&amp;nbsp;demo data isn't dated up to 2024 and it's always kind of bugged me."&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I thought why not fix it?&amp;nbsp; &amp;nbsp;So I did.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached Online Store schema export should contain tables with dates updated to reflect the current calendar.&amp;nbsp; Logic at the end of this post.&lt;/P&gt;&lt;P&gt;Turns out the time dimension only runs through 2024 so that should get updated before Jan 25, but my energy was waning and more important tasks were calling.&amp;nbsp; Do feel free.&lt;/P&gt;&lt;P&gt;If you've read this far here's an interesting nugget!&amp;nbsp; &amp;nbsp;I had originally created an MV for the address table named "AddressMeAsCaptain" because I have an odd sense of humor.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;That's not the interesting part.&amp;nbsp; I deleted that MV.&amp;nbsp; &amp;nbsp;I've saved a bunch of times since then.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you dig though the export there it is under the notebook folder complete with the date update logic ** and the result set for the MV ** which is terribly interesting to me.&amp;nbsp; &amp;nbsp;I'd have assumed the result set would have been stored in a parquet file and not read when zipping the export.&amp;nbsp; &amp;nbsp;"Hmmmmm" as they say, "interesting."&lt;/P&gt;&lt;P&gt;In any case, here it is.&amp;nbsp; &amp;nbsp;If you fix my mistakes and/or extend it pls post a reply w/ an updated export and we'll all pay it forward to new Incorta folks...&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;======Applied wherever there is a date field ==========&lt;/P&gt;&lt;P&gt;select&lt;BR /&gt;CountryRegionCode&lt;BR /&gt;, CountryRegionName&lt;/P&gt;&lt;P&gt;, date_add(modifieddate, ModifiedDateDaysUntil ) ModifiedDate&lt;/P&gt;&lt;P&gt;from OnlineStore.countryregion&lt;BR /&gt;JOIN&lt;/P&gt;&lt;P&gt;(select max(modifieddate) MaxOriginalModifiedDate&lt;BR /&gt;, datediff(current_date, max(modifieddate)) as ModifiedDateDaysUntil&lt;BR /&gt;from OnlineStore.address ) mxdt&lt;/P&gt;&lt;P&gt;ON 1 = 1&lt;/P&gt;&lt;P&gt;===========999================&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 22:34:32 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/online-store-with-updated-dates-my-gift-to-you/m-p/5573#M273</guid>
      <dc:creator>RADSr</dc:creator>
      <dc:date>2024-03-19T22:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Online Store with updated Dates - my gift to you!</title>
      <link>https://community.incorta.com/t5/administrative-discussions/online-store-with-updated-dates-my-gift-to-you/m-p/5574#M274</link>
      <description>&lt;P&gt;A few things to hit on here!&lt;/P&gt;
&lt;P&gt;First off, check out that new label under your username!&lt;/P&gt;
&lt;P&gt;The general leaning is "Incortans", but I certainly don't mind "Incortiacs" &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I can confirm I see the notebook in the .zip but not in the schema. Perhaps this is too many versions back, but were you running a print statement within the notebook? I'd have to check, but an educated bet would be that paragraph results are saved. Even without an export, re-opening a notebook will show results from a previous run. I do see a line saying the results were truncated to '1000 rows', so it seems like that might be the case.&amp;nbsp;&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>Wed, 20 Mar 2024 02:06:01 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/online-store-with-updated-dates-my-gift-to-you/m-p/5574#M274</guid>
      <dc:creator>JoeM</dc:creator>
      <dc:date>2024-03-20T02:06:01Z</dc:date>
    </item>
  </channel>
</rss>

