<?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 Multi variable help requested in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multi-variable-help-requested/m-p/858615#M469342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i need a help to solve my problem:&lt;/P&gt;&lt;P&gt;i'm making a simulation on changing of costs, not only 1 variable but as many as items in my catalogue:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;ITEM={'A'}&amp;gt;}cost)*(1+vAdelta)&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'B'}&amp;gt;}cost)*(1+vBdelta)&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'C'}&amp;gt;}cost)*(1+vCdelta)&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'D'}&amp;gt;}cost)*(1+vDdelta)&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'E'}&amp;gt;}cost)*(1+vEdelta)&lt;/P&gt;&lt;P&gt;this is perfect if i'm calculating TOTAL, but if a select only 1 item, how can i have only ONE cost simulation?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 09:06:15 GMT</pubDate>
    <dc:creator>canmarroig</dc:creator>
    <dc:date>2015-07-13T09:06:15Z</dc:date>
    <item>
      <title>Multi variable help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Multi-variable-help-requested/m-p/858615#M469342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i need a help to solve my problem:&lt;/P&gt;&lt;P&gt;i'm making a simulation on changing of costs, not only 1 variable but as many as items in my catalogue:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;ITEM={'A'}&amp;gt;}cost)*(1+vAdelta)&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'B'}&amp;gt;}cost)*(1+vBdelta)&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'C'}&amp;gt;}cost)*(1+vCdelta)&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'D'}&amp;gt;}cost)*(1+vDdelta)&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'E'}&amp;gt;}cost)*(1+vEdelta)&lt;/P&gt;&lt;P&gt;this is perfect if i'm calculating TOTAL, but if a select only 1 item, how can i have only ONE cost simulation?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 09:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multi-variable-help-requested/m-p/858615#M469342</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2015-07-13T09:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multi variable help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Multi-variable-help-requested/m-p/858616#M469343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=sum({$&amp;lt;ITEM={'A'}&amp;gt;}cost)*If(GetFieldSelections(ITEM)='A',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vAdelta+1,1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and so on&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 09:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multi-variable-help-requested/m-p/858616#M469343</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-13T09:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multi variable help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Multi-variable-help-requested/m-p/858617#M469344</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;You can add another variable having values 0 or 1 and then assign the value of variable as 1 as per the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;ITEM={'A'}&amp;gt;}cost)*(1+vAdelta)*vA&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'B'}&amp;gt;}cost)*(1+vBdelta)*vB&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'C'}&amp;gt;}cost)*(1+vCdelta)*vC&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'D'}&amp;gt;}cost)*(1+vDdelta)*vD&lt;/P&gt;&lt;P&gt;+sum({$&amp;lt;ITEM={'E'}&amp;gt;}cost)*(1+vEdelta)*vE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create variable as vA = Alt(substringcount(getfieldselection(ITEM),'A'),0)&lt;/P&gt;&lt;P&gt;vB = Alt(substringcount(getfieldselection(ITEM),'B') ,0)&lt;/P&gt;&lt;P&gt;and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 09:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multi-variable-help-requested/m-p/858617#M469344</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2015-07-13T09:13:41Z</dc:date>
    </item>
  </channel>
</rss>

