<?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: weeknum function bad results in Dashboards &amp; Analytics Discussions</title>
    <link>https://community.incorta.com/t5/dashboards-analytics-discussions/weeknum-function-bad-results/m-p/4397#M439</link>
    <description>&lt;P&gt;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/776"&gt;@Random_1191&lt;/a&gt;&amp;nbsp; - I think you are using&amp;nbsp;&lt;A href="https://www.epochconverter.com/weeks/2021" target="_blank"&gt;https://www.epochconverter.com/weeks/2021&lt;/A&gt;&amp;nbsp;as your reference? If so, I think the difference is that week 01 starts on January 4th, and January 1-3 days are not counted as a week in 2021 years.&amp;nbsp; In Incorta weeks are counted on each Sunday, so Incorta counts week 1 as Jan 1-2 (Friday &amp;amp; Saturday) and starts week 2 on Jan 3. The way Incorta calculates weeks would be consistent with Excel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the null values - quite interesting! I'll have to relay this to the product team. In the meantime, this formula should force the empty value:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;case(
	isNull(
		DateWeek.Sheet1.Date
	), 
	"", 
	string(
		weeknum(
			DateWeek.Sheet1.Date
		)
	)
)&lt;/LI-CODE&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>Fri, 02 Jun 2023 15:56:15 GMT</pubDate>
    <dc:creator>JoeM</dc:creator>
    <dc:date>2023-06-02T15:56:15Z</dc:date>
    <item>
      <title>weeknum function bad results</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/weeknum-function-bad-results/m-p/4396#M438</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Im using weeknum function but it seems that results at not correct eg below. Column manual shows proper CW from the week numbers table 2021. First row 5 november 2021 - CW44 but according to function CW45 ... why ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Random_1191_0-1685684132102.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/2225i7125ED5BF9941A2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Random_1191_0-1685684132102.png" alt="Random_1191_0-1685684132102.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Random_1191_2-1685684293735.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/2227iB0A674A4B02D7F1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Random_1191_2-1685684293735.png" alt="Random_1191_2-1685684293735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Next question why when there is now value in cell function always shows CW 34 ? instead of empty values ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Random_1191_1-1685684269347.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/2226iEE29ADD54581CA04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Random_1191_1-1685684269347.png" alt="Random_1191_1-1685684269347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I've tried to use IF function to solve it but function I've made :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if(string(&lt;/SPAN&gt;&lt;SPAN&gt;Sch_Active.Date&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;weeknum(Sch_Active.Date&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;shows an error to column Sch_Active.Date&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Random_1191_3-1685685111501.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/2228i700F874D84A9E3C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Random_1191_3-1685685111501.png" alt="Random_1191_3-1685685111501.png" /&gt;&lt;/span&gt;&lt;P&gt;Any clues , help ?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Jun 2023 05:55:04 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/weeknum-function-bad-results/m-p/4396#M438</guid>
      <dc:creator>Random_1191</dc:creator>
      <dc:date>2023-06-02T05:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: weeknum function bad results</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/weeknum-function-bad-results/m-p/4397#M439</link>
      <description>&lt;P&gt;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/776"&gt;@Random_1191&lt;/a&gt;&amp;nbsp; - I think you are using&amp;nbsp;&lt;A href="https://www.epochconverter.com/weeks/2021" target="_blank"&gt;https://www.epochconverter.com/weeks/2021&lt;/A&gt;&amp;nbsp;as your reference? If so, I think the difference is that week 01 starts on January 4th, and January 1-3 days are not counted as a week in 2021 years.&amp;nbsp; In Incorta weeks are counted on each Sunday, so Incorta counts week 1 as Jan 1-2 (Friday &amp;amp; Saturday) and starts week 2 on Jan 3. The way Incorta calculates weeks would be consistent with Excel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the null values - quite interesting! I'll have to relay this to the product team. In the meantime, this formula should force the empty value:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;case(
	isNull(
		DateWeek.Sheet1.Date
	), 
	"", 
	string(
		weeknum(
			DateWeek.Sheet1.Date
		)
	)
)&lt;/LI-CODE&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>Fri, 02 Jun 2023 15:56:15 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/weeknum-function-bad-results/m-p/4397#M439</guid>
      <dc:creator>JoeM</dc:creator>
      <dc:date>2023-06-02T15:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: weeknum function bad results</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/weeknum-function-bad-results/m-p/4401#M440</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;thanks for info. Formula You build works thx.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct me if I'm wrong, from what I understand the Incorta weeknum counts week starting Sunday to Saturday? as the weeks from the&amp;nbsp;&lt;A href="https://www.epochconverter.com/weeks/2021" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.epochconverter.com/weeks/2021&lt;/A&gt; are counting Monday to Saturday.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When it comes to the weekly formula, Incorta counts one week ahead, but in the following cases it counts even two weeks ahead, which surprises me. Why ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Random_1191_0-1685943395930.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/2229iCF587A6A183D89CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Random_1191_0-1685943395930.png" alt="Random_1191_0-1685943395930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Would it be possible to adjust formula for selecting the start-end, or add additional weeknum for monday-sunday ?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 05:53:25 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/weeknum-function-bad-results/m-p/4401#M440</guid>
      <dc:creator>Random_1191</dc:creator>
      <dc:date>2023-06-05T05:53:25Z</dc:date>
    </item>
  </channel>
</rss>

