<?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: Expression in Pivot table (used by another Expression) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619325#M680474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the expression1 is actually an &lt;STRONG&gt;input field&lt;/STRONG&gt;, which is one of the column in table.&lt;/P&gt;&lt;P&gt;Client can change the value for that input column, and any change in this column will reflect to expression2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So expression2 has to call expression1, then based on expression1 value,&lt;/P&gt;&lt;P&gt;there are 3 conditions:&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;if(expression1&amp;lt;100 ,&amp;nbsp; expression1*0.01,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(expression1=100, expression1*0.02,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(expression1&amp;gt;100, expression1*0.03, 0)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last, we would need to get the total of this 3 conditions, that's why i need to use &lt;STRONG&gt;sum(total &amp;lt;&amp;gt; if&lt;/STRONG&gt;(blabla....))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chanel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2014 08:38:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-25T08:38:26Z</dc:date>
    <item>
      <title>Sum(total &lt;dim1 &gt;[Expression1]) in Pivot table is not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619319#M680468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use expression in another expression in pivot table with Sum(total &amp;lt;dim1 &amp;gt;[Expression]) condition,&lt;/P&gt;&lt;P&gt;but it is not working, anyone has idea?&lt;/P&gt;&lt;P&gt;Attached herewith the sample (where it is not a real case which is much more complicated)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="57920" alt="" class="jiveImage" height="188" src="https://community.qlik.com/legacyfs/online/57920_pastedImage_0.png" style="width: 747.18px; height: 188px;" width="747" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;The reason why I need to apply:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;Expression1 is actually an &lt;STRONG&gt;input field&lt;/STRONG&gt;, which is one of the column in table.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;Client can change the value for that input column, and any change in this column will reflect to Expression2.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;where Expression2 = Sum(total &amp;lt;dim1 &amp;gt;[Expression1])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;There are 3 conditions to calculate Expression2 based on expression1 value, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;Example:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;if(expression1&amp;lt;100 ,&amp;nbsp; expression1*0.01,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(expression1=100, expression1*0.02,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(expression1&amp;gt;100, expression1*0.03, 0)))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone could help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chanel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 07:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619319#M680468</guid>
      <dc:creator />
      <dc:date>2014-04-25T07:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Pivot table (used by another Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619320#M680469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What logic you want to apply here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update :&lt;/P&gt;&lt;P&gt;Try as Below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(IF(Aggr(SUM(TOTAL &amp;lt;Month&amp;gt; Sales),Salesman)&amp;gt;=15000,Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 07:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619320#M680469</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-25T07:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Pivot table (used by another Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619321#M680470</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( [Total Sales] &amp;gt;= 15000, sum(Total &amp;lt;Month&amp;gt; Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 07:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619321#M680470</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-04-25T07:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Pivot table (used by another Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619322#M680471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this expression for the second one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (ColumnNo(1) &amp;gt;= 15000,&amp;nbsp; OptionTrue, OptionFalse)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing Options for you apropiate formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joaquín&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 07:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619322#M680471</guid>
      <dc:creator>Joaquin_Lazaro</dc:creator>
      <dc:date>2014-04-25T07:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Pivot table (used by another Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619323#M680472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample is just the example, my expression is far more complicated than this, my problem is&lt;/P&gt;&lt;P&gt;how can i call another expression in the same table,&lt;/P&gt;&lt;P&gt;if i have that condition &lt;/P&gt;&lt;P&gt;= &lt;STRONG&gt;sum(total&lt;/STRONG&gt; &amp;lt;abc&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;STRONG&gt;[expression1]&lt;/STRONG&gt; = 'blabla', 'Sales'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not possible to use expression in &lt;STRONG&gt;sum(total&lt;/STRONG&gt; ...) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chanel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 08:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619323#M680472</guid>
      <dc:creator />
      <dc:date>2014-04-25T08:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Pivot table (used by another Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619324#M680473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your LOGIC? can you please elaborate little more that what you want to achieve?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 08:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619324#M680473</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-25T08:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Pivot table (used by another Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619325#M680474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the expression1 is actually an &lt;STRONG&gt;input field&lt;/STRONG&gt;, which is one of the column in table.&lt;/P&gt;&lt;P&gt;Client can change the value for that input column, and any change in this column will reflect to expression2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So expression2 has to call expression1, then based on expression1 value,&lt;/P&gt;&lt;P&gt;there are 3 conditions:&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;if(expression1&amp;lt;100 ,&amp;nbsp; expression1*0.01,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(expression1=100, expression1*0.02,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(expression1&amp;gt;100, expression1*0.03, 0)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last, we would need to get the total of this 3 conditions, that's why i need to use &lt;STRONG&gt;sum(total &amp;lt;&amp;gt; if&lt;/STRONG&gt;(blabla....))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chanel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 08:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-total-lt-dim1-gt-Expression1-in-Pivot-table-is-not-working/m-p/619325#M680474</guid>
      <dc:creator />
      <dc:date>2014-04-25T08:38:26Z</dc:date>
    </item>
  </channel>
</rss>

