<?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 Expression in load script (newbie question) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767293#M1033554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm new to Qlikview and i'm trying to put an expression in the load script for the 1st time and i can't work out why it's not working. Please could you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transactions:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ([Behavior Score Criteria] = 'Samples_Form_Lit_Request',if(count(Material_Name)&amp;gt;0 and count(litTitle)&amp;gt;0 and count(formTitle) &amp;gt;0 and ApprovalStatus='Approved',0,10)) as [Behaviour Score]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything obvious i'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2015 17:11:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-26T17:11:52Z</dc:date>
    <item>
      <title>Expression in load script (newbie question)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767293#M1033554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm new to Qlikview and i'm trying to put an expression in the load script for the 1st time and i can't work out why it's not working. Please could you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transactions:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ([Behavior Score Criteria] = 'Samples_Form_Lit_Request',if(count(Material_Name)&amp;gt;0 and count(litTitle)&amp;gt;0 and count(formTitle) &amp;gt;0 and ApprovalStatus='Approved',0,10)) as [Behaviour Score]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything obvious i'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 17:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767293#M1033554</guid>
      <dc:creator />
      <dc:date>2015-01-26T17:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in load script (newbie question)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767294#M1033555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are using an aggregation function (count) without a corresponding group by clause It looks like.&lt;/P&gt;&lt;P&gt;Your code as it stands will be loaded row by row, so the count won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you looking for a row by row evaluation to create that field? Or do you want to group it up and count?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want this row by row and you are just trying to check if the fields contain any value (rather than want a count), the below should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ([Behavior Score Criteria] = 'Samples_Form_Lit_Request',if(Len(Material_Name)&amp;gt;0 and Len(litTitle)&amp;gt;0 and Len(formTitle) &amp;gt;0 and ApprovalStatus='Approved',0,10)) as [Behaviour Score]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise look to add a group by&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 18:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767294#M1033555</guid>
      <dc:creator />
      <dc:date>2015-01-26T18:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in load script (newbie question)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767295#M1033556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if ([Behavior Score Criteria] = 'Samples_Form_Lit_Request',if(Material_Name)&amp;gt;0 and litTitle&amp;gt;0 and formTitle &amp;gt;0 and ApprovalStatus='Approved',0,10)) as [Behaviour Score],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;try to take out the count(field) IN THE EXPRESION IN THE SCRIPT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;good luck&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Fernando&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 18:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767295#M1033556</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2015-01-26T18:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in load script (newbie question)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767296#M1033557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks JoeSimmons! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for a row by row evaluation rather than a count, your method worked great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 08:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767296#M1033557</guid>
      <dc:creator />
      <dc:date>2015-01-27T08:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in load script (newbie question)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767297#M1033558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries, glad to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 08:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-load-script-newbie-question/m-p/767297#M1033558</guid>
      <dc:creator />
      <dc:date>2015-01-27T08:45:06Z</dc:date>
    </item>
  </channel>
</rss>

