<?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 formula question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586632#M478824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick reply!&amp;nbsp; I changed the formula to match this, but I'm coming back with no data.&amp;nbsp; I've triple-checked the syntax, and it aligns with what you sent, so I must be missing something else.&amp;nbsp; I'm on v10, if that has any bearing.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Feb 2014 19:18:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-28T19:18:51Z</dc:date>
    <item>
      <title>set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586630#M478822</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'm a new user to Qlikview with little experience in writing formulas, so any help is much appreciated.&amp;nbsp; Here is what I'm trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a select population of customers, return those that have had no sales in the past 2 quarters, but have had sales in the 4 quarters prior.&amp;nbsp; Eventually, I would like to show what those sales were in the prior 4 quarters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I can get the list of customers a roundabout way by the following formula, with customer name as the dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;CUST_REGION={'A'},QTR_ID={'201302','201303','201304','201401'}&amp;gt;}SALES)-Sum({$&amp;lt;CUST_REGION={'A'},QTR_ID={'201302','201303'}&amp;gt;}SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a customer comes back with zero or negative sales, then they had no activity in the recent two quarters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I think there is an easier/more effective way using the p() or e() functions, but I just can't get it to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 18:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586630#M478822</guid>
      <dc:creator />
      <dc:date>2014-02-28T18:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586631#M478823</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;There is easier way to handle this case.&lt;/P&gt;&lt;P&gt;You can keep in set only those customers that match your criteria directly:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;CUST_ID={"&lt;STRONG&gt;=Sum({$&amp;lt;CUST_REGION={'A'},QTR_ID={'201302','201303'}&amp;gt;}SALES)&amp;gt;0 and&amp;nbsp; Sum({$&amp;lt;CUST_REGION={'A'},QTR_ID={'201304','201401'}&amp;gt;}SALES)=0&lt;/STRONG&gt;"}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this you can get just the sum of sales of those customers. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 18:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586631#M478823</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-02-28T18:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586632#M478824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick reply!&amp;nbsp; I changed the formula to match this, but I'm coming back with no data.&amp;nbsp; I've triple-checked the syntax, and it aligns with what you sent, so I must be missing something else.&amp;nbsp; I'm on v10, if that has any bearing.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 19:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586632#M478824</guid>
      <dc:creator />
      <dc:date>2014-02-28T19:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586633#M478825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you notice that I've just guess that you have CUST_ID field as customer ids ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 19:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586633#M478825</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-02-28T19:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586634#M478826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - I switched it to customer_name (which is the field name).&amp;nbsp; Customer_name is the only dimension I'm using, and the only expression would be the one you provided.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 19:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586634#M478826</guid>
      <dc:creator />
      <dc:date>2014-02-28T19:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586635#M478827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you upload the sample qvw (with scrambled data) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 20:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586635#M478827</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-02-28T20:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586636#M478828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - I got it to work simply by exiting QV and coming back in. Thank you again - and hopefully I can bother you with one other question.&amp;nbsp; I may decide to further limit this group by sales volume and transaction quantity.&amp;nbsp; I imagine I can filter sales volume by changing the "0" to a new number.&amp;nbsp; If I want to limit by transaction quantity, would I just add another "and" condition, and substitute transaction count for sales?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 20:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586636#M478828</guid>
      <dc:creator />
      <dc:date>2014-02-28T20:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586637#M478829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Definitely yes.&lt;/P&gt;&lt;P&gt;Although, you could think of calculating some fields/flags in script to simplify the set expressions or if the condition is not supposed to be dynamic relative to user selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 20:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586637#M478829</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-02-28T20:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586638#M478830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And that's one of many areas where I need to learn more; as in: I was specifying the time conditions, and ideally it doesn't matter what the application selections are, it will always give me the sales for just those quarters I defined, unless I change the definition. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 21:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586638#M478830</guid>
      <dc:creator />
      <dc:date>2014-02-28T21:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis formula question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586639#M478831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the are hardcoded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 21:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-formula-question/m-p/586639#M478831</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-02-28T21:14:57Z</dc:date>
    </item>
  </channel>
</rss>

