<?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: Help Please..Correct syntax for using Today in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-Please-Correct-syntax-for-using-Today/m-p/357674#M703595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How often is this reloaded? I don't know if the values in the script get updated if it's not reloaded. If it's reloaded every day, there's no need for a variable.&lt;/P&gt;&lt;P&gt;You also don't need the dollar sign expansion. Just use your original expression (assuming the other fields are formatted properly as dates) - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ClaimStatus&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;F&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;StatusDate&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ClaimNotifyDate&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; , Today() - ClaimNotifyDate&lt;SPAN style="font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: maroon;"&gt;'Days Open'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2012 18:33:15 GMT</pubDate>
    <dc:creator>danielact</dc:creator>
    <dc:date>2012-05-17T18:33:15Z</dc:date>
    <item>
      <title>Help Please..Correct syntax for using Today</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Please-Correct-syntax-for-using-Today/m-p/357672#M703593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Qlikview and trying to understand the 'Today' syntax using an If statement. The goal is to find the number of days open from Today's date - ClaimNotifyDate.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;ClaimStatus&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;F&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;StatusDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;ClaimNotifyDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; ,&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(=today() - ClaimNotifyDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;'Days Open'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;I am receiving this error message: Error in expression:')'expected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;Thanks..&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 18:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Please-Correct-syntax-for-using-Today/m-p/357672#M703593</guid>
      <dc:creator />
      <dc:date>2012-05-17T18:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help Please..Correct syntax for using Today</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Please-Correct-syntax-for-using-Today/m-p/357673#M703594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create a variable for the Today() function in the laod script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vToday = Today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the expression i believe you had your ClaimNotifyDate field in the same expression as today function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ClaimStatus&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;F&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;StatusDate&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ClaimNotifyDate&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; ,&lt;STRONG&gt;&lt;EM style="font-size: 9pt; color: gray;"&gt;$(=today() - ClaimNotifyDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: maroon;"&gt;'Days Open'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ClaimStatus&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;F&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;StatusDate&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ClaimNotifyDate&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; ,&lt;STRONG&gt;&lt;EM style="font-size: 9pt; color: gray;"&gt;$(vToday)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ClaimNotifyDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon;"&gt;'Days Open'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something to worry about here is that you want to have your date fields recognized as date fields.&amp;nbsp; So you still may have issues returning proper data and that;s most likely due to the format of the date fields you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 18:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Please-Correct-syntax-for-using-Today/m-p/357673#M703594</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2012-05-17T18:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help Please..Correct syntax for using Today</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Please-Correct-syntax-for-using-Today/m-p/357674#M703595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How often is this reloaded? I don't know if the values in the script get updated if it's not reloaded. If it's reloaded every day, there's no need for a variable.&lt;/P&gt;&lt;P&gt;You also don't need the dollar sign expansion. Just use your original expression (assuming the other fields are formatted properly as dates) - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ClaimStatus&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;F&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;StatusDate&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ClaimNotifyDate&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; , Today() - ClaimNotifyDate&lt;SPAN style="font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: maroon;"&gt;'Days Open'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 18:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Please-Correct-syntax-for-using-Today/m-p/357674#M703595</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-05-17T18:33:15Z</dc:date>
    </item>
    <item>
      <title>Help Please..Correct syntax for using Today</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Please-Correct-syntax-for-using-Today/m-p/357675#M703596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Daniel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing the correct answer. To answer your question regards to reloading the data, currently I am reloading it, its not currently scheduled. Once scheduled it will probably be weekly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 20:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Please-Correct-syntax-for-using-Today/m-p/357675#M703596</guid>
      <dc:creator />
      <dc:date>2012-05-23T20:57:29Z</dc:date>
    </item>
  </channel>
</rss>

