<?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: If condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition/m-p/920301#M983595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your tables aren't associated at all (data islands), that's why your IF statement returns only 'unknown'. You have to think about some logical way to associate your tables - did you consider using intervalmatch() function for your Departments data? Right now we have two tables that aren't related at all, you have to connect them somehow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 09:03:50 GMT</pubDate>
    <dc:creator>kuczynska</dc:creator>
    <dc:date>2015-08-12T09:03:50Z</dc:date>
    <item>
      <title>If condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition/m-p/920300#M983594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Hello !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;A made some vizualisation introduction to the subject area (attached) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;IMG __jive_id="95716" alt="viz.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95716_viz.png" style="height: 311px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;From one hand, there is a table of person's tracks with time and x,y coordinates fixations ('Track' sheet in attached file) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;person_id&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;time&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;x&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;y&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01:03:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02:08:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;330&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;160&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;From other, there is a list of departments with their geometry presented as rectangles (x_from, x_to , y_from, y_to) ('Departments' sheet in attached file).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Dept_number&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;x_from&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;x_to&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;y_from&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;y_to&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Department 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;130&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Department 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;240&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;370&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;I am trying to develop report with the Dept_number fixation of the person in every time - &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10pt; line-height: 1.5em;"&gt; with person_id, time and Dept_number columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;person_id&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;time&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Dept_number&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01:03:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Department 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I am using the if condition in &lt;/SPAN&gt; expression, but it doesn't work&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; line-height: 1.5em;"&gt;if( x&amp;gt;=x_from and x &amp;lt;=x_to and y&amp;gt;=y_from and y&amp;lt;=y_to, Dept_number, 'unknown' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; line-height: 1.5em;"&gt;Let me know if&amp;nbsp; anyone have idea or decision of this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I hope I was clear, thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Ruslan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 08:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition/m-p/920300#M983594</guid>
      <dc:creator />
      <dc:date>2015-08-12T08:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition/m-p/920301#M983595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your tables aren't associated at all (data islands), that's why your IF statement returns only 'unknown'. You have to think about some logical way to associate your tables - did you consider using intervalmatch() function for your Departments data? Right now we have two tables that aren't related at all, you have to connect them somehow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition/m-p/920301#M983595</guid>
      <dc:creator>kuczynska</dc:creator>
      <dc:date>2015-08-12T09:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition/m-p/920302#M983596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruslan, added to what Kuczynska said about unrelated tables, there are more than one record for person1 and time 01:03:00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resuming, I think is better to do this in script, you can use something similar to this:&lt;/P&gt;&lt;P&gt;[Departments geometry]:&lt;/P&gt;&lt;P&gt;LOAD Dept_number, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xfrom as x_from, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xto as x_to, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yfrom as y_from, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yto as y_to&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\data.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Departments);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Persons track]:&lt;/P&gt;&lt;P&gt;LOAD person_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\data.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Track);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link_tmp:&lt;/P&gt;&lt;P&gt;IntervalMatch ( x ) LOAD x_from, x_to Resident [Departments geometry];&lt;/P&gt;&lt;P&gt;Left Join (Link_tmp) LOAD * Resident [Departments geometry];&lt;/P&gt;&lt;P&gt;DROP Table [Departments geometry];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link:&lt;/P&gt;&lt;P&gt;IntervalMatch (y) LOAD y_from, y_to Resident Link_tmp;&lt;/P&gt;&lt;P&gt;Left Join (Link) LOAD * Resident Link_tmp;&lt;/P&gt;&lt;P&gt;DROP table Link_tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition/m-p/920302#M983596</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-08-12T09:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition/m-p/920303#M983597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kuczynska!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it 's good idea,&amp;nbsp; I will go this way. Thanks for your reply &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 06:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition/m-p/920303#M983597</guid>
      <dc:creator />
      <dc:date>2015-08-13T06:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition/m-p/920304#M983598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben Marin!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It is really helpfull.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I removed the dublicated row with 1:03:00 time.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It seems that the script ! loads many variations (actually 196 rows in 'Link' table instead of 11 fixations) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG alt="reports.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95877_reports.png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I 'm thinking&amp;nbsp; if it is possibe to load&amp;nbsp; just one table with 3 columns by scripting : person_id, time, Dept_number &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 07:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition/m-p/920304#M983598</guid>
      <dc:creator />
      <dc:date>2015-08-13T07:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition/m-p/920305#M983599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruslan, after the link table is easy remove unrelated rows and let one table with 3 fields, just add this at then end of script:&lt;/P&gt;&lt;P&gt;Left Join ([Persons track])&lt;/P&gt;&lt;P&gt;LOAD Distinct x, y, Dept_number Resident Link;&lt;/P&gt;&lt;P&gt;DROP table Link;&lt;/P&gt;&lt;P&gt;DROP Fields x, y;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 07:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition/m-p/920305#M983599</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-08-13T07:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition/m-p/920306#M983600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben Marin !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works greate now.Thanks again! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 11:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition/m-p/920306#M983600</guid>
      <dc:creator />
      <dc:date>2015-08-13T11:51:50Z</dc:date>
    </item>
  </channel>
</rss>

