<?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 Re: Turning if statement into set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996967#M650761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dutchsky,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Try like this if don't-want any other selections like Field1,Field2 below give example helps you i guess &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;If(sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;operator={'AAA'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;total_hours={'&amp;gt;0'},Field1=,Field2=&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;total_hours*resource_quantity&lt;/SPAN&gt;)&amp;gt;500,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;500&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; font-size: 13px;"&gt;Class(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;operator={'AAA'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;total_hours={'&amp;gt;0'},Field1=,Field2=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;total_hours*resource_quantity&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;),30))&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2015 10:27:00 GMT</pubDate>
    <dc:creator>sunilkumarqv</dc:creator>
    <dc:date>2015-08-26T10:27:00Z</dc:date>
    <item>
      <title>Turning if statement into set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996963#M650757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys how do I change an if statement like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(if(operator= 'AAA' AND total_hours&amp;gt;0 , total_hours*resource_quantity, null())&amp;gt; 500, '&amp;gt;500', class(if(operator= 'AAA' AND total_hours&amp;gt;0 , total_hours*resource_quantity, null()), 30))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Into a statement witouth if but with set analysis. I know how to use set analysis with other functsions, apart from if..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 09:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996963#M650757</guid>
      <dc:creator />
      <dc:date>2015-08-26T09:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Turning if statement into set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996964#M650758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a misconception that all IFs can be replaced with set analysis. Try to share your business scenario, i.e. - how you would represent the report; using text box or any chart; if chart, what the dimension would be.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 09:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996964#M650758</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-08-26T09:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Turning if statement into set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996965#M650759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if you want to replace current expression with set analysis, you would have to create some flags in your load script (still using conditional IF statements) and then recall them in you set analysis. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in load script:&lt;BR /&gt;if(operator= 'AAA' AND total_hours &amp;gt; 0, 1, 0) AS Flag1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression with set analysis:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Flag1 = 1&amp;gt;} total_hours*resource_quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌ mentioned - stating that you can always replace IF with set analysis, is wrong. Split your IF statements into smaller chunks and create numeric flags in your load script. It will speed up your front end calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 10:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996965#M650759</guid>
      <dc:creator>kuczynska</dc:creator>
      <dc:date>2015-08-26T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Turning if statement into set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996966#M650760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. I purely wanted to make use of set analysis so that any selections that I make do not influence other graphs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already make use of states, so that is not an option anymore since you can only assign one state per object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 10:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996966#M650760</guid>
      <dc:creator />
      <dc:date>2015-08-26T10:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Turning if statement into set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996967#M650761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dutchsky,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Try like this if don't-want any other selections like Field1,Field2 below give example helps you i guess &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;If(sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;operator={'AAA'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;total_hours={'&amp;gt;0'},Field1=,Field2=&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;total_hours*resource_quantity&lt;/SPAN&gt;)&amp;gt;500,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;500&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; font-size: 13px;"&gt;Class(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;operator={'AAA'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;total_hours={'&amp;gt;0'},Field1=,Field2=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;total_hours*resource_quantity&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;),30))&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 10:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-if-statement-into-set-analysis/m-p/996967#M650761</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2015-08-26T10:27:00Z</dc:date>
    </item>
  </channel>
</rss>

