<?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: Script/Expression Help Required in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534415#M686552</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;No, I just pasted it over here incorrectly - it does have the extra ] in the actual expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Dec 2013 11:13:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-30T11:13:15Z</dc:date>
    <item>
      <title>Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534413#M686550</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;I am new to Qlikview and would appreciate some asistance on a problem I can't find a solution for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locks:&lt;/P&gt;&lt;P&gt;CONTRACT ACCOUNT&lt;/P&gt;&lt;P&gt;LOCK TYPE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;TO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workstream:&lt;/P&gt;&lt;P&gt;CONTRACT ACCOUNT,&lt;/P&gt;&lt;P&gt;CONTRACT NUMBER,&lt;/P&gt;&lt;P&gt;DOCUMENT NUMBER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Balance:&lt;/P&gt;&lt;P&gt;CONTRACT ACCOUNT,&lt;/P&gt;&lt;P&gt;CONTRACT NUMBER,&lt;/P&gt;&lt;P&gt;BALANCE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is create a straight table that totals the balance of Contract Accounts that have a Lock Type of '1' that are not in the Workstream table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[LOCK TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(CONTRACT NUMBER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), BALANCE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 0))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But because there are multiple contract accounts with 'u' type locks, it multiples the total balance by the number of times it features in the table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any help would be much appreciated, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;Glen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 10:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534413#M686550</guid>
      <dc:creator />
      <dc:date>2013-12-30T10:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534414#M686551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is the problem but it looks like you are missing a ] in the field LOCK TYPE. I guess it should be [LOCK TYPE]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534414#M686551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-30T11:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534415#M686552</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;No, I just pasted it over here incorrectly - it does have the extra ] in the actual expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534415#M686552</guid>
      <dc:creator />
      <dc:date>2013-12-30T11:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534416#M686553</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;Personally when there is a space in the field name I always put [] around the words. Along with the missing "]" as Nils points out there might be need for [ ] around Contract Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tyrone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534416#M686553</guid>
      <dc:creator />
      <dc:date>2013-12-30T11:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534417#M686554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a thought, if the document can be posted it might be wise to do that so people can have a quick play with the actual data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534417#M686554</guid>
      <dc:creator />
      <dc:date>2013-12-30T11:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534418#M686555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Glen,&lt;/P&gt;&lt;P&gt;Iam not completely sure how yopur data in this three tables look like but I have tried to make an expample. I have simply made an flag field in the script on LOCK TYPE and using this in the Straight table. Normally flags are a lot more efficient than make all possible calculations in the SET ANALYSIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully is this something you could find useful !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy new QlikYear !&lt;/P&gt;&lt;P&gt;/Tormod Hanstad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534418#M686555</guid>
      <dc:creator>thanstad</dc:creator>
      <dc:date>2013-12-30T11:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534419#M686556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glen ,&lt;/P&gt;&lt;P&gt;Just use nested if condition . It will work .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534419#M686556</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-12-30T11:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534420#M686557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tormond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I only want to see contract accounts with a '1' type lock from the locks table, but they have not been assigned to a workstream - so must not be in that table at all. The problem I am having is that a contract account can have multiple '1' type locks with different from and to dates, so when I am summing to balance - it's multiplying it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Glen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534420#M686557</guid>
      <dc:creator />
      <dc:date>2013-12-30T11:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534421#M686558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hey sibley hi, try this&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Locks_Map:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;mapping load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONTRACT ACCOUNT&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOCK TYPE&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;XXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Workstream:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONTRACT ACCOUNT,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;applymap('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Locks_Map&lt;/SPAN&gt;',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CONTRACT ACCOUNT&lt;/SPAN&gt;,null())&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LockType,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONTRACT NUMBER,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DOCUMENT NUMBER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Balance:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONTRACT ACCOUNT,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONTRACT NUMBER,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;BALANCE,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;drop table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Locks_Map&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hope this helps u....!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;---&amp;gt; sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; LockType&lt;/SPAN&gt;={1}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;BALANCE&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534421#M686558</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2013-12-30T11:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Expression Help Required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534422#M686559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works perfectly, thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Glen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 15:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Expression-Help-Required/m-p/534422#M686559</guid>
      <dc:creator />
      <dc:date>2013-12-30T15:50:45Z</dc:date>
    </item>
  </channel>
</rss>

