<?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: Dynamic calculation depending on filters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214671#M873633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for your great help, exactly what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2016 21:54:55 GMT</pubDate>
    <dc:creator>amigo007</dc:creator>
    <dc:date>2016-11-08T21:54:55Z</dc:date>
    <item>
      <title>Dynamic calculation depending on filters</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214667#M873629</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 have one question about displaying dynamic calculation in the expression based on the values chosen from filters. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have one simple table which has simple multiplication calculation, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Quantity&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I have list box with the following selections:&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When:&lt;/P&gt;&lt;P&gt; - I select 'a' the quantity in the rows should be mutiplied by 2 (as shown in the table above)&lt;/P&gt;&lt;P&gt; - I select 'b' the quantity in the rows should be mutiplied by 2,5. So the 'Total' for the 3 rows in the table above will be 500, 1000 and 1500 respectively.&lt;/P&gt;&lt;P&gt; - I select 'c' the quantity in the should be mutiplied by 6. The 'Total' for the 3 rows in the table above will be 1200, 2400 and 3600 respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simple way to do that? Is there away to assign static numbers to values in the filters and use them dynamically in the expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214667#M873629</guid>
      <dc:creator>amigo007</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculation depending on filters</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214668#M873630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I understood your question. Please check the attached example to see if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 15:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214668#M873630</guid>
      <dc:creator>sangeess21</dc:creator>
      <dc:date>2016-11-08T15:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculation depending on filters</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214669#M873631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi-&amp;nbsp; I think one of the easiest ways to do this is to create a variable.&amp;nbsp; The variable would be an expression, like below....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMultiplier=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(GetFieldSelections(List_Box Field)=a, 2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;IF(GetFieldSelections(List_Box Field)=b, 2.5,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;IF(GetFieldSelections(List_Box Field)=c, 6,0)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I would write an expression for my total column like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(FieldVlaue * vMultiplier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should allow you to have your dynamic multiplier based on a List Box selection, without having a large number of Conditional expressions to manage.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 15:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214669#M873631</guid>
      <dc:creator>hallquist_nate</dc:creator>
      <dc:date>2016-11-08T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculation depending on filters</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214670#M873632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Dynamic_Calculation_Multiplier.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143282_Dynamic_Calculation_Multiplier.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214670#M873632</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-11-08T16:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculation depending on filters</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214671#M873633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for your great help, exactly what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 21:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-calculation-depending-on-filters/m-p/1214671#M873633</guid>
      <dc:creator>amigo007</dc:creator>
      <dc:date>2016-11-08T21:54:55Z</dc:date>
    </item>
  </channel>
</rss>

