<?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: Calculate selected values only in set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251606#M853148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your total seems this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum({&amp;lt;flag={'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sponsorship&lt;/SPAN&gt;'}&amp;gt;}recalculated) + (sum(Count) * 0.4)-sum({&amp;lt;flag={'Standard'}&amp;gt;}Total)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2017 05:10:02 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-02-23T05:10:02Z</dc:date>
    <item>
      <title>Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251602#M853144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a requirement tried to&amp;nbsp; achieve using set analysis but as i'm not really good at set analysis not able to accomplish. So here i'm please help me&lt;/P&gt;&lt;P&gt;I'm trying to&amp;nbsp; this calculation&lt;/P&gt;&lt;P&gt;Total = sum({&amp;lt;flag={'Standard'}&amp;gt;}recalculated) + sum(0.4*(Count))-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;flag={'Sponsorship'}&amp;gt;}Total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Total ="sum of recalculate when flag= ‘Sponsorship’ + sum of 40% of (count) – sum of Total when flag= ‘Standard’&amp;nbsp; )&lt;/P&gt;&lt;P&gt;By default the app should aggregate sum (recalculated) +sum(count)+ sum(total) but if the user makes a selection on the Flag value(&lt;SPAN style="font-size: 13.3333px;"&gt;Sponsorship&lt;/SPAN&gt; or standard) it calculate the sum of the selected flag condition&lt;/P&gt;&lt;P&gt;for example if a selection is made on flag value 'standard' then the it should sum ( &lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;flag={'Standard'}&amp;gt;}recalculated) + sum(0.4*(Count))&lt;/SPAN&gt; only.. it should dis regard &lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;flag={'Sponsorship'}&amp;gt;}Total)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;or if a selection is made on &lt;SPAN style="font-size: 13.3333px;"&gt;lag value '&lt;SPAN style="font-size: 13.3333px;"&gt;Sponsorship&lt;/SPAN&gt;' the expression should sum&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sum(0.4*(Count))-&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sum({&amp;lt;flag={'Sponsorship'}&amp;gt;}Total)&amp;nbsp; excluding &lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;flag={'Standard'}&amp;gt;}recalculated). &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have attached the sample qvw and excel data for reference.&amp;nbsp; Please help me . Thank you,&lt;/SPAN&gt;&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/Calculate-selected-values-only-in-set-expression/m-p/1251602#M853144</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251603#M853145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this what you are after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;Flag={'Standard'}&amp;gt;}recalculated) + sum({1}Count*0.4)-sum({1&amp;lt;Flag={'Sponsorship'}&amp;gt;}[Total])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 04:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251603#M853145</guid>
      <dc:creator>john9inno</dc:creator>
      <dc:date>2017-02-23T04:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251604#M853146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Thank you very much for the quick response. Actually the expression should aggregate based on the selections made in the list box. By default it should sum all (both standard and sponsorship+cunt ). But&amp;nbsp; if a selection is made on one of the values of flag for example 'Standard'&amp;nbsp; then it&amp;nbsp; should sum only&amp;nbsp; standard (recalculated) + count&amp;nbsp; and sponsor should be excluded i.e 0). Please let me know if it's&amp;nbsp; not clear. Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 04:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251604#M853146</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-23T04:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251605#M853147</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(recalculated) + sum(Count*0.4)-sum({&amp;lt;Flag={'Sponsorship'}&amp;gt;}[Total])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I believe this is the expression, you want&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 05:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251605#M853147</guid>
      <dc:creator>john9inno</dc:creator>
      <dc:date>2017-02-23T05:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251606#M853148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your total seems this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum({&amp;lt;flag={'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sponsorship&lt;/SPAN&gt;'}&amp;gt;}recalculated) + (sum(Count) * 0.4)-sum({&amp;lt;flag={'Standard'}&amp;gt;}Total)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 05:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251606#M853148</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-23T05:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251607#M853149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Here is my expression:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;flag={'Standard'}&amp;gt;}recalculated) + sum(0.4*(Count))-&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;flag={'Sponsorship'}&amp;gt;}Total)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;i need sum r of r&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;ecalculated where flag= 'Standard' then sum of&amp;nbsp; 40% of count +&amp;nbsp; sum of "Total" field where flag='Sponsorship' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;But now the requirement is if the user makes a selection on the flag value the calculation should change based on the selection &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if selection is made on "standard" then the sum should be&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;um({&amp;lt;flag={'Standard'}&amp;gt;}recalculated) + sum(0.4*(Count))- &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;0 ( because sponsorship flag is not selected)&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;if selection is made on "sponsorship" then &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;0( because standard not selected ) + sum(0.4*(Count))-&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;flag={'Sponsorship'}&amp;gt;}Total)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 05:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251607#M853149</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-23T05:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251608#M853150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;Thank you very much for the response but here is the requirement&lt;/P&gt;&lt;P&gt;My expression:&lt;/P&gt;&lt;P&gt;This expression is correct if i don't make any selections on the flag value(standard or sponsorship)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;flag={'Standard'}&amp;gt;}recalculated) + sum(0.4*(Count))-&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;flag={'Sponsorship'}&amp;gt;}Total)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;BR /&gt;(i need sum&amp;nbsp; of r&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;ecalculated where flag= 'Standard' then sum of&amp;nbsp; 40% of count +&amp;nbsp; sum of "Total" field where flag='Sponsorship' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;But now the requirement is if the user makes a selection on the flag value the calculation should change based on the selection &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if selection is made on "standard" then the sum should be&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;um({&amp;lt;flag={'Standard'}&amp;gt;}recalculated) + sum(0.4*(Count))- &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;0 ( because sponsorship flag is not selected)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;if selection is made on "sponsorship" then &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;0( because standard not selected&amp;nbsp; + sum(0.4*(Count))-&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;flag={'Sponsorship'}&amp;gt;}Total)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 05:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251608#M853150</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-23T05:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251609#M853151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have solved most of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just need to change 'flag' to 'Flag'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more extra thing is put 1 in set analysis, if you want Count ignore the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;sum({&amp;lt;flag={'&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Sponsorship&lt;/SPAN&gt;'}&amp;gt;}recalculated) + (sum({1} Count) * 0.4)-sum({&amp;lt;flag={'Standard'}&amp;gt;}Total)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;sorry typo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;should be &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;flag={'Standard'}&amp;gt;}recalculated) + sum({1}(Count)*0.4)-sum({&amp;lt;flag={'Sponsorship'}&amp;gt;}Total)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 05:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251609#M853151</guid>
      <dc:creator>john9inno</dc:creator>
      <dc:date>2017-02-23T05:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251610#M853152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think what you are need over here. Off course, Even if you select one flag then it should show Same flag of data point and remaining should be Zero. That case, You should follow something like below. As i understand this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetFieldSelections(Flag)='Sponsorship', Sum({&amp;lt;Flag = {'Sponsorship'}&amp;gt;} Total),0) + (sum(Count) * 0.4)-If(GetFieldSelections(Flag)='Standard', Sum({&amp;lt;Flag = {'Standard'}&amp;gt;} Total),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't worry about your errors on Expression. Just check whether it is "&lt;STRONG&gt;Expression OK&lt;/STRONG&gt;" or not. The error problem is Total. Here, Total consider as Function not the column for recommend try to change the Field from Total to some else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i would highly recommend to create flag for Flag like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Flag = 'Sponsorship', 1, 0) as Sponsorship,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;If(Flag = '&lt;SPAN style="font-size: 13.3333px;"&gt;Standard&lt;/SPAN&gt;', 1, 0) as Standard&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Then use where ever you need these Flag at a time in Set analysis instead of Hard code&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 05:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251610#M853152</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-23T05:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251611#M853153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked. Thank you very much Anil. Sure i will create variables. I really appreciate your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 05:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251611#M853153</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-23T05:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251612#M853154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;Thank you for your help my initial testing worked and t's working when i&lt;/P&gt;&lt;P&gt;make selections on the flag but by default it's not working. Please can you&lt;/P&gt;&lt;P&gt;help me writing the expression for default also. By default the expression&lt;/P&gt;&lt;P&gt;shouldn't filter on anything.  Here is the expression i wrote but i'm&lt;/P&gt;&lt;P&gt;getting error if you get a chance please can you help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*sum({&amp;lt;sponsor_flag={"Standard"}&amp;gt;}unfilled) +&lt;/P&gt;&lt;P&gt;sum({&amp;lt;sponsor_flag=&amp;gt;}0.4&lt;STRONG&gt;(page))-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;sponsor_flag={"Sponsorship"}&amp;gt;}Total_views)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(If(GetFieldSelections(sponsor_flag)='Standard', Sum({} Total_views),0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the one in the bold letters is the expression i wrote and it's showing an&lt;/P&gt;&lt;P&gt;error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 05:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251612#M853154</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-28T05:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251613#M853155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, some reason the content was not posted correctly. Here is the full text&amp;nbsp; with complete expression.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;DIV&gt;(&lt;STRONG&gt;sum({&amp;lt;sponsor_flag={"Standard"}&amp;gt;}unfilled) + sum({&amp;lt;sponsor_flag=&amp;gt;}0.4*(page))-&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;sponsor_flag={"Sponsorship"}&amp;gt;}Total_views)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(If(GetFieldSelections(sponsor_flag)='Standard', Sum({&amp;lt;sponsor_flag = {'Standard'}&amp;gt;} unfilled),0) + (sum({&amp;lt;sponsor_flag=&amp;gt;}page) * 0.4)-If(GetFieldSelections(sponsor_flag)='Sponsorship', Sum({&amp;lt;sponsor_flag = {'Sponsorship'}&amp;gt;} Total_views),0))&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;the one in the bold letters is the expression i wrote and it's showing an error.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Really appreciate your help.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thank you,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 05:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251613#M853155</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-28T05:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251614#M853156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you talk about Default it should 1 over Set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(GetFieldSelections(Flag)='Sponsorship', Sum({&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;Flag = {'Sponsorship'}&amp;gt;} Total),0) + (sum(&lt;SPAN style="color: #ff0000;"&gt;{1}&lt;/SPAN&gt;Count) * 0.4)-If(GetFieldSelections(Flag)='Standard', Sum({&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;Flag = {'Standard'}&amp;gt;} Total),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 05:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251614#M853156</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-28T05:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251615#M853157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;(&lt;STRONG&gt;sum({&amp;lt;sponsor_flag={"Standard"}&amp;gt;}unfilled) + sum({&amp;lt;sponsor_flag=&amp;gt;}0.4*(page))-&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;sponsor_flag={"Sponsorship"}&amp;gt;}Total_views)),&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;(If(GetFieldSelections(sponsor_flag)='Standard', Sum({&amp;lt;sponsor_flag = {'Standard'}&amp;gt;} unfilled),0) + (sum({&amp;lt;sponsor_flag=&amp;gt;}page) * 0.4)-If(GetFieldSelections(sponsor_flag)='Sponsorship', Sum({&amp;lt;sponsor_flag = {'Sponsorship'}&amp;gt;} Total_views),0))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;From here, What are you trying with my expression, You want to club over here with IF condition&lt;/P&gt;&lt;P&gt;and you can't aggregation before IF condition in set analysis. You should use with in condition only and your expression seems wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From above set analysis works as Static. Like Sum(0.4)*page) -- 0.4 * Page for all values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;sum({&amp;lt;sponsor_flag={"Standard"}&amp;gt;}unfilled) + (sum({&amp;lt;sponsor_flag=&amp;gt;} page) * 0.4)- &lt;/STRONG&gt;&lt;STRONG&gt;sum({&amp;lt;sponsor_flag={"Sponsorship"}&amp;gt;}Total_views)), //&lt;SPAN style="color: #ff0000;"&gt; I am not sure where you are writing this?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But, Here it gives as Sum(Page) -- Will return all values and then it multiply to 0.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 06:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251615#M853157</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-28T06:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251616#M853158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil,&lt;/P&gt;&lt;P&gt;Thank you very much, i really appreciate your response. Yes sum(page) should return all values that part is correct.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; The expression you wrote is working perfectly when i make a selection on sponor_flag either sponsorship or standard. There is no issue but when no selection is made it's&amp;nbsp; not bringing in the correct numbers. So i'm trying to include the expression in bold letters in front of the expression you wrote like below. Again the expression is working fine when selections are made but not working correctly when no selection are made on the sponosr_flag.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({&amp;lt;sponsor_flag={"Standard"}&amp;gt;}unfilled) + sum({&amp;lt;sponsor_flag=&amp;gt;}0.4*(page))-&lt;/STRONG&gt; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({&amp;lt;sponsor_flag={"Sponsorship"}&amp;gt;}Total_views)), &lt;/STRONG&gt;(If(GetFieldSelections(sponsor_flag)='Standard', Sum({&amp;lt;sponsor_flag = {'Standard'}&amp;gt;} unfilled),0) + (sum({&amp;lt;sponsor_flag=&amp;gt;}page) * 0.4)-If(GetFieldSelections(sponsor_flag)='Sponsorship', Sum({&amp;lt;sponsor_flag = {'Sponsorship'}&amp;gt;} Total_views),0))&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;is the syntax correct? i'm not sure if i can write an expression like that please help me with the syntax. Thank you so much for your time and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 06:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251616#M853158</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-28T06:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251617#M853159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression is not correct to me. In fact, Qlikview don't have capable of If condition after Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, We can do something like &lt;STRONG&gt;Sum({&amp;lt;Selections1, &lt;SPAN style="font-size: 13.3333px;"&gt;Selections2, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Selections3&lt;/SPAN&gt;&amp;gt;} If(GetFieldSelections(Flag) &amp;gt; 0, Sum(Sales)))&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, We can do achieve using &lt;STRONG&gt;GetCurrentSelections()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like, I am continuing with My Expression again over here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(&lt;SPAN style="color: #ff0000;"&gt;GetCurrentSelections(Flag)&amp;gt;0,&lt;/SPAN&gt; (Sum({&amp;lt;Flag = {'$(=GetFieldSelections(Flag))'}&amp;gt;} Total),0) + (sum(Count) * 0.4)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(TOTAL Total),&lt;/STRONG&gt; -If(&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;GetCurrentSelections(Flag)&amp;gt;0,&lt;/STRONG&gt; Sum({&amp;lt;Flag = &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{'$(=GetFieldSelections(Flag))'}&lt;/STRONG&gt;&amp;gt;} Total),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum(TOTAL Total)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here, it works as if no selection it will show total value and selections will happened it will work as i said earlier.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Good Luck&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 09:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251617#M853159</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-28T09:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251618#M853160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Anil. I will try this. &lt;/P&gt;&lt;P&gt;Just to confirm here i need to create&amp;nbsp; variable for the Flag correct?&amp;nbsp; Thank you very much,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 13:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251618#M853160</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-28T13:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251619#M853161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, As per my experience that is the approach i liked it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 13:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251619#M853161</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-28T13:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251620#M853162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Thank you Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 13:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251620#M853162</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-28T13:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate selected values only in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251621#M853163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil,&lt;/P&gt;&lt;P&gt;I'm really sorry i'm kind of new to Qlik not really good at a lot qlik functions.&lt;/P&gt;&lt;P&gt;I'm just trying to create a&amp;nbsp; variable&amp;nbsp; for&amp;nbsp; these 2 flags you suggested but not sure how to define them in the script. If you get a chance please can you help me . I'm really sorry. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If(Flag = 'Sponsorship', 1, 0) as Sponsorship,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;If(Flag = '&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Standard&lt;/SPAN&gt;', 1, 0) as Standard&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 13:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-selected-values-only-in-set-expression/m-p/1251621#M853163</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-02-28T13:44:47Z</dc:date>
    </item>
  </channel>
</rss>

