<?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: Set Analysis Identifier Not Working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Identifier-Not-Working/m-p/1539775#M38968</link>
    <description>&lt;P&gt;Can't verify if I got all of them fixed, but try this... the issue is related to some of the naked field not restricted using set analysis... highlighted one in red below, but there were others in the expression&lt;/P&gt;&lt;PRE&gt;=(
Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;} If([cast_date.autoCalendar.Month] = 1, amount_sold)) +
Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;} If([cast_date.autoCalendar.Month] = 1, prdct_cst*quantity_returned)) +
Sum({1} Aggr(If(Only({1} Credit_Card_Accepted__c) = 'Yes', (((If(Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;} If([cast_date.autoCalendar.Month] = 1, amount_sold)) &amp;gt; 0, Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;}If([cast_date.autoCalendar.Month] = 1, prdct_cst*quantity_ordered)), 0)))*.02), 0), asin)) -
If(Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;}If([cast_date.autoCalendar.Month] = 1, amount_sold)) &amp;gt; 0, Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;}If([cast_date.autoCalendar.Month] = 1, prdct_cst*quantity_ordered)), 0) -
Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered*prdct_fee),))-
(Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,((quantity_ordered)*est_ref_fee),))-SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,((quantity_returned)*est_ref_fee),)))-
(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))*5)-
SUM({1}AGGR(IF(&lt;FONT color="#FF0000"&gt;Only({1} Free_Shipping__c)&lt;/FONT&gt;='Yes',0,IF(Only({1} Direct_Ship__c)='Yes',0,
(IF(Only({1} Standard_Shipping_Method__c)='Small Parcel',SUM({1}Small_Parcel_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))),
IF(Only({1} Standard_Shipping_Method__c)='LTL Freight',SUM({1}LTL_Freight_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))),
IF(Only({1} Standard_Shipping_Method__c)='International',SUM({1}International_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))),)))))),asin))-
(SUM({1}AGGR(((SUM({1}Small_Parcel_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))))*0.75),asin)))-
SUM({1}AGGR(Only({1} Incremental_Overhead_Percentage__c)/100*SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),)),asin))-
(IF(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),))&amp;gt;0,SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(prdct_cst*quantity_ordered),)),0)*0.01)-
SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_returned),)))&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Feb 2019 16:12:50 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-02-05T16:12:50Z</dc:date>
    <item>
      <title>Set Analysis Identifier Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Identifier-Not-Working/m-p/1539758#M38967</link>
      <description>&lt;P&gt;Community Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue with a very large/complex Set Analysis Expression where I am trying to use the Identifier 1 in order to ignore all selections.&amp;nbsp; I tried using the Identifier 1 in all set analysis expressions as well as any SUM expressions but when I apply a filter I still get responsive results.&amp;nbsp; Please let me know what I am doing wrong.&lt;/P&gt;&lt;P&gt;Below is the expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),))+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(prdct_cst*quantity_returned),))+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;SUM({1}AGGR(IF(Credit_Card_Accepted__c='Yes',(((IF(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),))&amp;gt;0,SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(prdct_cst*quantity_ordered),)),0)))*.02),0),asin))-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;IF(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),))&amp;gt;0,SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(prdct_cst*quantity_ordered),)),0)-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered*prdct_fee),))-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,((quantity_ordered)*est_ref_fee),))-SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,((quantity_returned)*est_ref_fee),)))-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))*5)-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;SUM({1}AGGR(IF(Free_Shipping__c='Yes',0,IF(Direct_Ship__c='Yes',0,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(IF(Standard_Shipping_Method__c='Small Parcel',SUM({1}Small_Parcel_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;IF(Standard_Shipping_Method__c='LTL Freight',SUM({1}LTL_Freight_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;IF(Standard_Shipping_Method__c='International',SUM({1}International_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))),)))))),asin))-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(SUM({1}AGGR(((SUM({1}Small_Parcel_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))))*0.75),asin)))-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;SUM({1}AGGR(Incremental_Overhead_Percentage__c/100*SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),)),asin))-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(IF(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),))&amp;gt;0,SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(prdct_cst*quantity_ordered),)),0)*0.01)-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_returned),)))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Identifier-Not-Working/m-p/1539758#M38967</guid>
      <dc:creator>wlabarca99</dc:creator>
      <dc:date>2019-02-05T16:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Identifier Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Identifier-Not-Working/m-p/1539775#M38968</link>
      <description>&lt;P&gt;Can't verify if I got all of them fixed, but try this... the issue is related to some of the naked field not restricted using set analysis... highlighted one in red below, but there were others in the expression&lt;/P&gt;&lt;PRE&gt;=(
Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;} If([cast_date.autoCalendar.Month] = 1, amount_sold)) +
Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;} If([cast_date.autoCalendar.Month] = 1, prdct_cst*quantity_returned)) +
Sum({1} Aggr(If(Only({1} Credit_Card_Accepted__c) = 'Yes', (((If(Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;} If([cast_date.autoCalendar.Month] = 1, amount_sold)) &amp;gt; 0, Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;}If([cast_date.autoCalendar.Month] = 1, prdct_cst*quantity_ordered)), 0)))*.02), 0), asin)) -
If(Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;}If([cast_date.autoCalendar.Month] = 1, amount_sold)) &amp;gt; 0, Sum({1&amp;lt;[cast_date.autoCalendar.Year] = {2019}&amp;gt;}If([cast_date.autoCalendar.Month] = 1, prdct_cst*quantity_ordered)), 0) -
Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered*prdct_fee),))-
(Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,((quantity_ordered)*est_ref_fee),))-SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,((quantity_returned)*est_ref_fee),)))-
(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))*5)-
SUM({1}AGGR(IF(&lt;FONT color="#FF0000"&gt;Only({1} Free_Shipping__c)&lt;/FONT&gt;='Yes',0,IF(Only({1} Direct_Ship__c)='Yes',0,
(IF(Only({1} Standard_Shipping_Method__c)='Small Parcel',SUM({1}Small_Parcel_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))),
IF(Only({1} Standard_Shipping_Method__c)='LTL Freight',SUM({1}LTL_Freight_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))),
IF(Only({1} Standard_Shipping_Method__c)='International',SUM({1}International_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))),)))))),asin))-
(SUM({1}AGGR(((SUM({1}Small_Parcel_Cost_Per_Pound__c)*(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_ordered),))-Sum({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(quantity_returned),))))*0.75),asin)))-
SUM({1}AGGR(Only({1} Incremental_Overhead_Percentage__c)/100*SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),)),asin))-
(IF(SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),))&amp;gt;0,SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(prdct_cst*quantity_ordered),)),0)*0.01)-
SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_returned),)))&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Identifier-Not-Working/m-p/1539775#M38968</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-05T16:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Identifier Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Identifier-Not-Working/m-p/1539787#M38969</link>
      <description>&lt;P&gt;I'd suggest simplifying this by removing If conditions and replacing with equivalent set analysis. This will also improve performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;from &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019}&amp;gt;}IF([cast_date.autoCalendar.Month]=1,(amount_sold),))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT size="2"&gt;to &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT size="2"&gt;SUM({1&amp;lt;[cast_date.autoCalendar.Year]={2019},[cast_date.autoCalendar.Month]={1}&amp;gt;} amount_sold)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Identifier-Not-Working/m-p/1539787#M38969</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2019-02-05T16:35:45Z</dc:date>
    </item>
  </channel>
</rss>

