<?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 [ASK] common AsOfDate script issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159281#M33987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kribo,&lt;/P&gt;&lt;P&gt;The probelem is with the script. When you write&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;LOAD&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;TRANS_SAHAM_DATE &lt;B&gt;AS&lt;/B&gt; AsOfDate,&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;1 &lt;B&gt;AS&lt;/B&gt; YesterdayFlag,&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Date(TRANS_SAHAM_DATE-1) &lt;B&gt;AS&lt;/B&gt; TRANS_SAHAM_DATE&lt;/P&gt;&lt;P&gt;&lt;B&gt;RESIDENT&lt;/B&gt; tbl_trans_saham ;&lt;/P&gt;&lt;P&gt;see then what happens for the date 09/08/2010, AsOfDate as 09/08/2010 but the TRANS_SAHAM_DATE is 08/08/2010 which is not there in the AsOfDate. so the YesterdayFlag does not get any value for that date...So 0 is the output. Therefore you have to change the logic in the script i believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Aug 2010 05:42:13 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2010-08-13T05:42:13Z</dc:date>
    <item>
      <title>[ASK] common AsOfDate script issue</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159280#M33986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello..&lt;/P&gt;&lt;P&gt;i found an issue about AsOfDate function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use AsOfDate to compare result between current day volume and yesterday volume&lt;/P&gt;&lt;P&gt;but it can only get the yesterday result, not the day before yesterday&lt;/P&gt;&lt;P&gt;just like the picture below :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2121_sourceID:2121" /&gt;&lt;/P&gt;&lt;P&gt;A picture i use AsOfDate, but when the date is 09/08/2010 the yesterday volume is 0&lt;/P&gt;&lt;P&gt;the correct one that it must have 06/08/2010 volume&lt;/P&gt;&lt;P&gt;if i use above function, it can't sort by expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to make AsOfDate function able to do that?&lt;/P&gt;&lt;P&gt;i mean..i want to AsOfDate able to get the volume just like above function did&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also have attached the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thx..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8524.tes-compare.rar:550:0]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 03:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159280#M33986</guid>
      <dc:creator />
      <dc:date>2010-08-13T03:47:45Z</dc:date>
    </item>
    <item>
      <title>[ASK] common AsOfDate script issue</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159281#M33987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kribo,&lt;/P&gt;&lt;P&gt;The probelem is with the script. When you write&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;LOAD&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;TRANS_SAHAM_DATE &lt;B&gt;AS&lt;/B&gt; AsOfDate,&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;1 &lt;B&gt;AS&lt;/B&gt; YesterdayFlag,&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Date(TRANS_SAHAM_DATE-1) &lt;B&gt;AS&lt;/B&gt; TRANS_SAHAM_DATE&lt;/P&gt;&lt;P&gt;&lt;B&gt;RESIDENT&lt;/B&gt; tbl_trans_saham ;&lt;/P&gt;&lt;P&gt;see then what happens for the date 09/08/2010, AsOfDate as 09/08/2010 but the TRANS_SAHAM_DATE is 08/08/2010 which is not there in the AsOfDate. so the YesterdayFlag does not get any value for that date...So 0 is the output. Therefore you have to change the logic in the script i believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 05:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159281#M33987</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-08-13T05:42:13Z</dc:date>
    </item>
    <item>
      <title>[ASK] common AsOfDate script issue</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159282#M33988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tres..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's the problem, logic of syntax&lt;/P&gt;&lt;P&gt;maybe u have any idea?&lt;/P&gt;&lt;P&gt;i really need an idea for this case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thx..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 05:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159282#M33988</guid>
      <dc:creator />
      <dc:date>2010-08-13T05:45:53Z</dc:date>
    </item>
    <item>
      <title>[ASK] common AsOfDate script issue</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159283#M33989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;LOAD&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;TRANS_SAHAM_DATE &lt;B&gt;AS&lt;/B&gt; AsOfDate,&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;1 &lt;B&gt;AS&lt;/B&gt; YesterdayFlag,&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;peek(TRANS_SAHAM_DATE) &lt;B&gt;AS&lt;/B&gt; TRANS_SAHAM_DATE&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;RESIDENT&lt;/B&gt; tbl_trans_saham;&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;I think this would help you.&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;...tresesco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 06:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159283#M33989</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-08-13T06:00:16Z</dc:date>
    </item>
    <item>
      <title>[ASK] common AsOfDate script issue</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159284#M33990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello tres..&lt;/P&gt;&lt;P&gt;the peek doesn't work&lt;/P&gt;&lt;P&gt;it give the same number for yesterday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 08:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159284#M33990</guid>
      <dc:creator />
      <dc:date>2010-08-13T08:04:57Z</dc:date>
    </item>
    <item>
      <title>[ASK] common AsOfDate script issue</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159285#M33991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This because of renaming.&lt;/P&gt;&lt;P&gt;write it as - peek(TRANS_SAHAM_DATE) as PreTransDate&lt;/P&gt;&lt;P&gt;then recursive reference problem would not be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 08:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159285#M33991</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-08-13T08:25:18Z</dc:date>
    </item>
    <item>
      <title>[ASK] common AsOfDate script issue</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159286#M33992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello tres..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i did with this syntax :&lt;/P&gt;&lt;P&gt;peek(TRANS_SAHAM_DATE) as TRANS_SAHAM_DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the result show like pic below :&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/4073.peek1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/4073.peek1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i'm using this syntax : peek(TRANS_SAHAM_DATE) as pre_TRANS_SAHAM_DATE&lt;/P&gt;&lt;P&gt;then the result is :&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6445.peek1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6445.peek1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, the yesterday volume syntax is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Date=,YesterdayFlag={1}&amp;gt;} TRANS_SAHAM_VOLUME)&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;i'm kinda stuck&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 12:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-common-AsOfDate-script-issue/m-p/159286#M33992</guid>
      <dc:creator />
      <dc:date>2010-08-13T12:47:07Z</dc:date>
    </item>
  </channel>
</rss>

