<?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 convert if statement to set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set/m-p/318663#M117440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a variable vKEYID that is equal to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Week) or sum({$&amp;lt;KEY_ID={'work'}&amp;gt;} [Accounted quantity]) = 0,'work prel','work')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then the expression would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;KEY_ID={'$(vKEYID)'}&amp;gt;} [Accounted quantity])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2011 01:16:56 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2011-12-22T01:16:56Z</dc:date>
    <item>
      <title>convert if statement to set</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set/m-p/318662#M117439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi, I wonder if its possibel to create a set expression of the below if statement ?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;DIV&gt;if&lt;/DIV&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;KEY_ID={'work prel'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Accounted quantity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;BR /&gt; if(sum({$&amp;lt;KEY_ID={'work}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Accounted quantity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = 0&lt;BR /&gt; ,sum({$&amp;lt;KEY_ID={work prel}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Accounted quantity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; ,sum({$&amp;lt;KEY_ID={'work'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Accounted quantity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 00:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set/m-p/318662#M117439</guid>
      <dc:creator />
      <dc:date>2011-12-22T00:20:50Z</dc:date>
    </item>
    <item>
      <title>convert if statement to set</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set/m-p/318663#M117440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a variable vKEYID that is equal to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Week) or sum({$&amp;lt;KEY_ID={'work'}&amp;gt;} [Accounted quantity]) = 0,'work prel','work')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then the expression would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;KEY_ID={'$(vKEYID)'}&amp;gt;} [Accounted quantity])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 01:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set/m-p/318663#M117440</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2011-12-22T01:16:56Z</dc:date>
    </item>
    <item>
      <title>convert if statement to set</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set/m-p/318664#M117441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Is that soultion more time efficient for the user ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 07:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set/m-p/318664#M117441</guid>
      <dc:creator />
      <dc:date>2011-12-22T07:25:27Z</dc:date>
    </item>
    <item>
      <title>convert if statement to set</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set/m-p/318665#M117442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To me it is alot cleaner y easier to write and maintain.&amp;nbsp; I don't know if it is easier to understand and I don't think it will calculate is less time.&amp;nbsp; The only way to find out is by testing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 18:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set/m-p/318665#M117442</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2011-12-22T18:02:33Z</dc:date>
    </item>
  </channel>
</rss>

