<?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 Why can't I use IF statement on Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539565#M201605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'LOADER',&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {FOM()'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={FOM()'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Transit_TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 2))&lt;BR /&gt;/&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {FOM()'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Capacity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 2)&lt;BR /&gt;* 100) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi does anybody know what is the problem with this code? My expression of the sum(TEU) is correct but however when i use if statement, it does not show. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;For my other report, I can use if statement before fulfilling the sum expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I believe is a bug for this qlikview program somehow. Thanks anyone who can solve this problem &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 10:13:49 GMT</pubDate>
    <dc:creator>n1ef5ng1</dc:creator>
    <dc:date>2013-08-28T10:13:49Z</dc:date>
    <item>
      <title>Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539565#M201605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'LOADER',&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {FOM()'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={FOM()'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Transit_TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 2))&lt;BR /&gt;/&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {FOM()'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Capacity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 2)&lt;BR /&gt;* 100) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi does anybody know what is the problem with this code? My expression of the sum(TEU) is correct but however when i use if statement, it does not show. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;For my other report, I can use if statement before fulfilling the sum expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I believe is a bug for this qlikview program somehow. Thanks anyone who can solve this problem &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539565#M201605</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-08-28T10:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539566#M201606</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 think, you missed open quotes before FOM()?&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;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Activity_Code&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = 'LOADER',&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {&lt;STRONG&gt;'FO&lt;/STRONG&gt;M()'},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;TEU&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;) + (&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;={&lt;STRONG&gt;'F&lt;/STRONG&gt;OM()'},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;= {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Transit_TEU&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;) * 2))&lt;BR /&gt;/&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {&lt;STRONG&gt;'&lt;/STRONG&gt;FOM()'},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Capacity&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;) * 2)&lt;BR /&gt;* 100)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-style: inherit; font-family: inherit;"&gt;And check &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {&lt;STRONG&gt;'&lt;/STRONG&gt;FOM()'},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'EWF'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Capacity&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;) * 2) not an zero values?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539566#M201606</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-28T10:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539567#M201607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is my code. it does contain values. afterwhich i added a if statement as i need to eliminate certain records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'LOAD',&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EFE(MED)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'E'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'EFE(MED)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'E'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Transit_TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 2))&lt;BR /&gt;/&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EFE(MED)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'E'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Capacity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 2)&lt;BR /&gt;* 100) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539567#M201607</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-08-28T10:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539568#M201608</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;Can you provide a sample file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activity_Code contains "LOAD" or&amp;nbsp; "Load", is there relation between Activity_Code and Dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It helps for us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539568#M201608</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-28T10:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539569#M201609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the dimesions you have used?&lt;/P&gt;&lt;P&gt;Based on your expression &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Activity_Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;should be specified in dimension.&lt;/P&gt;&lt;P&gt;If possible can you post sample app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539569#M201609</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-28T10:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539570#M201610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is the problem, added one extra bracket before multiplying with 100. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Activity_Code = 'LOAD',&lt;/P&gt;&lt;P&gt;((Sum({&amp;lt;Service_Type_Indicator = {'EFE(MED)'},OPS_Direction = {'E'}&amp;gt;}TEU) + (sum({&amp;lt;Service_Type_Indicator={'EFE(MED)'},OPS_Direction = {'E'}&amp;gt;}Transit_TEU) * 2))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;Service_Type_Indicator = {'EFE(MED)'},OPS_Direction = {'E'}&amp;gt;}Capacity) * 2))&lt;/P&gt;&lt;P&gt;* 100) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539570#M201610</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-08-28T10:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539571#M201611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You formula can working depending how you use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it in the script ? a text-object ? a graph ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539571#M201611</guid>
      <dc:creator>matthieu_burel</dc:creator>
      <dc:date>2013-08-28T10:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539572#M201612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My dimensions is just month year. I diden use activity code on my dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my HTC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539572#M201612</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-08-28T10:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539573#M201613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you should use aggr around that&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;Aggr(if&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Activity_Code&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = 'LOAD',&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'EFE(MED)'},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'E'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;TEU&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;) + (&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;={'EFE(MED)'},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'E'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Transit_TEU&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;) * 2))&lt;BR /&gt;/&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Service_Type_Indicator&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'EFE(MED)'},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;OPS_Direction&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'E'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Capacity&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;) * 2)&lt;BR /&gt;* 100),&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;Activity_Code&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 11:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539573#M201613</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-28T11:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539574#M201614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this works but does this works the same as my previous code, as in the logic behind it.&lt;/P&gt;&lt;P&gt;Not well versed on aggr at the moment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 00:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539574#M201614</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-08-29T00:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539575#M201615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Try like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=((Sum({&amp;lt;Activity_Code = {'LOAD'}, Service_Type_Indicator = {'EFE(MED)'},OPS_Direction = {'E'}&amp;gt;}TEU) + (sum({&amp;lt;Activity_Code = {'LOAD'}, Service_Type_Indicator={'EFE(MED)'},OPS_Direction = {'E'}&amp;gt;}Transit_TEU) * 2))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;Activity_Code = {'LOAD'}, Service_Type_Indicator = {'EFE(MED)'},OPS_Direction = {'E'}&amp;gt;}Capacity) * 2)&lt;/P&gt;&lt;P&gt;* 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 03:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539575#M201615</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-08-29T03:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use IF statement on Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539576#M201616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason your IF doesn't work is that you have multiple values available for the field Activity_Code, and therefore QV can't resolve the IF question . That's why the need to use AGGR, to ensure that there is only one value available at the level at which the expression is getting aggregated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, since your expression is a ratio, it's most likely not going to calculate the same way with the AGGR (as opposed to a simple sum()). You need to re-formulate your expression in a way that would allow QV to calculate it correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps, you need to transform the IF condition into another modifier in your Set Analysis - this way, the expression will only calculate the ratio for the required Activity_Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a last resort (and I truly don't recommend it), move your IF condition into your aggregation functions (all of them):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM (IF( ...))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be much heavier and not scalable at all, but it will be correct from the syntax standpoint, and since the IF will be evaluated for each detailed row, there will always be a single Activity_Code available. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 04:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-can-t-I-use-IF-statement-on-Expression/m-p/539576#M201616</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-08-29T04:11:58Z</dc:date>
    </item>
  </channel>
</rss>

