<?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: IS EXPR CORRECT? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722157#M1055242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to mention the today's date like 'datefield = today' and yeasterday's date like&amp;nbsp; 'datefield = today-1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mention datefield instead of year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 10:34:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-14T10:34:25Z</dc:date>
    <item>
      <title>IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722153#M1055238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to find out the&amp;nbsp; today used space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;year={$(=year(today())}&amp;gt;}(usedspace/totalspace)*100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to find out the&amp;nbsp; yesterday used space &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;year={$(=year(today()-1)}&amp;gt;}(usedspace/totalspace)*100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am giving these 2 expressions in bar chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me these 2 are correct or not ? if not? correct me .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722153#M1055238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-14T10:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722154#M1055239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't give today's data.it will give this year data&lt;/P&gt;&lt;P&gt;year(today()) means assume today 14/10/2014 so it will give here year=2014 so it will calculate all the 2014 year data it won't calculate today's data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as it is second expression is also give 2013 year whole data it won't give yesterday's data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expressions are correct as per your requirement it is not give proper result to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722154#M1055239</guid>
      <dc:creator />
      <dc:date>2014-10-14T10:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722155#M1055240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression is correct but the purpose for which you are using is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you comparing Year field with today's Year and Yesterday's Year give you&lt;/P&gt;&lt;P&gt;Sum of same year i.e. 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically if want to comapare with today and Yestarday, You have to compare with complete dateField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. Your expression like&lt;/P&gt;&lt;P&gt;for Today&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;DateField={$(=Date(today())}&amp;gt;}(usedspace/totalspace))*100&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;It can be&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DateField={$(=Date(today())}&amp;gt;} usedspace)/Sum({&amp;lt;year={$(=year(today())})&amp;gt;}Total Space)*100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;For Yesterday&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;DateField={$(=Date(today()-1)}&amp;gt;}(usedspace/totalspace))*100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again check Date Format to get correct Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722155#M1055240</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-14T10:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722156#M1055241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here i have no date field what todo ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722156#M1055241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-14T10:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722157#M1055242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to mention the today's date like 'datefield = today' and yeasterday's date like&amp;nbsp; 'datefield = today-1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mention datefield instead of year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722157#M1055242</guid>
      <dc:creator />
      <dc:date>2014-10-14T10:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722158#M1055243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi malaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of datefield in above expression what i need to replace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722158#M1055243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-14T10:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722159#M1055244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have give the datefield in the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722159#M1055244</guid>
      <dc:creator />
      <dc:date>2014-10-14T10:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722160#M1055245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont have&amp;nbsp; any date field in my data &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722160#M1055245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-14T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722161#M1055247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have no date field, how do you identify today's records and yesterday's records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722161#M1055247</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-10-14T10:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722162#M1055249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is the main problem here .&lt;/P&gt;&lt;P&gt;but once server reloading every day it will create indidual&amp;nbsp; qvd for everday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722162#M1055249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-14T10:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722163#M1055251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your script use &lt;STRONG&gt;FileBaseName() &lt;/STRONG&gt;which returns Filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from which you have to seperate your datefield and use that datefield in your expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use combination of Subfield() or Date#() to find Date from fileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722163#M1055251</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-14T10:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722164#M1055252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use FileTime() also to get last Reload Time of that File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722164#M1055252</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-14T10:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722165#M1055253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u tell me what is the final expression&amp;nbsp; or instead of date field i have top put filename()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 11:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722165#M1055253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-14T11:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722166#M1055254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to find can u give me expresssion if u dont mine &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 11:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722166#M1055254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-14T11:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: IS EXPR CORRECT?</title>
      <link>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722167#M1055255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said,&lt;/P&gt;&lt;P&gt;once server reloading every day it will create indidual&amp;nbsp; qvd for everday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which means you have qvd for everyday then in your script you have to add&lt;/P&gt;&lt;P&gt;FileTime() which returns your QVD creation Time in Timestamp format.&lt;/P&gt;&lt;P&gt;Then you can use that Creation Time in your expression.&lt;/P&gt;&lt;P&gt;to compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify your script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, &lt;STRONG&gt;FileTime() as FileDate&lt;/STRONG&gt; from tableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add highlighted expression in your field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understand the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 11:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IS-EXPR-CORRECT/m-p/722167#M1055255</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-14T11:57:14Z</dc:date>
    </item>
  </channel>
</rss>

