<?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 help? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293764#M108979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevermind I found the solution to use it as a Header in chart and solved it. Below is the expression if you need it for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Month Actual ' &amp;amp; pick(max(month_num),'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec') &amp;amp; ' ' &amp;amp; year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your time and effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 14:29:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-20T14:29:22Z</dc:date>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293750#M108965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write a simple expression where when a user &lt;STRONG&gt;selects year &lt;/STRONG&gt;dimension, it should show the &lt;STRONG&gt;December data&lt;/STRONG&gt;, likewise if he &lt;STRONG&gt;selects 3 months (eg: Aug, Sep, Oct)&lt;/STRONG&gt;, the &lt;STRONG&gt;last month 'Oct' of his selection &lt;/STRONG&gt;should show the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year and month are my dimensions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying the below expression... can anyone help with this please....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if($(vExpressionCond),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (sum({&amp;lt;month = {'=$max(month)'}&amp;gt;}reportValue)&amp;lt;&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (sum({&amp;lt;month = {'=$max(month)'}&amp;gt;}reportValue),&lt;/P&gt;&lt;P&gt;$(vNumberForm)),''))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 10:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293750#M108965</guid>
      <dc:creator />
      <dc:date>2011-07-20T10:47:27Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293751#M108966</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 the dollar sign expansion inside your set expression is not correct,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt;sum({&amp;lt;month = {$(=max(month))}&amp;gt;}reportValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 10:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293751#M108966</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T10:57:26Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293752#M108967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Stefan, Thanks for the quick response, but its not working. it always shows 0...any other suggestions please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293752#M108967</guid>
      <dc:creator />
      <dc:date>2011-07-20T11:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293753#M108968</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 it is possible, please post a sample application with your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pin point your problem, it is best to build it up from bottom to top, i.e. please try the sum expression itself, then add format, then ExpressionConditon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of data format is month? Have you tried with a literal comparison instead?&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, 20 Jul 2011 11:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293753#M108968</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293754#M108969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month is in number format as when i do a max(month) and select year = 2010, it returns 12 (december). And likewise when I select Jan, Feb, March it shows me 3(March) its exactly doing what I want, But how do I use this variable or expression in Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cannot post an example as my app is big and highly confidential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again,&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293754#M108969</guid>
      <dc:creator />
      <dc:date>2011-07-20T11:18:05Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293755#M108970</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;so you get a result when using sum(reportValue), right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get a result for sum({&amp;lt;month={12}&amp;gt;} reportValue) ?&lt;/P&gt;&lt;P&gt;(or any other value?)&lt;/P&gt;&lt;P&gt;month is a dimension, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AS I said, please try to use this expression stand alone first, e.g. in text box or chart expression, without further formatting expressions or conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the expression I posted is corrected, but try to build a small app myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293755#M108970</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293756#M108971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached my simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293756#M108971</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T11:41:40Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293757#M108972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Ok my month dimension is like jan, feb, mar, apr etc.... but when i do a max(month) in a text box and select&amp;nbsp; year 2011 it shows the max(month) = 7 and when I select year 2010, itshows the max(month) as 12 which is december... How can I make it work in set analysis??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try sum({&amp;lt;month={12}&amp;gt;} reportValue), it wont work...thats the struggle I have..its strange when i select year the max(month) shows the correct number... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or suggestions please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293757#M108972</guid>
      <dc:creator />
      <dc:date>2011-07-20T11:48:25Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293758#M108973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you generate month? Might be an idea to have a date format instead, or using a numerical monthID linked to the month (name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293758#M108973</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T12:01:37Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293759#M108974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; year and month is generated from a date_value field which is in the format of dd/mm/yyyy 00:00:00 and when I do a max(date_value) select year 2010, it returns 31/12/2010 00:00:00 which is exactly what I want, just that when the end user selects year 2010, it should by default show Dec data....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293759#M108974</guid>
      <dc:creator />
      <dc:date>2011-07-20T12:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293760#M108975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently also struggle with month as name and max(month)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it working with a additional monthID, please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293760#M108975</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T12:44:45Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293761#M108976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your application, when i select a year 2010 it shows all months except Jan... I want to see Dec selected when I click on 2010 and like wise, if i select feb, mrz, apr then I should see Apr as this is the maximum from what i selected.. I have the same situation what you have tried here and I can see the number, but not able to make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for your time and patience, any more suggestions please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293761#M108976</guid>
      <dc:creator />
      <dc:date>2011-07-20T12:49:41Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293762#M108977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mady,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my example, the expression we discussed affects only the textbox ("Summe =" / sum of values).&lt;/P&gt;&lt;P&gt;If you select a year, the sum is correctly displaying only dec value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always understood that this was your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you want also preselect within listboxes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really be good if you could post an example or rework mine...&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, 20 Jul 2011 13:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293762#M108977</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293763#M108978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats exactly what I was looking for but was confused by looking at the title of the chart columns. Can you help me set up the title for the charts... I mean when I select the date(max(month_num),'MMM') expecting to see the name of the month, it returns Jan instead of Dec... any suggestions please..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously I was confused because of the chart Titles... but I am half way through with the issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your time spent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 14:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293763#M108978</guid>
      <dc:creator />
      <dc:date>2011-07-20T14:07:55Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293764#M108979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevermind I found the solution to use it as a Header in chart and solved it. Below is the expression if you need it for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Month Actual ' &amp;amp; pick(max(month_num),'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec') &amp;amp; ' ' &amp;amp; year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your time and effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 14:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293764#M108979</guid>
      <dc:creator />
      <dc:date>2011-07-20T14:29:22Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293765#M108980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I got lost in translation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean, if you select 2012, ypu expect Dec but you are actually getting Jan?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats because my Dates range from Feb 2010 to Jan 2012 (I forgot a -1 in my script, autogenerating the Dates).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that's what is confusing you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 14:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293765#M108980</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Set analysis help?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293766#M108981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; No even in my script, when I am using the expression for chart Title, it shows me max(month_ Num) as 12, but the name as Jan instead of December, which was annoying so I have kind of hard coded it for now and solved the problem. I was not talking about your application months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again,&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 15:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/293766#M108981</guid>
      <dc:creator />
      <dc:date>2011-07-20T15:15:58Z</dc:date>
    </item>
  </channel>
</rss>

