<?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 an 'if 'statement to set analysis,need help please???? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/convert-an-if-statement-to-set-analysis-need-help-please/m-p/640141#M1087781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am little week in set analysis, so please can someone help me out in getting the below expression in set analysis method????????&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; text-decoration: underline;"&gt;if [buy/sell] ='BUY' then [option]-[premium] as a new field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;here the option column is a calculated expression in the table which has many variables and used in a macro as well in it.so is there a method to represent it with a field or else I will have to put the whole formula into the new expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 06:51:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-05T06:51:07Z</dc:date>
    <item>
      <title>convert an 'if 'statement to set analysis,need help please????</title>
      <link>https://community.qlik.com/t5/QlikView/convert-an-if-statement-to-set-analysis-need-help-please/m-p/640141#M1087781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am little week in set analysis, so please can someone help me out in getting the below expression in set analysis method????????&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; text-decoration: underline;"&gt;if [buy/sell] ='BUY' then [option]-[premium] as a new field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;here the option column is a calculated expression in the table which has many variables and used in a macro as well in it.so is there a method to represent it with a field or else I will have to put the whole formula into the new expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 06:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-an-if-statement-to-set-analysis-need-help-please/m-p/640141#M1087781</guid>
      <dc:creator />
      <dc:date>2014-06-05T06:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: convert an 'if 'statement to set analysis,need help please????</title>
      <link>https://community.qlik.com/t5/QlikView/convert-an-if-statement-to-set-analysis-need-help-please/m-p/640142#M1087782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use set analysis in the script, only in chart expressions. If you want to use the expression in a chart you can use something like sum({&amp;lt;[buy/sell]={'BUY'}&amp;gt;} [option]-[premium]). Note that option and premium have to be fields and cannot be labeled expressions.&lt;/P&gt;&lt;P&gt;If it's possible to use an if statement in the script to calculate a new field then that's the best solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 06:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-an-if-statement-to-set-analysis-need-help-please/m-p/640142#M1087782</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-05T06:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: convert an 'if 'statement to set analysis,need help please????</title>
      <link>https://community.qlik.com/t5/QlikView/convert-an-if-statement-to-set-analysis-need-help-please/m-p/640143#M1087783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where exactly you want use this expr? As a calc Dimension or in Expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can just use if &lt;SPAN style="color: #800080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;if ([buy/sell] ='BUY' ,[option]-[premium])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 07:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-an-if-statement-to-set-analysis-need-help-please/m-p/640143#M1087783</guid>
      <dc:creator />
      <dc:date>2014-06-05T07:03:53Z</dc:date>
    </item>
  </channel>
</rss>

