<?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 to be calculated based on the selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624674#M229789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RangeSum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubStringCount(Concat(Center, '|'), 'RO')&amp;gt;=1 and&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubStringCount(Concat(PD, '|'), 'other')&amp;gt;=1 and&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubStringCount(Concat(CM_Month, '|'), '12')&amp;gt;=1,100,0&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(Forecast)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2014 15:54:21 GMT</pubDate>
    <dc:creator>luisvalenzuela</dc:creator>
    <dc:date>2014-04-10T15:54:21Z</dc:date>
    <item>
      <title>expression to be calculated based on the selections</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624664#M229779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending upon particular selections i want to add $100 to the Forecast column. Selections that need to be are&lt;/P&gt;&lt;P&gt;Center='RO'&lt;/P&gt;&lt;P&gt;PD='other'&lt;/P&gt;&lt;P&gt;month=12&lt;/P&gt;&lt;P&gt;then sum(forecast) +100 else sum(forecast)&lt;/P&gt;&lt;P&gt;having little bit of difficulty implementing this in the expression so i made a prototype to mimic my requirement.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624664#M229779</guid>
      <dc:creator />
      <dc:date>2014-04-10T14:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624665#M229780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i did try to use this expression&lt;/P&gt;&lt;P&gt;=If((GetFieldSelections(Center)='RO' and PD='other' and CM_Month='12'),(sum(Forecast)+100),Sum(Forecast))&lt;/P&gt;&lt;P&gt;but the issue is when i try to multi pick the month values like 10, 11 &amp;amp; 12 the expression doesn't work the way needed.&lt;/P&gt;&lt;P&gt;Now, the issue have been narrowed down to when i multi pick the month or when ever the month field value has a 12 then for PD=other there should be +100, how can i do this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624665#M229780</guid>
      <dc:creator />
      <dc:date>2014-04-10T14:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: expression to be calculated based on the selections</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624666#M229781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF(GetFieldSelections(Center)='RO' and PD = 'other' and GetFieldSelections(CM_Month)=12, SUM(Forecast)+100,SUM(Forecast))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624666#M229781</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-10T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624667#M229782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I understand try (put in a texbox to see the result)&lt;/P&gt;&lt;P&gt;=WildMatch(GetFieldSelections(CM_Month, '@'), '*12*')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=WildMatch(Concat(CM_Month, '@'), '*12*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt; GetFieldSelections('Month', 12)&lt;/P&gt;&lt;P&gt;in your expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624667#M229782</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-10T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: expression to be calculated based on the selections</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624668#M229783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dinesh,&lt;/P&gt;&lt;P&gt;Try this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((GetSelectedCount(CM_Month) &amp;gt; 1 or CM_Month='12') and PD='other',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUM(Forecast)+100&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM(Forecast)&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624668#M229783</guid>
      <dc:creator>goncalo_ricardo_pereira</dc:creator>
      <dc:date>2014-04-10T14:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: expression to be calculated based on the selections</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624669#M229784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manish, but this doesn't work if i multi pick like months=10, 11 and 12. This only works when my selection is just for the month=12 only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624669#M229784</guid>
      <dc:creator />
      <dc:date>2014-04-10T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: expression to be calculated based on the selections</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624670#M229785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the attached help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-04-10_1559.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56994_2014-04-10_1559.png" style="width: 620px; height: 21px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 15:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624670#M229785</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-04-10T15:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: expression to be calculated based on the selections</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624671#M229786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, the requirement is probably not &lt;/P&gt;&lt;P&gt;month=12&lt;/P&gt;&lt;P&gt;but&lt;/P&gt;&lt;P&gt;month 12 is in selection.&lt;/P&gt;&lt;P&gt;If yes, this would work:&lt;/P&gt;&lt;P&gt;=If((Center='RO' and PD='other' &lt;STRONG&gt;and index(GetFieldSelections(CM_Month),12)&amp;gt;0&lt;/STRONG&gt;),(sum(Forecast)+100),Sum(Forecast))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 15:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624671#M229786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-10T15:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: expression to be calculated based on the selections</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624672#M229787</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;Checked enclosed file it is working as per your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this expression&lt;/P&gt;&lt;P&gt;=If((Center='RO' and PD='other') and WildMatch(Concat(CM_Month, '@'), '*12*'),(sum(Forecast)+100),Sum(Forecast))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 15:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624672#M229787</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-04-10T15:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: expression to be calculated based on the selections</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624673#M229788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF(GetFieldSelections(Center)='RO' and PD = 'other' and Index(GetFieldSelections(CM_Month),12)&amp;gt;0, SUM(Forecast)+100,SUM(Forecast))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 15:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624673#M229788</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-10T15:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: expression to be calculated based on the selections</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624674#M229789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RangeSum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubStringCount(Concat(Center, '|'), 'RO')&amp;gt;=1 and&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubStringCount(Concat(PD, '|'), 'other')&amp;gt;=1 and&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubStringCount(Concat(CM_Month, '|'), '12')&amp;gt;=1,100,0&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(Forecast)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 15:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-be-calculated-based-on-the-selections/m-p/624674#M229789</guid>
      <dc:creator>luisvalenzuela</dc:creator>
      <dc:date>2014-04-10T15:54:21Z</dc:date>
    </item>
  </channel>
</rss>

