<?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 Syntax Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285848#M106321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #800000;"&gt;[Date Received Month/Year]&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;={'$(=Date([Upload Month/Year], 'MMMM/YYYY'))'}, &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #800000;"&gt;[Sales Channel]&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;={'FriendsLife'},&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #800000;"&gt;[Conversion Status]&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;={'2 Tender Doc Issued'}, Status={'Won','Live'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #800000;"&gt;APE&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that the Dollar sign expansion should be replaced with a text that must be in the same format as the [Date Received Month/Year]. If you leave just Date([Upload Month/Year]), it will return the date in the default dateformat (which I guess is DD/MM/YYYY), so you have to set the correct date format (which I guess is MMMM/YYYY, the month with full name...). Please adjust the 'MMMM/YYYY' with the correct date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works or not.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 02:32:33 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2012-01-20T02:32:33Z</dc:date>
    <item>
      <title>Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285845#M106318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if someone out there can help me with the following syntax;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Date Received]&lt;/SPAN&gt;={'$(=Date([Upload Date]))'}, &lt;SPAN style="color: #800000;"&gt;[Sales Channel]&lt;/SPAN&gt;={'FriendsLife'},&lt;SPAN style="color: #800000;"&gt;[Conversion Status]&lt;/SPAN&gt;={'2 Tender Doc Issued'}, &lt;SPAN style="color: #800000;"&gt;Status&lt;/SPAN&gt;={'Won','Live'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;APE&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above works fine and returns an APE value which is brilliant. However, I need to change the two date fields to something else and as I soon as I do this it stops returning a value and gives me zero's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two new fields are formatted differently and I'm thinking it may have something to do with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above fields are normal date fields DD/MM/YYYY the two new ones are taken from the date fields using the MonthName formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 11:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285845#M106318</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2012-01-18T11:41:29Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285846#M106319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the syntax of the new date fields? It isn't clear to me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post a sample QVW with the working and non-working codes?&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;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 00:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285846#M106319</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2012-01-19T00:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285847#M106320</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;This is the syntax that doesn't work;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Date Received Month/Year]&lt;/SPAN&gt;={'$(=Date([Upload Month/Year]))'}, &lt;SPAN style="color: #800000;"&gt;[Sales Channel]&lt;/SPAN&gt;={'FriendsLife'},&lt;SPAN style="color: #800000;"&gt;[Conversion Status]&lt;/SPAN&gt;={'2 Tender Doc Issued'}, Status={'Won','Live'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;APE&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 09:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285847#M106320</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2012-01-19T09:53:17Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285848#M106321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #800000;"&gt;[Date Received Month/Year]&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;={'$(=Date([Upload Month/Year], 'MMMM/YYYY'))'}, &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #800000;"&gt;[Sales Channel]&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;={'FriendsLife'},&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #800000;"&gt;[Conversion Status]&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;={'2 Tender Doc Issued'}, Status={'Won','Live'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; font-family: Arial; color: #800000;"&gt;APE&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that the Dollar sign expansion should be replaced with a text that must be in the same format as the [Date Received Month/Year]. If you leave just Date([Upload Month/Year]), it will return the date in the default dateformat (which I guess is DD/MM/YYYY), so you have to set the correct date format (which I guess is MMMM/YYYY, the month with full name...). Please adjust the 'MMMM/YYYY' with the correct date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works or not.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 02:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285848#M106321</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2012-01-20T02:32:33Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285849#M106322</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 your syntax for the Set Analysis is incorrect.&amp;nbsp; your opening parenthesis should look like this {$&amp;lt;&amp;nbsp; not {&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, I would remove the date component and check that the other syntax is working.&amp;nbsp; then use listboxes containing your dates (date ranges) to get an idea of what values you are expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Often when comparing dates like this you need to create a variable to hold the date you are comparing against.&amp;nbsp; in this case vUploadMonthYear = [UploadMonth/Year].&amp;nbsp; If you are trying to convert to date format on the fly I wouldn't do that here, but again throw it to the variable and test it first.&amp;nbsp; Dates can be fickle and you may be comparing DDMMYY against MMDDYY without even knowing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally, the set analysis for comparing a date if the format is Month/Year might look like this &lt;/P&gt;&lt;P&gt;{$&amp;lt; [Date Received Month/Year]={'$(vUploadMonthYear)' &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again,&amp;nbsp; check the value of [Date Received Month/Year] to ensure the same format of date.&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 04:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285849#M106322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-20T04:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285850#M106323</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;If your MonthYear() function returns, say, "jan-2012" you need to specify that same date format in set analysis, if all the fields are linked properly and formats are alike &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Date Received Month/Year]={"$(=Date([Upload Month/Year], 'MMM-YYYY'))"}, [Sales Channel]={'FriendsLife'},[Conversion Status]={'2 Tender Doc Issued'}, Status={'Won','Live'}&amp;gt;}APE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This assumes the [Upload Month/Year] field is in full date format. However, if that field is already storing values in the form "jan-2012" and so that happens with [Date Received Month/Year] then you don't need the Date() function at all, rather&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Date Received Month/Year]=P([Upload Month/Year]), [Sales Channel]={'FriendsLife'},[Conversion Status]={'2 Tender Doc Issued'}, Status={'Won','Live'}&amp;gt;}APE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the P() function will return all possible values for that field in a given state of selections: if no values are selected, then all values are possible and so the Sum() will count on all values of it, and if you have "jan-2012" selected, then the sum for this will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 05:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285850#M106323</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-20T05:25:15Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285851#M106324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick note: there is nothing wrong with "{&amp;lt;", actually that is the same that "{$&amp;lt;". The dollar sign indicates the current state of selections and is the default option, hence you don't need to specify it. Great if you do for clarification, but the set analysis will work as well.&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 05:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285851#M106324</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-20T05:29:06Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285852#M106325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use the expression like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 12px; color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-size: 12px; color: #800000;"&gt;[Date Received Month/Year]&lt;/SPAN&gt;={$(=chr(39) &amp;amp; Date([Upload Month/Year]) &amp;amp; chr(39))}, &lt;SPAN style="font-size: 12px; color: #800000;"&gt;[Sales Channel]&lt;/SPAN&gt;={'FriendsLife'},&lt;SPAN style="font-size: 12px; color: #800000;"&gt;[Conversion Status]&lt;/SPAN&gt;={'2 Tender Doc Issued'}, Status={'Won','Live'}&amp;gt;}&lt;SPAN style="font-size: 12px; color: #800000;"&gt;APE&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 06:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285852#M106325</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-01-20T06:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285853#M106326</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 have posted a message earlier this morning but it's being moderated for some reason I'm not aware of. I suggested you to use this expression instead, if both fields [Date Received Month/Year] and [Upload Month/Year] have the same format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum({&amp;lt;[Date Received Month/Year]=P([Upload Month/Year]), [Sales Channel]={'FriendsLife'},[Conversion Status]={'2 Tender Doc Issued'}, Status={'Won','Live'}&amp;gt;}APE)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 11:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285853#M106326</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-20T11:20:47Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Syntax Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285854#M106327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to thank everyone for taking the time and effort in replying to my question, I've tried a few of the answers and some work and some don't!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 12:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-Issue/m-p/285854#M106327</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2012-01-20T12:29:21Z</dc:date>
    </item>
  </channel>
</rss>

