<?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 Why does my formula work in a Chart Object but not in the Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-does-my-formula-work-in-a-Chart-Object-but-not-in-the-Script/m-p/178197#M45488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nick,&lt;/P&gt;&lt;P&gt;Thank you for your help, I just added your attached to my script and now the lables are correct in the New field titled 'Non Spa' however the Sales amounts are now all the same which shouldn't be the case. .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jan 2011 22:16:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-20T22:16:14Z</dc:date>
    <item>
      <title>Why does my formula work in a Chart Object but not in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-my-formula-work-in-a-Chart-Object-but-not-in-the-Script/m-p/178195#M45486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have a field named Reporting Level that contains the following record categories:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;SPA&lt;/DIV&gt;&lt;DIV&gt;Parts&lt;/DIV&gt;&lt;DIV&gt;Accessories&lt;/DIV&gt;&lt;DIV&gt;Demo SPA&lt;/DIV&gt;&lt;DIV&gt;Other&lt;/DIV&gt;&lt;DIV&gt;Freight&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am only concerned with records that are not SPA, Demo SPA or Freight, as a result, i created the below formula as a calculated Dimension called [Non Spa], and in my pivot table chart , i can select suppress Null Values and then my chart displays exactly what i want.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;=IF([Reporting Level]='Spa',isnull,IF([Reporting Level]='Demo Spa',isnull,IF([Reporting Level]='Freight',isnull,[Reporting Level])))&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;However, i dont want to have to add the above calculated dimension into every chart that i create, so i decided to build this into the script to make this calculated dimension a NEW dimension&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;but, this formula doesnt work. Why not and is there another solution. I have just started to learn set analysis so i have not been able to put the above into set analysis.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;any help is greatly appreciated.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 20:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-my-formula-work-in-a-Chart-Object-but-not-in-the-Script/m-p/178195#M45486</guid>
      <dc:creator />
      <dc:date>2011-01-20T20:47:31Z</dc:date>
    </item>
    <item>
      <title>Why does my formula work in a Chart Object but not in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-my-formula-work-in-a-Chart-Object-but-not-in-the-Script/m-p/178196#M45487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is your NoSpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 21:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-my-formula-work-in-a-Chart-Object-but-not-in-the-Script/m-p/178196#M45487</guid>
      <dc:creator />
      <dc:date>2011-01-20T21:26:39Z</dc:date>
    </item>
    <item>
      <title>Why does my formula work in a Chart Object but not in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-my-formula-work-in-a-Chart-Object-but-not-in-the-Script/m-p/178197#M45488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nick,&lt;/P&gt;&lt;P&gt;Thank you for your help, I just added your attached to my script and now the lables are correct in the New field titled 'Non Spa' however the Sales amounts are now all the same which shouldn't be the case. .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 22:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-my-formula-work-in-a-Chart-Object-but-not-in-the-Script/m-p/178197#M45488</guid>
      <dc:creator />
      <dc:date>2011-01-20T22:16:14Z</dc:date>
    </item>
  </channel>
</rss>

