<?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 Script with Conditionals and multiple conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-with-Conditionals-and-multiple-conditions/m-p/1569025#M441954</link>
    <description>&lt;P&gt;Hi all, I'm struggling with the Script of my first Qlikview so any help Will be much appreciated!&lt;/P&gt;&lt;P&gt;-I have a Table with products and different measures and years (2010 and 2011)&lt;/P&gt;&lt;P&gt;-I need to create via Script a calculated field ([Type]) that basically does the following:&lt;/P&gt;&lt;P&gt;if year=2010 and Volume is positive AND year=2011 and Volume is positive then Type Will be OK&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if year=2010 and Volume is Negative AND year=2011 and Volume is positive then Type Will be NEW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if year=2010 and Volume is positive AND year=2011 and Volume is Negative then Type Will be DELISTED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot before hand&lt;/P&gt;</description>
    <pubDate>Sun, 14 Apr 2019 06:45:53 GMT</pubDate>
    <dc:creator>74Spain</dc:creator>
    <dc:date>2019-04-14T06:45:53Z</dc:date>
    <item>
      <title>Script with Conditionals and multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Script-with-Conditionals-and-multiple-conditions/m-p/1569025#M441954</link>
      <description>&lt;P&gt;Hi all, I'm struggling with the Script of my first Qlikview so any help Will be much appreciated!&lt;/P&gt;&lt;P&gt;-I have a Table with products and different measures and years (2010 and 2011)&lt;/P&gt;&lt;P&gt;-I need to create via Script a calculated field ([Type]) that basically does the following:&lt;/P&gt;&lt;P&gt;if year=2010 and Volume is positive AND year=2011 and Volume is positive then Type Will be OK&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if year=2010 and Volume is Negative AND year=2011 and Volume is positive then Type Will be NEW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if year=2010 and Volume is positive AND year=2011 and Volume is Negative then Type Will be DELISTED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot before hand&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 06:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-with-Conditionals-and-multiple-conditions/m-p/1569025#M441954</guid>
      <dc:creator>74Spain</dc:creator>
      <dc:date>2019-04-14T06:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script with Conditionals and multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Script-with-Conditionals-and-multiple-conditions/m-p/1569052#M441958</link>
      <description>Hi,&lt;BR /&gt;Can you show screenshots of what you have so far? Do you have a field 'Year' or a date from which you want to get the year (assuming you are aggregating up somehow &amp;amp; 2010/2011 are not just columns, but maybe they are)?&lt;BR /&gt;What is the field you would aggregate/join over - product, is there are product ID, or just a name …?&lt;BR /&gt;Are you sure you need to do this in script? If you do then your Type won't update if you filter (there might be value in filtering by something other than product/date, region say), if you do as an expression in a chart it will.&lt;BR /&gt;Cheers,&lt;BR /&gt;Chris.&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Apr 2019 17:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-with-Conditionals-and-multiple-conditions/m-p/1569052#M441958</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-04-14T17:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script with Conditionals and multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Script-with-Conditionals-and-multiple-conditions/m-p/1569057#M441959</link>
      <description>&lt;P&gt;Hi Chris, I have just a table not much to show sorry. [Year] is a field. The key is Product code and we have different measures for them, one is Volume and this is the one I need to define this calculated field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Type field is not changing, if one product has volume in 2010 and no volume in 2011 this mens is Delisted etc... This analysis is just for two years and we always use year end data, therefore [Type] does not change.&lt;/P&gt;&lt;P&gt;hope this is a bit more clear, otherwise I’ll try to attach more info.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 18:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-with-Conditionals-and-multiple-conditions/m-p/1569057#M441959</guid>
      <dc:creator>74Spain</dc:creator>
      <dc:date>2019-04-14T18:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script with Conditionals and multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Script-with-Conditionals-and-multiple-conditions/m-p/1569184#M441971</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.jpg" style="width: 921px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10176i1AD3ECEF449EAB1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.jpg" alt="example.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 07:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-with-Conditionals-and-multiple-conditions/m-p/1569184#M441971</guid>
      <dc:creator>74Spain</dc:creator>
      <dc:date>2019-04-15T07:15:12Z</dc:date>
    </item>
  </channel>
</rss>

