<?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: Expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677794#M245875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i am in your place, i would use peek function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLDDataQVD:&lt;/P&gt;&lt;P&gt;Load max(date) as maxdate&lt;/P&gt;&lt;P&gt;from oldQVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vAsOfdate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = peek('maxdate',0,'OLDDataQVD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newdata:&lt;/P&gt;&lt;P&gt;load * ;&lt;/P&gt;&lt;P&gt;sql select * from table&lt;/P&gt;&lt;P&gt;where date&amp;gt;=$(vAsOfdate) &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 19:36:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-23T19:36:35Z</dc:date>
    <item>
      <title>Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677793#M245874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my QlikView application, I am bringing in snapshot data which is the 10th of every month. In my SQL, I am bringing in only data for that particular day using the where clause below:&lt;/P&gt;&lt;P&gt;date = to_date('10-'||to_char(sysdate,'mon-rrrr'),'dd-mon-rrrr')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this does not work and has no records when it is before the 10th of the current month. I am looking for a QlikView solution to fix this. Is there any expression that I could use to bring in data for the 10th of the previous month if it is before the 10th of the current month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 19:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677793#M245874</guid>
      <dc:creator />
      <dc:date>2014-09-23T19:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677794#M245875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i am in your place, i would use peek function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLDDataQVD:&lt;/P&gt;&lt;P&gt;Load max(date) as maxdate&lt;/P&gt;&lt;P&gt;from oldQVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vAsOfdate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = peek('maxdate',0,'OLDDataQVD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newdata:&lt;/P&gt;&lt;P&gt;load * ;&lt;/P&gt;&lt;P&gt;sql select * from table&lt;/P&gt;&lt;P&gt;where date&amp;gt;=$(vAsOfdate) &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 19:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677794#M245875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-23T19:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677795#M245876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there is any sample app , we can be able to help you .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 19:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677795#M245876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-23T19:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677796#M245877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This data has no QVD. It runs once a month and brings in data for that date only. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 20:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677796#M245877</guid>
      <dc:creator />
      <dc:date>2014-09-23T20:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677797#M245878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this script while loading the qvd .. hope this helps...if still have any issue. Post some data in excel sheet .. i can help you ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vAsOfdate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = makedate(year(today()),month(today()),10);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;newdata:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load * ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sql select * from table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where date=$(vAsOfdate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 21:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677797#M245878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-23T21:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677798#M245879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay, this is no QVD, only script in QlikVIew. Would this still work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 23:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677798#M245879</guid>
      <dc:creator />
      <dc:date>2014-09-23T23:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677799#M245880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use an IF statement in the script to change the LOAD depending on the day of the month . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an ALL QlikView example. In your case, you could do the where filter in your SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if day(Today()) &amp;lt; 10 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Day(Date) as Day&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;/P&gt;&lt;P&gt;where Day(Date) = 10 and&amp;nbsp; month(Date)= month(AddMonths(Today(),-1))&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Day(Date) as Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;/P&gt;&lt;P&gt;where Day(Date) = 10 and Month(Date)=Month(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 23:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677799#M245880</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-23T23:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677800#M245881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI R S ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it would still work...if you see my new data it is pulling from SQL table. All we are doing here is declaring a variable whose value is a date every 10th of every current month ..After that we are pulling the data from database using that variable in the where clause...Please let me know if this helps......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another suggestion ,&amp;nbsp; if this is your situation&amp;nbsp; every 10th new is loaded into the table and old data is erased then ...write the script to pull the information from table. And schedule the application in publisher on every 10th of the month ..then your problem is solved..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/677800#M245881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-24T11:38:00Z</dc:date>
    </item>
  </channel>
</rss>

