<?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: Re: Re: Built in functions within set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504431#M1147244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am unable to find the attachment,it could be because the advance editor option is not available in my profile.Can you please help me get it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 07:00:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-21T07:00:47Z</dc:date>
    <item>
      <title>Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504422#M1147235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need an expression which counts the EMP_ID when the end date is between today and seven days from today&lt;/P&gt;&lt;P&gt;I tried to accomplish thus using the expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(=date(today(),'MM/DD/YYYY'))'}&amp;gt;&lt;BR /&gt;+&lt;BR /&gt;$&amp;lt;Planned_End={'&amp;lt;=$(=date(today(),'MM/DD/YYYY')+7)'&amp;gt;}&amp;gt;}EMP_Id) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But,its not giving desirable results.Can anyone help me with the same&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Note:I need this to be done&amp;nbsp; using set analysis and I do not want to make any changes in load scripting&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 08:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504422#M1147235</guid>
      <dc:creator />
      <dc:date>2013-08-20T08:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504423#M1147236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there are two fields for your end dates, try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={"&amp;gt;=$(=date(today(),'MM/DD/YYYY'))"}, Planned_End={"&amp;lt;=$(=date(today()+7,'MM/DD/YYYY'))"} &amp;gt;} EMP_Id) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if there is in fact only one field (say End), try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={"&amp;gt;=$(=date(today(),'MM/DD/YYYY'))&amp;lt;=$(=date(today()+7,'MM/DD/YYYY'))"} &amp;gt;} EMP_Id) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 08:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504423#M1147236</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-20T08:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504424#M1147237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression suggested above is not giving the desirable count it gives the count as zero even though there are entries that satisfy the given condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 10:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504424#M1147237</guid>
      <dc:creator />
      <dc:date>2013-08-20T10:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504425#M1147238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I recommend to create a special variable vToday with definition: =date(today(1), ''MM/DD/YYYY') and vToday_7: date(today(1)-7, 'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;use these variables in the set analysis:&lt;/P&gt;&lt;P&gt;count({&amp;lt;End = {"&amp;lt;=$(vToday)&amp;gt;=$(vToday_7)"}&amp;gt;} EMP_Id). But you should be sure that values of End field have the same date format ('MM/DD/YYYY'). That's why I usually reccomend to use numeric for dates. so you shouldn't to think about correct format and alayse use numeric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 10:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504425#M1147238</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2013-08-20T10:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504426#M1147239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not working.I am unable to find the option to attach the application here,through which it would have been much easier for me to showcase it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 11:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504426#M1147239</guid>
      <dc:creator />
      <dc:date>2013-08-20T11:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504427#M1147240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you reply here, in the top of the right corner you will see oprion "Use advanced editor". where you can attach a file. try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 11:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504427#M1147240</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2013-08-20T11:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504428#M1147241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anushree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very likely to be a formatting issue. I am assuming the DateFormat variable (at the top of your loading script) is probably defined as DD/MM/YYYY and the field &lt;STRONG&gt;End&lt;/STRONG&gt; has the following format MM/DD/YYYY. If so, I would suggest you to do one of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If all of your Date fields are formatted as MM/DD/YYYY, you could change the DateFormat variable and reload the application. By doing this you won't need to worry about the format in the set modifier anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If it's only this or a few particular fields that are formatted as MM/DD/YYYY, you could change the format during the load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13769973182691625" jivemacro_uid="_13769973182691625" modifiedtitle="true"&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;(...),&lt;/P&gt;
&lt;P&gt;Date(Date#(End,'MM/DD/YYYY')) as End&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;TABLE;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And your expression would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. If you want to select all where End &lt;SPAN style="text-decoration: underline;"&gt;greater or equal than&lt;/SPAN&gt; Today &lt;STRONG&gt;AND&lt;/STRONG&gt; Planned_End &lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #575757; text-decoration: underline;"&gt;lesser or equal than&lt;/SPAN&gt;&lt;/SPAN&gt; Today + 7 days:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;End&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={'&amp;gt;=$(=date(today()))'},Planned_End={'&amp;lt;=$(=date(today()+7))'&amp;gt;}&amp;gt;} EMP_Id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B. If you want to select all where End &lt;SPAN style="text-decoration: underline;"&gt;greater or equal than&lt;/SPAN&gt; Today &lt;STRONG&gt;OR &lt;/STRONG&gt;Planned_End &lt;SPAN style="text-decoration: underline;"&gt;lesser or equal than&lt;/SPAN&gt; Today + 7 days:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;End&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={'&amp;gt;=$(=date(today()))'}&lt;STRONG&gt;&amp;gt;+$&amp;lt;&lt;/STRONG&gt;Planned_End={'&amp;lt;=$(=date(today()+7))'&amp;gt;}&amp;gt;} EMP_Id)&lt;/SPAN&gt;&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;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 11:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504428#M1147241</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2013-08-20T11:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504429#M1147242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Anushree here i was not able to find the advance editor option in my account thus using my friends account to post the application ,as said here i have trying to count the number of employee Ids whose end date is greater than equal to todays and lesser than equal to today+7 days (meaning end date is between today and today+7 days).Please have a look and let me know why the application is not showing the count as 1 even when the planned date is 25-08-2013&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 03:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504429#M1147242</guid>
      <dc:creator />
      <dc:date>2013-08-21T03:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504430#M1147243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I see 2 issues with your data:&lt;/P&gt;&lt;P&gt;- End field have &lt;STRONG&gt;text&lt;/STRONG&gt; format. so you should convert it to data format in the script.&lt;/P&gt;&lt;P&gt;- in Count() function you use incorrect fieldname EMP_Id. QlikView is &lt;STRONG&gt;case sensative&lt;/STRONG&gt; tool. You should use Emp_Id field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 06:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504430#M1147243</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2013-08-21T06:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504431#M1147244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am unable to find the attachment,it could be because the advance editor option is not available in my profile.Can you please help me get it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 07:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504431#M1147244</guid>
      <dc:creator />
      <dc:date>2013-08-21T07:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Built in functions within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504432#M1147245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;what is your email? I will send my example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 07:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Built-in-functions-within-set-analysis/m-p/504432#M1147245</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2013-08-21T07:07:32Z</dc:date>
    </item>
  </channel>
</rss>

