<?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: IF() to Set Analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094341#M363642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-sql" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN class="func" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #ff1493; font-size: 9pt !important;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;({$&amp;lt;[WorkedFlag] = {1} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;) - &lt;/SPAN&gt;&lt;SPAN class="func" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #ff1493; font-size: 9pt !important;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;({$&amp;lt;[AdditionalFlag] = {1}, &lt;SPAN&gt;[Employment Category]*={'TEST'}&lt;/SPAN&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2016 03:32:35 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2016-02-24T03:32:35Z</dc:date>
    <item>
      <title>IF() to Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094335#M363636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know how to turn an if statement to a fully set analysis?. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14562301265738992 jive_text_macro" jivemacro_uid="_14562301265738992"&gt;
&lt;P&gt;=IF([Employment Category] = 'TEST', &lt;/P&gt;
&lt;P&gt;&amp;nbsp; SUM({$&amp;lt;[WorkedFlag] = {1} &amp;gt;} Time) - SUM({$&amp;lt;[AdditionalFlag] = {1} &amp;gt;} Time),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SUM({$&amp;lt;[WorkedFlag] = {1} &amp;gt;} Time))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 12:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094335#M363636</guid>
      <dc:creator>Sahal</dc:creator>
      <dc:date>2016-02-23T12:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: IF() to Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094336#M363637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the result will be two expressions, once you have two conditionals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-sql" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;SPAN class="func" style="font-weight: inherit; font-style: inherit; color: #ff1493; font-size: 9pt !important; background-color: inherit;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;({$&amp;lt;[WorkedFlag] = {1},&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-style: inherit; font-weight: inherit; font-size: 9pt !important;"&gt;[Employment Category] = {&lt;/SPAN&gt;&lt;SPAN class="string" style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-style: inherit; font-weight: inherit; color: blue; font-size: 9pt !important;"&gt;'TEST'}&lt;/SPAN&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;) - &lt;/SPAN&gt;&lt;SPAN class="func" style="font-weight: inherit; font-style: inherit; color: #ff1493; font-size: 9pt !important; background-color: inherit;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;({$&amp;lt;[AdditionalFlag] = {1},&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-style: inherit; font-weight: inherit; font-size: 9pt !important;"&gt;[Employment Category] = {&lt;/SPAN&gt;&lt;SPAN class="string" style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-style: inherit; font-weight: inherit; color: blue; font-size: 9pt !important;"&gt;'TEST'}&lt;/SPAN&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;),&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;SPAN class="func" style="font-weight: inherit; font-style: inherit; color: #ff1493; font-size: 9pt !important; background-color: inherit;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;({$&amp;lt;[WorkedFlag] = {1}, &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-style: inherit; font-weight: inherit; font-size: 9pt !important;"&gt;[Employment Category] -= {&lt;/SPAN&gt;&lt;SPAN class="string" style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-style: inherit; font-weight: inherit; color: blue; font-size: 9pt !important;"&gt;'TEST'}&lt;/SPAN&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;))&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094336#M363637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T18:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: IF() to Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094337#M363638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If&lt;/STRONG&gt; should be there&amp;nbsp; , if&amp;nbsp; you want a conditional value, or you want to split the condition into two expressions means you can go with mauri suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's Your desired output!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094337#M363638</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-23T18:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF() to Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094338#M363639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like &lt;EM&gt;as my question was&lt;/EM&gt; to replace my if statement (if possible) to only include an set analysis insted.&lt;/P&gt;&lt;P&gt;I do &lt;STRONG&gt;NOT &lt;/STRONG&gt;want do make 2 expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My desired output would be if i choose a user that have Employment Category "test" but only choose the user and not the column and the value "test" then the workflag - additional time will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however if i choose a user that do not have "test" then the calculation would be only workflag time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094338#M363639</guid>
      <dc:creator>Sahal</dc:creator>
      <dc:date>2016-02-23T18:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: IF() to Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094339#M363640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can it be as simple as getselectedvalue(employment category) = 'TEST' or something to try to find if there is a value in the field that has "test" and the have the 2 set analysis like i have it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 19:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094339#M363640</guid>
      <dc:creator>Sahal</dc:creator>
      <dc:date>2016-02-23T19:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: IF() to Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094340#M363641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How's about this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;[WorkedFlag] = {1} &amp;gt;} Time) -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM({$&amp;lt;[AdditionalFlag] = {1}, [Employment Category] = {"Test"} &amp;gt;} Time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That second sum should only pick up where AdditionalFlag = 1 and Category = Test&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094340#M363641</guid>
      <dc:creator />
      <dc:date>2016-02-23T21:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: IF() to Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094341#M363642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-sql" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN class="func" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #ff1493; font-size: 9pt !important;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;({$&amp;lt;[WorkedFlag] = {1} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;) - &lt;/SPAN&gt;&lt;SPAN class="func" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #ff1493; font-size: 9pt !important;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;({$&amp;lt;[AdditionalFlag] = {1}, &lt;SPAN&gt;[Employment Category]*={'TEST'}&lt;/SPAN&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 03:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-to-Set-Analysis/m-p/1094341#M363642</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-24T03:32:35Z</dc:date>
    </item>
  </channel>
</rss>

