<?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 Set Analysis - Greater than and Less than problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828701#M291749</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 looking for a little help getting some set analysis to work. I have a date field that tells me when a decision was made (Last_Est_Dec_Date) and I want to compare it to a period defined by two more dates (TSVERSION_START and TSVERSION_END).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my decision date is greater than the start date and less than the end date and the team name matches my first modifier of SplitFunc_CareTeam then I can count the decisions made in that team. I get a result if I only use the start date but as soon as I add the end date in I'm returning a zero. I know from writing this as a Sum If formula that there are a couple of thousand cases that match the criteria. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;SplitFunc_CareTeam={'Team 1'}, Last_Est_Dec_Date={"'&amp;gt;=$(TSVERSION_START) &amp;lt;=$(TSVERSION_END)"}&amp;gt;} ClaimantCount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody spot where I'm going wrong? From looking at other posts this seems to be what works for other people but most definitely doesn't work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2015 11:10:21 GMT</pubDate>
    <dc:creator>nickking</dc:creator>
    <dc:date>2015-04-14T11:10:21Z</dc:date>
    <item>
      <title>Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828701#M291749</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 looking for a little help getting some set analysis to work. I have a date field that tells me when a decision was made (Last_Est_Dec_Date) and I want to compare it to a period defined by two more dates (TSVERSION_START and TSVERSION_END).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my decision date is greater than the start date and less than the end date and the team name matches my first modifier of SplitFunc_CareTeam then I can count the decisions made in that team. I get a result if I only use the start date but as soon as I add the end date in I'm returning a zero. I know from writing this as a Sum If formula that there are a couple of thousand cases that match the criteria. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;SplitFunc_CareTeam={'Team 1'}, Last_Est_Dec_Date={"'&amp;gt;=$(TSVERSION_START) &amp;lt;=$(TSVERSION_END)"}&amp;gt;} ClaimantCount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody spot where I'm going wrong? From looking at other posts this seems to be what works for other people but most definitely doesn't work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828701#M291749</guid>
      <dc:creator>nickking</dc:creator>
      <dc:date>2015-04-14T11:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828702#M291750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure it has to be fixed with Set Analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds like something that you could also solve by using the IntervalMatch in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828702#M291750</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-04-14T11:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828703#M291751</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;in quick look, i found syntax error in first expression, where in you have single quote. which i removed in below expression.&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;sum({$&amp;lt;SplitFunc_CareTeam={'Team 1'}, Last_Est_Dec_Date={"&amp;gt;=$(TSVERSION_START) &amp;lt;=$(TSVERSION_END)"}&amp;gt;} ClaimantCount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828703#M291751</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2015-04-14T11:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828704#M291752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is most likely a problem with date format. Be sure to get same date format output for the 2 variables as is used for your decision date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer to debug such set analysis expressions by not setting an formula name for this expression then the $ - parts are eveluated in the column title and and errors are easier to spot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it seems you got more quotings at the start of the expression than at the end of the date.&lt;/P&gt;&lt;P&gt;I got a similar expression to calculate some revenues which looks like:&lt;/P&gt;&lt;P&gt;%KalenderDatum={'&amp;gt;=$(vMinDatum) &amp;lt;=$(vMaxDatum)'}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828704#M291752</guid>
      <dc:creator />
      <dc:date>2015-04-14T11:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828705#M291753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have removed the extra quote at the start and it still isn't working. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828705#M291753</guid>
      <dc:creator>nickking</dc:creator>
      <dc:date>2015-04-14T11:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828706#M291754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is not confidential, can you post application with sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828706#M291754</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2015-04-14T11:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828707#M291755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure both your variables &amp;amp; date field being compared should be in same format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828707#M291755</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2015-04-14T11:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828708#M291756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Onno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with Interval Match. Would it work if the start and end dates are loaded in one dataset and the decision date is brought in later in a second dataset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828708#M291756</guid>
      <dc:creator>nickking</dc:creator>
      <dc:date>2015-04-14T11:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828709#M291757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick&lt;/P&gt;&lt;P&gt;its better if you can share your sample application ..&lt;/P&gt;&lt;P&gt;very high chance to failure is your date format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828709#M291757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T11:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828710#M291758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would have the start and end date in a table, which effectively are classifications.&lt;/P&gt;&lt;P&gt;You would have the decision date in a different table.&lt;/P&gt;&lt;P&gt;It will than check for every decision if it fits between the start and end date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828710#M291758</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-04-14T12:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828711#M291759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample app now attached. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828711#M291759</guid>
      <dc:creator>nickking</dc:creator>
      <dc:date>2015-04-14T13:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828712#M291760</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 didnt really check how your calendar is linked to the facts but&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;SplitFunc_CareTeam={'Team 1'}, Last_Est_Dec_Date={"&amp;gt;=$(=MIN(TSVERSION_START)) &amp;lt;=$(=max(TSVERSION_END))"}&amp;gt;} ClaimantCount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Putting the date range into aggregation functions eliminates the problems with multiple start or end dates selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned, if you get rid of the expression label, you will see if a date is eveluated into the set analysis expression :&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;SplitFunc_CareTeam={'Team 1'}, Last_Est_Dec_Date={"&amp;gt;=10/09/2007 &amp;lt;=41908"}&amp;gt;} ClaimantCount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously there still is an issue with date formatting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828712#M291760</guid>
      <dc:creator />
      <dc:date>2015-04-14T13:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828713#M291761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;will suggest to use &lt;/P&gt;&lt;P&gt;=sum(if(SplitFunc_CareTeam='Team 1', if(Last_Est_Dec_Date&amp;gt;=TSVERSION_START and TSVERSION_START&amp;lt;=TSVERSION_END,ClaimantCount)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828713#M291761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T13:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828714#M291762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my mistake &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(SplitFunc_CareTeam='Team 1', if(Last_Est_Dec_Date&amp;gt;=TSVERSION_START and Last_Est_Dec_Date&amp;lt;=TSVERSION_END,ClaimantCount)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828714#M291762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T13:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828715#M291763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;result is 2606&amp;nbsp; is it correct ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828715#M291763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828716#M291764</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;That is the result. You'll see from the attached app that I have a working Sum If calculation but I'm trying to get a working Set Analysis in order to remove the effect of any selections in the date and team fields from the calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828716#M291764</guid>
      <dc:creator>nickking</dc:creator>
      <dc:date>2015-04-14T13:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Greater than and Less than problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828717#M291765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as it is line by line comparison you can not use set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 14:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-and-Less-than-problem/m-p/828717#M291765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T14:29:37Z</dc:date>
    </item>
  </channel>
</rss>

