<?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: Another Set Analysis Q.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256045#M1190320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right on the part that I did not post complete expression in my second post. This is because (and I should have mentioned that before) that second part after '+' sign is giving values BUT right graph should be the combination of both first and second, and I am not getting any value out of first expression only. Where as the first expression was giving right results when the expression was as posted in the original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also not able to find the cause of problem with following conversion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND&amp;nbsp; (PART_SK ='1' or PART_SK ='2'&amp;nbsp; or PART_SK = '7'&amp;nbsp; or PART_SK ='6' or PART_SK ='0' or PART_SK ='5' or&amp;nbsp; PART_SK ='90' or&amp;nbsp; PART_SK ='79') AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;PART_SK&amp;nbsp; = {'1','2','7','6','0','5','90','79'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for help though, I guess I'll keep digging more.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt; &lt;/STRONG&gt;&lt;STRONG style="text-decoration: underline;"&gt; &lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="text-decoration: underline;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2011 20:18:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-13T20:18:00Z</dc:date>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256039#M1190314</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 am very new to qlikview and looking for some help writing a following expression using set analysis. Please pardon me if several question like such are already being posted, I tried my best to use the knowledge from all I could find but still could not resolve on my own. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To put it in a simple way, I have a list box and a line graph in sheet. Currently, if there is no selection, following is the expression that calculates the line graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(RET_NAME = 'ABC' AND&amp;nbsp; (PART_SK ='1' or PART_SK ='2'&amp;nbsp; or PART_SK = '7'&amp;nbsp; or PART_SK ='6' or PART_SK ='0' or PART_SK ='5' or&amp;nbsp; PART_SK ='90' or&amp;nbsp; PART_SK ='79') AND (WEEK_END_DATE &amp;gt; Date(WeekEnd(Today(),-1)-70)) AND WEEK_END_DATE &amp;lt; Date(WeekEnd(Today(),-1)),PART_COUNT))+Sum(if(RET_NAME = 'ABC' AND PRICE &amp;gt;0 AND (WEEK_END_DATE &amp;gt; Date(WeekEnd(Today(),-1)-70)) &lt;/P&gt;&lt;P&gt; AND WEEK_END_DATE &amp;lt; Date(WeekEnd(Today(),-1)),PART_B_COUNT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the scenario needs to be, regardless of the selection in the list box, I should be able to see what I was seeing before in the Line Graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I tried, but did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;RET ={'ABC'},PART_SK&amp;nbsp; = {1,2,7,6,0,5,90,79}, WEEK_END_DATE = {"=$(&amp;gt;Date(WeekEnd(Today(),-1)-70) &amp;lt; Date(WeekEnd(Today(),-1)))"}&amp;gt;} PART_COUNT ) + Sum({1&amp;lt;RET ={'ABC'},PRICE={" &amp;gt;0"},WEEK_END_DATE = {"=$(&amp;gt;Date(WeekEnd(Today(),-1)-70) &amp;lt; Date(WeekEnd(Today(),-1)))"}&amp;gt;} &lt;/P&gt;&lt;P&gt;PART_B_COUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be pretty simple, but not sure what am I missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 22:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256039#M1190314</guid>
      <dc:creator />
      <dc:date>2011-09-12T22:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256040#M1190315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;Hi Rohit,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;You can get the Set Analysis working for the above situation. However, it will be easy to look at sample document. So please can you post the QV document?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;Meanwhile, if you wanted to ignore all the selection for a chart. You need to use something like this....&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;=COUNT({$&amp;lt;[$(=Concat({1&amp;lt;$Field-=&lt;SPAN style="color: #ff0000;"&gt;{'Gender'}&lt;/SPAN&gt;&amp;gt;}distinct $Field,'],[')&amp;amp;']=')&amp;gt;} Resp_ID)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;In the above example, except Gender every field selection will be ignored. Hope this makes sense.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 08:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256040#M1190315</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-09-13T08:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256041#M1190316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi D V and arorarohit10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it's all about ignoring all selections except one field, I think something like this&lt;/P&gt;&lt;P&gt;=count{1&amp;lt;Gender= p(Gender) &amp;gt;} Resp_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should work and might be easier to read after a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think there is more about it, without trying the code myself, try maybe soemthing like:&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;RET ={'ABC'},&lt;/P&gt;&lt;P&gt;PART_SK&amp;nbsp; = {1,2,7,6,0,5,90,79},&lt;/P&gt;&lt;P&gt; WEEK_END_DATE = {"&amp;gt;$(=Date(WeekEnd(Today(),-1)-70)) &amp;lt;$(=Date(WeekEnd(Today(),-1))))"}&amp;gt;} &lt;/P&gt;&lt;P&gt;PART_COUNT ) &lt;/P&gt;&lt;P&gt;+ Sum({1&amp;lt;RET ={'ABC'},&lt;/P&gt;&lt;P&gt;PRICE={" &amp;gt;0"},&lt;/P&gt;&lt;P&gt;WEEK_END_DATE = {"&amp;gt;$(=Date(WeekEnd(Today(),-1)-70)) &amp;lt;$(= Date(WeekEnd(Today(),-1))))"}&amp;gt;} &lt;/P&gt;&lt;P&gt;PART_B_COUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note how I changed the Seach string for the WEEK_END_DATE (putting the comparison out of the dollar sign expansion, changing to $(= and using two dollar sign expansions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this works or is all that needs to be done, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ah, and take care that your WEEK_END_DATE matches the format of your dollar sign expansions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 09:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256041#M1190316</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-13T09:06:35Z</dc:date>
    </item>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256042#M1190317</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;Just try this Set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;RET_NAME = {'ABC'},PART_SK = {'1','2','7','6','0','5','90','79'},WEEK_END_DATE = {'&amp;gt;$(Date(WeekEnd(Today(),-1)-70))'}, WEEK_END_DATE = {'&amp;lt;$(Date(WeekEnd(Today(),-1)))'}&amp;gt;}PART_COUNT) &lt;/P&gt;&lt;P&gt;+ &lt;/P&gt;&lt;P&gt;sum({1&amp;lt;RET_NAME = {'ABC'},PRICE = {'&amp;gt;0'},WEEK_END_DATE = {'&amp;gt;$(Date(WeekEnd(Today(),-1)-70))'}, WEEK_END_DATE = {'&amp;lt;$(Date(WeekEnd(Today(),-1)))'}&amp;gt;}PART_B_COUNT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 10:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256042#M1190317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-13T10:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256043#M1190318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;**Please note that the list box has just the RET_NAME values.**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your valuable input. Here is what I was able to implement so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script section, declared the valiables for date calculations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vWeekStartDate = Date(weekend(Today(),-1)-70);&lt;/P&gt;&lt;P&gt;LET vWeekEndDate = Date(weekend(Today(),-1));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Expression of Line Chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;RET_NAME ={'ABC'},&amp;nbsp; WEEK_END_DATE = {"&amp;gt;$(vWeekStartDate) &amp;lt; $(vWeekEndDate)"}, &lt;STRONG style="text-decoration: underline;"&gt;PART_SK&amp;nbsp; = {'1','2','7','6','0','5','90','79'}&lt;/STRONG&gt;&amp;gt;} PART_COUNT )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I just use first two conditions, it worsk fine ( the graph appears), as soon as I add the 'underlined' expressions, graph disappears. Looks like PART_SK expression is causing the issue. Not sure how it was working as mentioned above in the original post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 17:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256043#M1190318</guid>
      <dc:creator />
      <dc:date>2011-09-13T17:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256044#M1190319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arorarohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can't see an issue with your expression (but maybe I'm just missing something), except that your original expression had two sums. &lt;/P&gt;&lt;P&gt;(second part like&lt;/P&gt;&lt;P&gt;+ Sum({1&amp;lt;RET ={'ABC'}, PRICE={" &amp;gt;0"}, WEEK_END_DATE = {"&amp;gt;$(=Date(WeekEnd(Today(),-1)-70)) &amp;lt;$(= Date(WeekEnd(Today(),-1))))"}&amp;gt;}&amp;nbsp; PART_B_COUNT)&lt;/P&gt;&lt;P&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you were just posting not the complete expression, but if you do, are you sure that the combinations of field selections really result in a value? Maybe, in your original version, you just got a result because of the second part?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 17:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256044#M1190319</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-13T17:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256045#M1190320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right on the part that I did not post complete expression in my second post. This is because (and I should have mentioned that before) that second part after '+' sign is giving values BUT right graph should be the combination of both first and second, and I am not getting any value out of first expression only. Where as the first expression was giving right results when the expression was as posted in the original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also not able to find the cause of problem with following conversion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND&amp;nbsp; (PART_SK ='1' or PART_SK ='2'&amp;nbsp; or PART_SK = '7'&amp;nbsp; or PART_SK ='6' or PART_SK ='0' or PART_SK ='5' or&amp;nbsp; PART_SK ='90' or&amp;nbsp; PART_SK ='79') AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;PART_SK&amp;nbsp; = {'1','2','7','6','0','5','90','79'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for help though, I guess I'll keep digging more.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt; &lt;/STRONG&gt;&lt;STRONG style="text-decoration: underline;"&gt; &lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="text-decoration: underline;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 20:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256045#M1190320</guid>
      <dc:creator />
      <dc:date>2011-09-13T20:18:00Z</dc:date>
    </item>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256046#M1190321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With this expression, do you get zero values in your line graph (you could also convert it to a straight table for examination) or something&amp;nbsp; like no data to display?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post your app here at the forum (upload is available in advanced editor)? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 22:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256046#M1190321</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-13T22:21:27Z</dc:date>
    </item>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256047#M1190322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan for your continious help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting 'No Data to display'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry but I cannot upload my app as it is confidential data. The expression seems so straight forward, but I am not sure what exactly I am missing here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again all for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 17:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256047#M1190322</guid>
      <dc:creator />
      <dc:date>2011-09-14T17:17:21Z</dc:date>
    </item>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256048#M1190323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you already did, but could you try to select the assigned field values of your set expression in the appropriate field list boxes and look at the resulting record set regarding PART_COUNT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What dimensions do you use in your line graph?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post your data model here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this is kind of desperate trial, just have the impression that we are missing something obvious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 17:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256048#M1190323</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-14T17:34:19Z</dc:date>
    </item>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256049#M1190324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are more details,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list box consists of only 'RET_NAME' from data source.&lt;/P&gt;&lt;P&gt;There is only one dimension used in the Graph - WEEK_END_DATE ( so it shows the dates of last 10 rolling Mondays)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a table, as suggested, so see the output and mostly it is '0'. The only thing I could nail it down to is that &lt;/P&gt;&lt;P&gt;AND&amp;nbsp; (PART_SK ='1' or PART_SK ='2'&amp;nbsp; or PART_SK = '7'&amp;nbsp; or PART_SK ='6' or PART_SK ='0' or PART_SK ='5' or&amp;nbsp; PART_SK ='90' or&amp;nbsp; PART_SK ='79') AND&lt;/P&gt;&lt;P&gt;this part of the expression is a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried writing the expression in different for as below, then it jsut shows '-' instead of zero in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ((PART_SK ='1' or PART_SK ='2'&amp;nbsp; or PART_SK = '7'&amp;nbsp; or PART_SK ='6' or PART_SK ='0' or PART_SK ='5' or&amp;nbsp; PART_SK ='90' or&amp;nbsp; PART_SK ='79'), Sum({1&amp;lt;RET_NAME ={'ABC'},&amp;nbsp; WEEK_END_DATE = {"&amp;gt;$(vWeekStartDate) &amp;lt; $(vWeekEndDate)"}&amp;gt;} PART_COUNT )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it is difficult to decipher the exact issue without QVW file or model, but there is not much choice.&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 19:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256049#M1190324</guid>
      <dc:creator />
      <dc:date>2011-09-15T19:03:57Z</dc:date>
    </item>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256050#M1190325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can go to Settings,Document properties,Scrambling and scramble the sensitive fields so you can post it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 20:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256050#M1190325</guid>
      <dc:creator />
      <dc:date>2011-09-15T20:19:41Z</dc:date>
    </item>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256051#M1190326</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 think you should combine the if with the set expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;RET_NAME ={'ABC'},&amp;nbsp; WEEK_END_DATE = {"&amp;gt;$(vWeekStartDate) &amp;lt; $(vWeekEndDate)"}&amp;gt;} &lt;/P&gt;&lt;P&gt;if(PART_SK ='1' or PART_SK ='2'&amp;nbsp; or PART_SK = '7'&amp;nbsp; or PART_SK ='6' or PART_SK ='0' or PART_SK ='5' or&amp;nbsp; PART_SK ='90' or&amp;nbsp; PART_SK ='79',PART_COUNT ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my previous post, my intention was that you create a tablebox with your fields incl. PART_COUNT (i.e. you might need to temorarily add some list boxes), then create list boxes for all the fields used in the set expression and select the set as used in your set expression. Then look what the resulting table box shows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe posting the app with scrambeld fields is possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 22:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256051#M1190326</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-15T22:10:02Z</dc:date>
    </item>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256052#M1190327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You hit the bulls eye.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am really interested to understand why we had to write this code as you mentioned. Is there any standard way of writing some piece into set analysis and other like you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't &lt;STRONG style="text-decoration: underline;"&gt;PART_SK&amp;nbsp; = {'1','2','7','6','0','5','90','79'} &lt;/STRONG&gt;&lt;STRONG style="text-decoration: underline;"&gt;covers the same logic as written explicitly later in your comment. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Appreciate your help.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 00:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256052#M1190327</guid>
      <dc:creator />
      <dc:date>2011-09-16T00:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256053#M1190329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I am glad it worked. I have been following this thread since few days. I really wanted to appreciate Stefan's help to get this expression working. Rohit (&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/arorarohit10" id="jive-552434592147255423637"&gt;arorarohit10&lt;/A&gt;) is unable to post the sample QV document neither the data model, I understand it is confidential data. But both of you guys worked together and got it working. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Stefan - You are awesome. Very helpful and most important being patient. Nice way to get past 3000 mark &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; - Congratulations.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 08:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256053#M1190329</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-09-16T08:08:07Z</dc:date>
    </item>
    <item>
      <title>Another Set Analysis Q..</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256054#M1190330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arorarohit10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, my last expression is probably solving your business problem (disregarding current selections on the chart), but is only half way from your original expression with just adding set identifier {1} (see below a)) to a equivalent full set expression solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe we were too focused on solving the set expression issue and you might live well with the proposed solution still using an if(). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also quite interested why the set expression did not work, so if you have any chance, it might be good if you could post your sample app here (with scrambled or simulated data maybe? If you don't trust the scrambling, you might be able to load simulated records into your app).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I think I haven't understood your last comment completely, could you clarify your question (if any) please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) like:&lt;/P&gt;&lt;P&gt;=Sum(&lt;STRONG&gt;{1}&lt;/STRONG&gt; if(RET_NAME = 'ABC' AND&amp;nbsp; (PART_SK ='1' or PART_SK ='2'&amp;nbsp; or PART_SK = '7'&amp;nbsp; or PART_SK ='6' or PART_SK ='0' or PART_SK ='5' or&amp;nbsp; PART_SK ='90' or&amp;nbsp; PART_SK ='79') AND (WEEK_END_DATE &amp;gt; Date(WeekEnd(Today(),-1)-70)) AND WEEK_END_DATE &amp;lt; Date(WeekEnd(Today(),-1)),PART_COUNT))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 11:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Set-Analysis-Q/m-p/256054#M1190330</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-16T11:37:28Z</dc:date>
    </item>
  </channel>
</rss>

