<?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: Re: Set Analysis for IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596092#M1121132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micheal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks its working. I have one more issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(TotalAmount * pick(wildmatch('*MC*','*VISA*','*MY*','*IN*','*MPH*','*KKSG*','*'), 0.05,0.10,0.20,10,9,0.08,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;In this expression iam trying to replace values with variables something like below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;sum(TotalAmount * pick(wildmatch('*MC*','*VISA*','*MY*','*IN*','*MPH*','*KKSG*','*'), $(vfive),vten,0.20,10,9,0.08,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Iam using the following syntax $(vFive). The expression does not have any errors but it does calculate either. &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;"&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;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Feb 2014 19:41:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-01T19:41:08Z</dc:date>
    <item>
      <title>Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596084#M1121117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please help me on the following IF statements to convert to SET ANALYSIS in QLIKView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (Transaction_Value =100 then 10 * 2&lt;/P&gt;&lt;P&gt;IF (Transaction _Value = 200 then 10 * 3&lt;/P&gt;&lt;P&gt;IF( Transaction status in ( Clearing, Authorised) then OK))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 19:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596084#M1121117</guid>
      <dc:creator />
      <dc:date>2014-01-31T19:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596085#M1121119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the purpose of this expression? I don't think it's a good candidate for set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukasz &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 19:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596085#M1121119</guid>
      <dc:creator />
      <dc:date>2014-01-31T19:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596086#M1121121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with &lt;A href="https://community.qlik.com/qlik-users/82848"&gt;Lukasz Mastalerz&lt;/A&gt;, there is nothing here for set analysis.&amp;nbsp; But it can be written at least with a valid QV syntax:&lt;/P&gt;&lt;P&gt;IF (Transaction_Value =100, 200,&lt;/P&gt;&lt;P&gt;IF (Transaction _Value = 200, 300,&lt;/P&gt;&lt;P&gt;IF( match("Transaction status", 'Clearing', 'Authorised'), 'OK')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 19:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596086#M1121121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T19:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596087#M1121122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Earlier was an example.&lt;/P&gt;&lt;P&gt;The Scenario is something as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Want to basically calculate commission - Here commission is an expression.Now based on the Certain dimesions I would be calculating the Commission. So my actual expression looks like this below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(InsuranceGroup LIKE '*MC*',TotalAmount*0.05,&lt;/P&gt;&lt;P&gt;IF(InsuranceGroup LIKE '*VISA*',TotalAmount*0.10,&lt;/P&gt;&lt;P&gt;IF(InsuranceGroup LIKE '*MY*',TotalAmount*0.20,&lt;/P&gt;&lt;P&gt;IF(InsuranceGroup LIKE '*IN*',TotalAmount*10,&lt;/P&gt;&lt;P&gt;IF(InsuranceGroup LIKE '*MPH*',TotalAmount*9,&lt;/P&gt;&lt;P&gt;IF(InsuranceGroup LIKE '*KKSG*',TotalAmount*0.08,0 -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If All these conditions does not satisfy then the commission should be 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it works But I Want to do it in SET Analysis .Because iam getting lot of memory issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if still not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 21:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596087#M1121122</guid>
      <dc:creator />
      <dc:date>2014-01-31T21:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596088#M1121124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;TotalAmount * pick(wildmatch('*MC*','*VISA*','*MY*','*IN*','*MPH*','*KKSG*','*'), 0.05,0.10,0.20,10,9,0.08,0))&lt;/P&gt;&lt;P&gt;or maybe:&lt;/P&gt;&lt;P&gt;sum(TotalAmount * pick(wildmatch('*MC*','*VISA*','*MY*','*IN*','*MPH*','*KKSG*','*'), 0.05,0.10,0.20,10,9,0.08,0)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure about 0, you'll tell me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 21:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596088#M1121124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T21:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596089#M1121126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide me the full set analysis expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zero is something where when none of the IF conditions satisfies. The commission has to be 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 22:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596089#M1121126</guid>
      <dc:creator />
      <dc:date>2014-01-31T22:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596090#M1121128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You never tried my pick(match()) expressions, did you?&amp;nbsp; It is as full as it can be... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&amp;nbsp; I have reason to believe that it works, and the 0s are taken care of.&lt;/P&gt;&lt;P&gt;Please don't reply before you try it.&amp;nbsp; If it fails - upload a sample application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 22:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596090#M1121128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T22:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596091#M1121130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micheal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working. Regarding 0 - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(InsuranceGroup LIKE '*KKSG*',TotalAmount*0.08,0 -&lt;/SPAN&gt; So here if it is KKSG then total amount*0.08 else 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam currently loading the complete set of data to check the performance. i have just started the load to see. earlier i was getting out of memory issue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 22:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596091#M1121130</guid>
      <dc:creator />
      <dc:date>2014-01-31T22:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596092#M1121132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micheal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks its working. I have one more issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(TotalAmount * pick(wildmatch('*MC*','*VISA*','*MY*','*IN*','*MPH*','*KKSG*','*'), 0.05,0.10,0.20,10,9,0.08,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;In this expression iam trying to replace values with variables something like below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;sum(TotalAmount * pick(wildmatch('*MC*','*VISA*','*MY*','*IN*','*MPH*','*KKSG*','*'), $(vfive),vten,0.20,10,9,0.08,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Iam using the following syntax $(vFive). The expression does not have any errors but it does calculate either. &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;"&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;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 19:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596092#M1121132</guid>
      <dc:creator />
      <dc:date>2014-02-01T19:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596093#M1121134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Panicker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't you modify your model to associate the different ratio to the different INSURANCE GROUP values so that you just do in the UI : sum(TotalAmount*ThisNewRatio ) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 21:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596093#M1121134</guid>
      <dc:creator />
      <dc:date>2014-02-01T21:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596094#M1121136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, cannot guess because don't know what's in your variables.&amp;nbsp; It may be&lt;/P&gt;&lt;P&gt;$(vfive)&lt;/P&gt;&lt;P&gt;vfive&lt;/P&gt;&lt;P&gt;'$(vfive)'&lt;/P&gt;&lt;P&gt;$(=vfive)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this blog, maybe it helps :&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/04/the-magic-of-variables"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/04/the-magic-of-variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And just try a little...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 13:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-IF-statement/m-p/596094#M1121136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-03T13:05:41Z</dc:date>
    </item>
  </channel>
</rss>

