<?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: week over week? in Data &amp; Schema Discussions</title>
    <link>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/2883#M190</link>
    <description>&lt;P&gt;Actually, in the latest version of Incorta the ago function does support "DAY" as a parameter.&amp;nbsp; If you want to go back a week, you would pair "DAY" with 7.&amp;nbsp; Here is an example formula that aggregates revenue for a week ago:&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;sum(
	SALES.Sales_Date_dim.Revenue, 
	ago(
		SALES.Sales_Date_dim.Sales_Date, 
		7, 
		"DAY"
	)
)&lt;/LI-CODE&gt;
&lt;P&gt;The output looks like this (the 3rd column uses the formula above):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-10-05 at 4.23.59 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/1550i06B5FC9D12A7FA5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-10-05 at 4.23.59 PM.png" alt="Screen Shot 2022-10-05 at 4.23.59 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The docs site talks about it &lt;A href="https://docs.incorta.com/cloud/references-built-in-functions-analytic-ago/#returns" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 05 Oct 2022 23:25:18 GMT</pubDate>
    <dc:creator>Tristan</dc:creator>
    <dc:date>2022-10-05T23:25:18Z</dc:date>
    <item>
      <title>week over week?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/1557#M52</link>
      <description>&lt;P&gt;I need to do some reporting on a week-over-week basis. The built-in "ago" and "toDate" functions only support "month", "quarter" and "year".&lt;/P&gt;&lt;P&gt;Any thoughts on how to do this inside a formula on a business schema?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My last-ditch thoughts:&lt;/P&gt;&lt;P&gt;1) create a date dimension alias table with a join on "week ago". But this just seems janky.&lt;/P&gt;&lt;P&gt;2) SQL Window function as auxiliary table but this is a lot of new rows for little value and no flexibility.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 15:18:39 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/1557#M52</guid>
      <dc:creator>Won2RoolThemAll</dc:creator>
      <dc:date>2022-05-16T15:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: week over week?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/1569#M53</link>
      <description>&lt;P&gt;I would recommend that you use the alias table and join to the common date dimension table with a join on "week ago" - it actually is a more robust solution. You could do a SQL view using a LAG function, but it's a little more involved and would be more difficult to change the dimension values you want to use etc. You'll have more freedom with the alias table approach.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of the lag function courtesy of&amp;nbsp;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/26"&gt;@awarrier&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-05-16 at 4.33.24 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/939i6B28848E30AD5C4E/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-05-16 at 4.33.24 PM.png" alt="Screen Shot 2022-05-16 at 4.33.24 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 23:33:48 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/1569#M53</guid>
      <dc:creator>LayeredDelay</dc:creator>
      <dc:date>2022-05-16T23:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: week over week?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/1644#M63</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/210"&gt;@Won2RoolThemAll&lt;/a&gt;&amp;nbsp;did the explanation above answer your question?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 19:03:53 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/1644#M63</guid>
      <dc:creator>KailaT</dc:creator>
      <dc:date>2022-05-19T19:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: week over week?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/2827#M183</link>
      <description>&lt;P&gt;Wondering, if all these solutions can be shown by creating 2-minute video snippets for better understanding.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 18:05:33 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/2827#M183</guid>
      <dc:creator>Incortaconsulta</dc:creator>
      <dc:date>2022-09-30T18:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: week over week?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/2830#M185</link>
      <description>&lt;P&gt;Great idea&amp;nbsp;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/317"&gt;@Incortaconsulta&lt;/a&gt;. We will look into it!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 19:44:09 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/2830#M185</guid>
      <dc:creator>KailaT</dc:creator>
      <dc:date>2022-09-30T19:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: week over week?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/2841#M186</link>
      <description>&lt;P&gt;I have found that creating an index on a calendar table&amp;nbsp; - I use day index, week index, month index, year index, and "fiscal" versions if applicable - is really helpful.&amp;nbsp; &amp;nbsp; Want to compare this week to last?&amp;nbsp; $CurrentWeekIndex -1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 14:35:20 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/2841#M186</guid>
      <dc:creator>RADSr</dc:creator>
      <dc:date>2022-10-03T14:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: week over week?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/2883#M190</link>
      <description>&lt;P&gt;Actually, in the latest version of Incorta the ago function does support "DAY" as a parameter.&amp;nbsp; If you want to go back a week, you would pair "DAY" with 7.&amp;nbsp; Here is an example formula that aggregates revenue for a week ago:&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;sum(
	SALES.Sales_Date_dim.Revenue, 
	ago(
		SALES.Sales_Date_dim.Sales_Date, 
		7, 
		"DAY"
	)
)&lt;/LI-CODE&gt;
&lt;P&gt;The output looks like this (the 3rd column uses the formula above):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-10-05 at 4.23.59 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/1550i06B5FC9D12A7FA5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-10-05 at 4.23.59 PM.png" alt="Screen Shot 2022-10-05 at 4.23.59 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The docs site talks about it &lt;A href="https://docs.incorta.com/cloud/references-built-in-functions-analytic-ago/#returns" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Oct 2022 23:25:18 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/2883#M190</guid>
      <dc:creator>Tristan</dc:creator>
      <dc:date>2022-10-05T23:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: week over week?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/4381#M346</link>
      <description>&lt;P&gt;This &lt;A title="Week on Week Sales" href="https://youtu.be/rqQ-HU3zfZ0" target="_self"&gt;video&lt;/A&gt; shows how to do week over week sales in Incorta.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 21:47:28 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/week-over-week/m-p/4381#M346</guid>
      <dc:creator>anurag</dc:creator>
      <dc:date>2023-05-31T21:47:28Z</dc:date>
    </item>
  </channel>
</rss>

