<?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: Year Expression Returning Null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500923#M1226350</link>
    <description>&lt;P&gt;Both Year(YearStart(OpenOrdDateSchedShip)) and the suggested Year(OpenOrdDateSchedShip) should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm guessing here, but could it be that you don't have the dates for 2025 in the table where you are defining [OpenOrd Date Sched Ship Year]&lt;SPAN&gt;? And the values with null are actually missing.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is only a valid guess if OpenOrdDateSchedShip i a key field between that table and another table that do contain 2025 date values.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jan 2025 18:09:09 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2025-01-11T18:09:09Z</dc:date>
    <item>
      <title>Year Expression Returning Null</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500875#M1226348</link>
      <description>&lt;P&gt;I'm in QlikView not QlikSense if that makes a difference . .&lt;/P&gt;
&lt;P&gt;This statement is working for all dates prior to 01/01/2025, but all dates in 2025 are returning a null value.&amp;nbsp; Why?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Year(YearStart(OpenOrdDateSchedShip)) as [OpenOrd Date Sched Ship Year]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="notlohdahc_0-1736532342912.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176381iFC825B788F84945F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="notlohdahc_0-1736532342912.png" alt="notlohdahc_0-1736532342912.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 18:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500875#M1226348</guid>
      <dc:creator>notlohdahc</dc:creator>
      <dc:date>2025-01-10T18:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Year Expression Returning Null</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500879#M1226349</link>
      <description>&lt;P&gt;Check if your script has:&lt;/P&gt;
&lt;P&gt;SET DateFormat='MM/DD/YYYY';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is not necessary YearStart, only&amp;nbsp;&lt;SPAN&gt;Year(OpenOrdDateSchedShip)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 18:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500879#M1226349</guid>
      <dc:creator>eddyvargas</dc:creator>
      <dc:date>2025-01-10T18:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Year Expression Returning Null</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500923#M1226350</link>
      <description>&lt;P&gt;Both Year(YearStart(OpenOrdDateSchedShip)) and the suggested Year(OpenOrdDateSchedShip) should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm guessing here, but could it be that you don't have the dates for 2025 in the table where you are defining [OpenOrd Date Sched Ship Year]&lt;SPAN&gt;? And the values with null are actually missing.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is only a valid guess if OpenOrdDateSchedShip i a key field between that table and another table that do contain 2025 date values.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2025 18:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500923#M1226350</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-01-11T18:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Year Expression Returning Null</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500927#M1226351</link>
      <description>&lt;P&gt;When date and time fields stop working, the first thing to do is confirm that the field is actually being treated as a date. You can confirm this by using Num(FieldName) to see if you get a numeric result matching the date.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2025 08:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500927#M1226351</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-01-12T08:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Year Expression Returning Null</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500957#M1226352</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/298555"&gt;@notlohdahc&lt;/a&gt;&amp;nbsp;Please check the format of Date in Qlik as well as your source.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 05:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2500957#M1226352</guid>
      <dc:creator>Bhushan_Mahajan</dc:creator>
      <dc:date>2025-01-13T05:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Year Expression Returning Null</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2501044#M1226353</link>
      <description>&lt;P&gt;I found the problem.&amp;nbsp; It was further upstream in the script.&amp;nbsp; it's hard to explain . . . We have a variable that is supposed to hold the current date.&amp;nbsp; For some reason that date was getting set to 03/10/2025 and not 01/10/2025. This caused schedship dates in 2025 and beyond to not be considered valid dates.&amp;nbsp; After fixing this variable, dates are being recognized as valid&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I personally do not understand why this variable caused the SchedShip dates to come up as null.&amp;nbsp; But fixing it fixed my issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="notlohdahc_0-1736775594149.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176409i5CA0FE96081CBFB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="notlohdahc_0-1736775594149.png" alt="notlohdahc_0-1736775594149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 13:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Expression-Returning-Null/m-p/2501044#M1226353</guid>
      <dc:creator>notlohdahc</dc:creator>
      <dc:date>2025-01-13T13:42:43Z</dc:date>
    </item>
  </channel>
</rss>

