<?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 Activity with in  window of time in Data &amp; Schema Discussions</title>
    <link>https://community.incorta.com/t5/data-schema-discussions/activity-with-in-window-of-time/m-p/3426#M261</link>
    <description>&lt;P&gt;If I have a site and I want to bucket visitors in to 'Super Active,' 'Active,' 'Kinda Active,' and 'Meh' based on a rolling n-day window of activity ( e.g. 30 visits is 'Super' 2 is 'Meh' )&lt;/P&gt;&lt;P&gt;That seems pretty straightforward for a given end date ( although I haven't done it yet ) but what if I want to do a timeline? On Jan 1 we had n-&amp;lt;level&amp;gt;, Jan 2 n-&amp;lt;level&amp;gt;, etc. so for each date I am looking back at the window and counting visitors?&lt;/P&gt;&lt;P&gt;Can I do that dynamically or do I need to loop through every date and put the results into a new table? If I do need to do that can I do it automatically and have it persist into the future?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 13:22:33 GMT</pubDate>
    <dc:creator>RADSr</dc:creator>
    <dc:date>2022-11-29T13:22:33Z</dc:date>
    <item>
      <title>Activity with in  window of time</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/activity-with-in-window-of-time/m-p/3426#M261</link>
      <description>&lt;P&gt;If I have a site and I want to bucket visitors in to 'Super Active,' 'Active,' 'Kinda Active,' and 'Meh' based on a rolling n-day window of activity ( e.g. 30 visits is 'Super' 2 is 'Meh' )&lt;/P&gt;&lt;P&gt;That seems pretty straightforward for a given end date ( although I haven't done it yet ) but what if I want to do a timeline? On Jan 1 we had n-&amp;lt;level&amp;gt;, Jan 2 n-&amp;lt;level&amp;gt;, etc. so for each date I am looking back at the window and counting visitors?&lt;/P&gt;&lt;P&gt;Can I do that dynamically or do I need to loop through every date and put the results into a new table? If I do need to do that can I do it automatically and have it persist into the future?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 13:22:33 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/activity-with-in-window-of-time/m-p/3426#M261</guid>
      <dc:creator>RADSr</dc:creator>
      <dc:date>2022-11-29T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Activity with in  window of time</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/activity-with-in-window-of-time/m-p/3439#M263</link>
      <description>&lt;P&gt;Hello &lt;SPAN&gt;RADSr,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please check and confirm the below as per my understanding:&lt;/P&gt;
&lt;P&gt;1-Assuming this is the main data set:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 130pt;" border="0" width="174" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 16.0pt;"&gt;
&lt;TD width="87" height="21" style="height: 16.0pt; width: 65pt;"&gt;Date&lt;/TD&gt;
&lt;TD width="87" style="width: 65pt;"&gt;No.Of vistors&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;&lt;SPAN&gt;1-Jan&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;&lt;SPAN&gt;2-Jan&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;3-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;4-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;5-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;12&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;6-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;7-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;8-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;9-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;10-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;11-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;12-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;13-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;14-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;15-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;16-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;17-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;18-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;19-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 20.0pt;"&gt;
&lt;TD height="27" align="right" class="xl63" style="height: 20.0pt;"&gt;20-Jan&lt;/TD&gt;
&lt;TD align="right"&gt;15&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;2-After loading the Data into a new schema and new table (Attached)&lt;/P&gt;
&lt;P&gt;3-From the Analyzer&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add a new result set &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-12-01 at 10.06.44 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/1818i22D36C4A48C5D351/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-12-01 at 10.06.44 PM.png" alt="Screen Shot 2022-12-01 at 10.06.44 PM.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Add the previous 2 columns&lt;/LI&gt;
&lt;LI&gt;Enable the running total option for the "No Of Vistors" measure &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-12-01 at 10.56.02 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/1819iAC923DA17B45408A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-12-01 at 10.56.02 PM.png" alt="Screen Shot 2022-12-01 at 10.56.02 PM.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;From the Analyzer go to the original insight and display the columns and the new Rating column using a case function as below:
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;case(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;between(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ds_9k_3uh40w.insight.No_Of_vistors&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;'Meh'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;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t;DIV&gt;&lt;SPAN&gt;70&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;'Super Active'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;It should be like that:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-12-01 at 11.02.10 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/1820i919FE73C85AD2857/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-12-01 at 11.02.10 PM.png" alt="Screen Shot 2022-12-01 at 11.02.10 PM.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Attached here are the used data, Schema, and dashboard.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 01 Dec 2022 21:06:09 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/activity-with-in-window-of-time/m-p/3439#M263</guid>
      <dc:creator>Rasha</dc:creator>
      <dc:date>2022-12-01T21:06:09Z</dc:date>
    </item>
  </channel>
</rss>

