<?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: Error in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967467#M331516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the where exists but still i am not getting the correct count when joining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 04:14:09 GMT</pubDate>
    <dc:creator>naziralala</dc:creator>
    <dc:date>2015-12-09T04:14:09Z</dc:date>
    <item>
      <title>Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967462#M331511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;My script is giving an incorrect number in case of bookings only.&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Here is my script...&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Let vCurrYear=Year(Today());&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[Sency]:&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [B Number] ,&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DepYear] as [Travel Year],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; [SupplierID],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; Description,&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; Price,&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Duration,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Count&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; Resident [BItem];&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;left join&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Load&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;SupplierID,&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[H Name] as [HCName]&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Resident [HView];&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;left Join&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;[B Number] &lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; [Agency Code],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;BookingDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; GFlag,&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; [BCounter]&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Resident [BHeader];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;left Join&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; [&lt;/SPAN&gt;Agency Code&lt;SPAN style="font-size: 13.3333px;"&gt;]&lt;/SPAN&gt; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; [AgencyNme]&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; Resident Agency;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;//For 2014 and For 2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[Output Agency(2014 and 2015)]:&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;LOAD&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[&lt;SPAN style="font-size: 13.3333px;"&gt;Agency Code],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt; [AgencyNme],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; [HCName],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;[B Number]&lt;/SPAN&gt;&amp;amp;'-'&amp;amp;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Agency Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;amp;'-'&amp;amp;[AgencyNme]&amp;amp;'-'&amp;amp;&lt;SPAN style="font-size: 13.3333px;"&gt; [HCName] as Key,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; sum(Price) as [CYH Rev],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(&lt;SPAN style="font-size: 13.3333px;"&gt; [BCounter]) as [CYBookings],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; sum(Duration*Count)&amp;nbsp; as [CYR N]&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Resident [Sency]&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; WHERE &lt;SPAN style="font-size: 13.3333px;"&gt;[Travel Year]&lt;/SPAN&gt; = $(vCurrYear)&amp;nbsp; &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; and GFlag='Y' &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; and index([ Agency Code],'N00')=0&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; and [Description]='Hotel'&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; Group By [ Agency Code],[AgencyNme],&lt;SPAN style="font-size: 13.3333px;"&gt; [HCName];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Let vCurrYear=($(vCurrYear)-1); &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Join ([Output Agency(2014 and 2015)])&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Load &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;LOAD&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[&lt;SPAN style="font-size: 13.3333px;"&gt;Agency Code],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt; [AgencyNme],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; [HCName],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Agency Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;amp;'-'&amp;amp;[AgencyNme]&amp;amp;'-'&amp;amp;&lt;SPAN style="font-size: 13.3333px;"&gt; [HCName] as Key,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; sum(Price) as [PYH Rev],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(&lt;SPAN style="font-size: 13.3333px;"&gt; [BCounter]) as [PYBookings],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; sum(Duration*Count)&amp;nbsp; as [PYR N]&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Resident [Sency]&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; WHERE &lt;SPAN style="font-size: 13.3333px;"&gt;[Travel Year]&lt;/SPAN&gt; = $(vCurrYear)&amp;nbsp; &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; and GFlag='Y' &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; and index([ Agency Code],'N00')=0&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; and [Description]='Hotel'&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;and &lt;SPAN style="font-size: 10pt;"&gt;BookingDate&amp;lt;='11/29/2014'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; Group By [ Agency Code],[AgencyNme],&lt;SPAN style="font-size: 13.3333px;"&gt; [HCName];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Drop field Key from [Output Agency(2014 and 2015)];&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Store&amp;nbsp; [&lt;SPAN style="font-size: 13.3333px;"&gt;Agency Code],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; [AgencyName] as [Agency Name],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt; [HCName] as [Hotel],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[CYH Rev],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp; [CYBookings],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[CYR N],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[PYH Rev],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[PYBookings],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;[PYR N]&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;From [Output Agency(2014 and 2015)]&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;INTO [$(vOutfile)](txt);&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Drop Table [Sency];&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Drop Table [Output Agency(2014 and 2015)];&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;My problem in the output is that the bookings are not recorded correct, but the revenue and Duration count is correct.&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Please assist.&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.3333px;"&gt;Thanks in advance.&lt;/P&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt;&lt;IMG class="jive-image ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 03:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967462#M331511</guid>
      <dc:creator>naziralala</dc:creator>
      <dc:date>2015-12-08T03:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967463#M331512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel the problem is with the joins your doing ...check the join conditions one by one you will get the error &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 05:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967463#M331512</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-12-08T05:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967464#M331513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/173211"&gt;naziralala&lt;/A&gt;,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please take all the columns (except measures) in group by clause.You missed &lt;SPAN style="font-size: 13.3333px;"&gt;[B Number] column in group by, please take this in group by and run the script:- &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Output Agency(2014 and 2015)]:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Agency Code],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[AgencyNme],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[HCName],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff6600; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;[B Number]&lt;/SPAN&gt;&amp;amp;'-'&amp;amp;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Agency Code&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;amp;'-'&amp;amp;[AgencyNme]&amp;amp;'-'&amp;amp;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; [HCName] as Key,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; sum(Price) as [CYH Rev],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; [BCounter]) as [CYBookings],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; sum(Duration*Count)&amp;nbsp; as [CYR N]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident [Sency]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; WHERE &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[Travel Year]&lt;/SPAN&gt; = $(vCurrYear)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; and GFlag='Y'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; and index([ Agency Code],'N00')=0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; and [Description]='Hotel'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Group By &lt;SPAN style="color: #ff6600; font-size: 13.3333px;"&gt;[B Number],&lt;/SPAN&gt;[ Agency Code],[AgencyNme],&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; [HCName];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Raghvendra&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 06:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967464#M331513</guid>
      <dc:creator>raghvendrasingh</dc:creator>
      <dc:date>2015-12-08T06:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967465#M331514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right..&lt;/P&gt;&lt;P&gt;Can you guide me.. I am getting more numbers only for bookings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 18:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967465#M331514</guid>
      <dc:creator>naziralala</dc:creator>
      <dc:date>2015-12-08T18:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967466#M331515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in the Join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inspite of using where exists function, it is not helping still.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone assist..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 21:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967466#M331515</guid>
      <dc:creator>naziralala</dc:creator>
      <dc:date>2015-12-08T21:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967467#M331516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the where exists but still i am not getting the correct count when joining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 04:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/967467#M331516</guid>
      <dc:creator>naziralala</dc:creator>
      <dc:date>2015-12-09T04:14:09Z</dc:date>
    </item>
  </channel>
</rss>

