<?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 problem with if function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303787#M1187853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi justynak,&lt;/P&gt;&lt;P&gt;you can also do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.load data from both the excel sheets.&lt;/P&gt;&lt;P&gt;2.make qvd's of both the tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&amp;nbsp; store tablename into qvdname.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.fetch data from both qvd's under one table by join.&lt;/P&gt;&lt;P&gt;4. then you can compare the two fields from different tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 09:07:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-11T09:07:15Z</dc:date>
    <item>
      <title>problem with if function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303783#M1187849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'am new to QLikView and do not have much in common with coding.. Could anyone help me with the case:&lt;/P&gt;&lt;P&gt;I have data loaded from two Excel sheets (let's say 'Excel1' and 'Excel2'). Then I would like to create classification based on comparison of dates (each one from different Excel). &lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt;The names are: ‘Rev. rec. date’ and ‘Date (Installation)’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under loaded fields in Excel2 I wrote:&lt;/P&gt;&lt;P&gt;// classification&lt;/P&gt;&lt;P&gt;If ([Rev. rec. date]) &amp;lt;= [Date (Installation)], ‘correct’, ‘incorrect’) as Classification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, during load I receive comment that field [Rev. rec. date] was not found and I assume that it may be because it comes from different load of data. How should I indicate in this function that I refer to Excel1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any tip.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 09:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303783#M1187849</guid>
      <dc:creator />
      <dc:date>2011-08-26T09:13:38Z</dc:date>
    </item>
    <item>
      <title>problem with if function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303784#M1187850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi justynak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you have to concate the two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1: &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rev. rec. date&lt;/P&gt;&lt;P&gt;FROM Excel1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date (Insatallation)&lt;/P&gt;&lt;P&gt;FROM Excel2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you have a table with the fields Date1, Date2, Date3, Rev. rec. date, Date (Installation) and then you could do you if-statement. The joining of two tables based on one field, which is equal in each excel-sheets. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2: &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Rev. rec. date] &amp;lt;= [Date (Installation)], 'correct', 'incorrect') AS Classification&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Table1; //otherwise you have to rename the fields in Table2 with AS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 09:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303784#M1187850</guid>
      <dc:creator />
      <dc:date>2011-08-26T09:32:54Z</dc:date>
    </item>
    <item>
      <title>problem with if function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303785#M1187851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vicky, I'm reading this thread and I have a question about your use of Resident in conjunction with the joins above as I've seen this elsewhere and I'm wondering if this might solve a problem I'm having.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case above, why couldn't justynak put the IF statement right in the table 1 load like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Rev. rec. date] &amp;lt;= [Date (Installation)], 'correct', 'incorrect') AS Classification&lt;/P&gt;&lt;P&gt;FROM Excel1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that cause some kind of problem in Qlikview? I am basically doing that in my script but I'm seeing weird things happen like tables that won't join properly. I'm wondering if it's some limitation in the software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 20:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303785#M1187851</guid>
      <dc:creator />
      <dc:date>2011-10-10T20:52:55Z</dc:date>
    </item>
    <item>
      <title>problem with if function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303786#M1187852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello mhamberg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, that the field Date (Installation) is not a field in the first Excel-document, so you get the Error 'Field not found'. &lt;/P&gt;&lt;P&gt;That's why I have propose to connect this to tables in one table. Then the if-statement will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joining tables works fine, if the tables have one or more field names eqal. Therefor John has giving a quite good post: &lt;A _jive_internal="true" href="https://community.qlik.com/thread/30318"&gt;http://community.qlik.com/thread/30318&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards vicky &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 08:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303786#M1187852</guid>
      <dc:creator />
      <dc:date>2011-10-11T08:15:47Z</dc:date>
    </item>
    <item>
      <title>problem with if function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303787#M1187853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi justynak,&lt;/P&gt;&lt;P&gt;you can also do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.load data from both the excel sheets.&lt;/P&gt;&lt;P&gt;2.make qvd's of both the tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&amp;nbsp; store tablename into qvdname.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.fetch data from both qvd's under one table by join.&lt;/P&gt;&lt;P&gt;4. then you can compare the two fields from different tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 09:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303787#M1187853</guid>
      <dc:creator />
      <dc:date>2011-10-11T09:07:15Z</dc:date>
    </item>
    <item>
      <title>problem with if function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303788#M1187854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you try to use the Peek or Lookup functions ?&lt;/P&gt;&lt;P&gt;We don't know the associative link between your 2 tables but with those functions you will be able to read a value from another table without joining it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 09:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303788#M1187854</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-10-11T09:15:31Z</dc:date>
    </item>
    <item>
      <title>problem with if function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303789#M1187855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can fetch the value in variable using peek function:&lt;/P&gt;&lt;P&gt;let v = peek('Rev rec. date', 'rowno', 'tablename');&lt;/P&gt;&lt;P&gt;for rowno you can use variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by doing this you get the value of rec. date in a variable and then you can use this variable in your expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303789#M1187855</guid>
      <dc:creator />
      <dc:date>2011-10-11T11:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem with if function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303790#M1187856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vijit, hi vincent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, meanwhile I know this functions &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The proposal is from august, there I was glad to see the result I want to have before. Today I only explain, why I choose that way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And there are always different ways &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-function/m-p/303790#M1187856</guid>
      <dc:creator />
      <dc:date>2011-10-11T11:17:41Z</dc:date>
    </item>
  </channel>
</rss>

