<?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 Moving chart expression to the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720150#M258622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following expression in a straight table in my QV application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;IF(&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;InsID1='SP' OR isnull(InsID1) and&lt;BR /&gt;isnull(InsID2) and&lt;BR /&gt;isnull(InsID3) and&lt;BR /&gt;isnull(InsID4) and&lt;BR /&gt;isnull(InsID5&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;),'Uninsured','Insured') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It works fine as an expression in the chart, but I want to move this to the script, creating a new field called InsuranceStatus, that would have a value of either Insured or Uninsured.&amp;nbsp; So far, my attempts to include this in the script have failed.&amp;nbsp; It's probably a syntax thing.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can anyone offer some ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 16:38:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-29T16:38:59Z</dc:date>
    <item>
      <title>Moving chart expression to the script</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720150#M258622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following expression in a straight table in my QV application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;IF(&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;InsID1='SP' OR isnull(InsID1) and&lt;BR /&gt;isnull(InsID2) and&lt;BR /&gt;isnull(InsID3) and&lt;BR /&gt;isnull(InsID4) and&lt;BR /&gt;isnull(InsID5&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;),'Uninsured','Insured') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It works fine as an expression in the chart, but I want to move this to the script, creating a new field called InsuranceStatus, that would have a value of either Insured or Uninsured.&amp;nbsp; So far, my attempts to include this in the script have failed.&amp;nbsp; It's probably a syntax thing.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can anyone offer some ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720150#M258622</guid>
      <dc:creator />
      <dc:date>2014-09-29T16:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Moving chart expression to the script</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720151#M258623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you paste in the load statement script you have so far ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720151#M258623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-29T16:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Moving chart expression to the script</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720152#M258624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! &lt;/P&gt;&lt;P&gt;Are you finding script errors, or the if doesn't shows the result that you're expecting? Maybe will need to include some parentheses on that if expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(InsID1='SP' OR (isnull(InsID1) and isnull(InsID2) and isnull(InsID3) and isnull(InsID4) and isnull(InsID5)),'Uninsured','Insured')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720152#M258624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-29T16:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Moving chart expression to the script</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720153#M258625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Gabriel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the same thing, but the script does not like the comma before "Uninsured'.&amp;nbsp; I think I'd need to add something like "AS InsuranceStatus" in there somewhere to create and populate the new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill, the script is long and complicated, and would probably detract from the conversation on this particular issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720153#M258625</guid>
      <dc:creator />
      <dc:date>2014-09-29T16:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Moving chart expression to the script</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720154#M258626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you will need to make something like&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;"&gt;IF(InsID1='SP' OR (isnull(InsID1) and isnull(InsID2) and isnull(InsID3) and isnull(InsID4) and isnull(InsID5)),'Uninsured','Insured') as I&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;nsuranceStatus,&lt;/SPAN&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;&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've forgot to put that on the "if".&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;Regards, &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;Gabriel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 17:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720154#M258626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-29T17:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Moving chart expression to the script</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720155#M258627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Gabriel.&amp;nbsp; That worked perfectly!&amp;nbsp; I'm not sure what I missed, but you found it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 17:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-chart-expression-to-the-script/m-p/720155#M258627</guid>
      <dc:creator />
      <dc:date>2014-09-29T17:41:12Z</dc:date>
    </item>
  </channel>
</rss>

