<?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: using buit in functions in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494571#M1147849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( {$&amp;lt;End={"&amp;gt;=$(=Date(weekstart(today())))&amp;lt;=$(=Date(weekend(today())))"} &amp;gt;} Emp_Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add appropriate format codes for Date() function if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 14:14:32 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-08-14T14:14:32Z</dc:date>
    <item>
      <title>using buit in functions in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494568#M1147846</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 want to compare the week&amp;nbsp; and year of end field(which has dates in it) with todays week and year within set analysis based on which i need to perform count of emp_id,and thus used 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;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;=count({$&amp;lt;year(End)={(=(year(today()))},week(End)={(=week(today()))}&amp;gt;}Emp_Id)&lt;/P&gt;&lt;P&gt;But,this is not giving me desired results.Can any one help me with the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 13:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494568#M1147846</guid>
      <dc:creator />
      <dc:date>2013-08-14T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: using buit in functions in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494569#M1147847</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In script , bring Year and Week field name for END..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Try like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=count({$&amp;lt;Year={$(=year(today()))},Week={$(=week(today()))}&amp;gt;}Emp_Id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 13:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494569#M1147847</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-14T13:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: using buit in functions in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494570#M1147848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would want to implement this on front end and not in scripting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494570#M1147848</guid>
      <dc:creator />
      <dc:date>2013-08-14T14:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: using buit in functions in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494571#M1147849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( {$&amp;lt;End={"&amp;gt;=$(=Date(weekstart(today())))&amp;lt;=$(=Date(weekend(today())))"} &amp;gt;} Emp_Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add appropriate format codes for Date() function if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494571#M1147849</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-14T14:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: using buit in functions in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494572#M1147850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looking at your answer and seeing the use of Double Quotes in the expression prompts me to ask you directly the same question I just posted under the title SET ANALYSIS. Many thanks if you can answer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an example of set analysis which I have downloaded, an expression was written as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=max(YR - 1))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=max({&amp;lt;YR={$(=max(YR))}&amp;gt;} MO))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TranAmt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;BR /&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=max(YR))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=max({&amp;lt;YR={$(=max(YR))}&amp;gt;} MO))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TranAmt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=max(YR))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=max({&amp;lt;YR={$(=max(YR))}&amp;gt;} MO))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TranAmt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=max(YR) - 1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=max({&amp;lt;YR={$(=max(YR))}&amp;gt;} MO))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TranAmt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Although it is a bit convoluted I can descern that&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; is to find the Month which is "less than or equal Max Month of the Max Year".&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="text-decoration: underline;"&gt;&lt;STRONG&gt;My question though is regarding the double quote: &lt;/STRONG&gt;&lt;/SPAN&gt;When / where / why use double quotes vs single quotes if use any of them at all? And is there any written material regarding advanced construct and punctuation of expressions within set analysis? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 16:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494572#M1147850</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2013-08-14T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: using buit in functions in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494573#M1147851</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;use double qoutes for a search expression (like you can use in listbox search or search object) and single qoutes for a literal string value or $-expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 17:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494573#M1147851</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-08-14T17:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: using buit in functions in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494574#M1147852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 17:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-buit-in-functions-in-set-analysis/m-p/494574#M1147852</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2013-08-14T17:16:10Z</dc:date>
    </item>
  </channel>
</rss>

