<?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: Create Flag/New Field from 2 Different QVDs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255104#M396718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then plss try doing as said above..&lt;/P&gt;&lt;P&gt;Hope ur expression is correct only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If didn't get thn plss attach QVW ll try latr..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Feb 2017 12:01:05 GMT</pubDate>
    <dc:creator>sdmech81</dc:creator>
    <dc:date>2017-02-12T12:01:05Z</dc:date>
    <item>
      <title>Create Flag/New Field from 2 Different QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255099#M396713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to create a new field or flag using fields from 2 QVDs.&amp;nbsp; I can create it as a measure when creating a visualization in Qlik Sense but I'm looking to make it a dimension so I can use it as a filter selection.&amp;nbsp; If the statement reads true, I would like a 'Y' to generate in a field called 'On Time':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Words:&lt;/P&gt;&lt;P&gt;If there is an Order# present and the Order was Processed (Y or N) and Shipped before its Due Date then it is On Time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression as a measure:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If(len(trim([Order#]))&amp;gt;0 and [Order Processed] = 'Y' and &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Order Shipped Date] &amp;lt;= [Order Due Date], 'On Time', '-') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVD 1:&lt;/P&gt;&lt;P&gt;Order#,&lt;/P&gt;&lt;P&gt;Order Processed,&lt;/P&gt;&lt;P&gt;Order Shipped Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVD 2:&lt;/P&gt;&lt;P&gt;Order Due Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how to write it out for the Data Load Editor or where to place it in my script.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 20:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255099#M396713</guid>
      <dc:creator />
      <dc:date>2017-02-10T20:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create Flag/New Field from 2 Different QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255100#M396714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Sample Data to play around with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the 1st and 2nd table has any fields in common?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: &lt;/P&gt;&lt;P&gt;QVD1:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Order#,Order Processed,Order Shipped Date&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;QVD1:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Order#,Order Due Date&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 23:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255100#M396714</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2017-02-10T23:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Flag/New Field from 2 Different QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255101#M396715</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 need field based on which they r realated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that first check wthr the relationship exists btn table 1 and 2 ..If so, join both the table based on tht relation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then After join you can create one New field you are looking for using resident load&amp;nbsp; and your above expression looks correct..Try..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2017 02:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255101#M396715</guid>
      <dc:creator>sdmech81</dc:creator>
      <dc:date>2017-02-11T02:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create Flag/New Field from 2 Different QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255102#M396716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes both tables have the common field 'Customer ID'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Feb 2017 03:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255102#M396716</guid>
      <dc:creator />
      <dc:date>2017-02-12T03:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create Flag/New Field from 2 Different QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255103#M396717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes both tables have Customer ID as a common field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Feb 2017 03:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255103#M396717</guid>
      <dc:creator />
      <dc:date>2017-02-12T03:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create Flag/New Field from 2 Different QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255104#M396718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then plss try doing as said above..&lt;/P&gt;&lt;P&gt;Hope ur expression is correct only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If didn't get thn plss attach QVW ll try latr..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Feb 2017 12:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255104#M396718</guid>
      <dc:creator>sdmech81</dc:creator>
      <dc:date>2017-02-12T12:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create Flag/New Field from 2 Different QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255105#M396719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your&amp;nbsp; QVD 2 only has the [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Customer ID] &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;field in &lt;/SPAN&gt;common with &lt;SPAN style="font-size: 13.3333px;"&gt;QVD 1 but contains an [&lt;/SPAN&gt;&lt;/SPAN&gt;Order Due Date]?&lt;/P&gt;&lt;P&gt;So you only ever have one order per customer at the same time or do all orders per customer share the same due date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Feb 2017 21:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255105#M396719</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-02-12T21:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Flag/New Field from 2 Different QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255106#M396720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I loaded both tables and joined them by 'Customer ID' field.&amp;nbsp; I then placed the above expression in various places within my load script but was still getting an error.&amp;nbsp; Below is my load script and and expression, and the error in the syntax as noted by QLIK.&amp;nbsp; QLIK is saying my expression is wrong where I underlined and bolded in the expression.&amp;nbsp; Any suggestions?&amp;nbsp; Maybe I am placing it in the wrong place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Order_Details]:&lt;/P&gt;&lt;P&gt;LOAD [Customer ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Order Processed],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Order Shipped Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Product Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Order Scheduled Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM [lib://3. Shipping Global/Order_Details.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Customer_Details]:&lt;/P&gt;&lt;P&gt;LOAD [Customer ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Customer Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Order Due Date] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; FROM [lib://3. Shipping Global/Customer_Details.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(len(trim([Vaccine Order Number]))&amp;gt;0 and [Vaccine Administered Flag] = 'Y' and [Vaccine Documented Date] &amp;lt;= [Discharge Date]&lt;STRONG style="text-decoration: underline;"&gt;&lt;EM&gt;, 'GIVEN', '-')&lt;/EM&gt;&lt;/STRONG&gt; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255106#M396720</guid>
      <dc:creator />
      <dc:date>2017-02-13T13:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create Flag/New Field from 2 Different QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255107#M396721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;I apologize, I loaded the wrong script from another dashboard I am working on.&amp;nbsp; Here is the correct syntax:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;I loaded both tables and joined them by 'Customer ID' field.&amp;nbsp; I then placed the above expression in various places within my load script but was still getting an error.&amp;nbsp; Below is my load script and and expression, and the error in the syntax as noted by QLIK.&amp;nbsp; QLIK is saying my expression is wrong where I underlined and bolded in the expression.&amp;nbsp; Any suggestions?&amp;nbsp; Maybe I am placing it in the wrong place?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;[Order_Details]:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD [Customer ID],&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;[Order Number],&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp; [Order Processed],&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp; [Order Shipped Date],&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp; [Product Name],&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp; [Order Scheduled Date]&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FROM [lib://3. Shipping Global/Order_Details.qvd]&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;[Customer_Details]:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD [Customer ID],&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp; [Customer Name],&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp; [Order Due Date]&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FROM [lib://3. Shipping Global/Customer_Details.qvd]&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;If(len(trim([Order Number]))&amp;gt;0 and [Order Processed] = 'Y' and [Order Shipped Date] &amp;lt;= [Order Due Date]&lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;, 'GIVEN', '-')&lt;/EM&gt;&lt;/STRONG&gt; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Flag-New-Field-from-2-Different-QVDs/m-p/1255107#M396721</guid>
      <dc:creator />
      <dc:date>2017-02-13T13:52:32Z</dc:date>
    </item>
  </channel>
</rss>

