<?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 Need help on set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337399#M124407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use addmonths()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a search for previous month or point in time etc etc. here's one that might be appropriate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/thread/34976"&gt;http://community.qlik.com/thread/34976&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 14:54:05 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-04-04T14:54:05Z</dc:date>
    <item>
      <title>Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337396#M124404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to show&amp;nbsp; a chart in which the dimension is the Department and my expressios would be &lt;/P&gt;&lt;P&gt;1.count[cost center id] --(for current month)&lt;/P&gt;&lt;P&gt;2.count([Cost Centre Id] --- (for previous Month]..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here how can i capture the previous month value?? The user selcts the year and Month..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one plz help me with the expression for previous month....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337396#M124404</guid>
      <dc:creator />
      <dc:date>2012-04-04T14:29:17Z</dc:date>
    </item>
    <item>
      <title>Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337397#M124405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been answered many many times on this forum before!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way (I haven't double-checked the syntax) is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable vLastMonth and set to =Month-1&lt;/P&gt;&lt;P&gt;Create a variable vLastYear and set to =Year-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Month={'$(vLastMonth)'}, Year={'$(vLastYear)'}&amp;gt;} [Cost centre Id])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution assumes a single year and month is selected by the users. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337397#M124405</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-04-04T14:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337398#M124406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if selected month is January? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to have a date table with a monthID field which is in date order. You can use the autonumber function to create a monthID.&amp;nbsp; From there you can use the method above. Each fact record should link either via a date ID if you need to daily or just monthId if you only need to know the month. This will require a lookup when loading the data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337398#M124406</guid>
      <dc:creator />
      <dc:date>2012-04-04T14:45:04Z</dc:date>
    </item>
    <item>
      <title>Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337399#M124407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use addmonths()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a search for previous month or point in time etc etc. here's one that might be appropriate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/thread/34976"&gt;http://community.qlik.com/thread/34976&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337399#M124407</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-04-04T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337400#M124408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My requiremnt is bit different even if I dnt make selection on any month.. I should be able to see the count(cost center Id] for the previous month as a second column.. How do I writ ethe expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337400#M124408</guid>
      <dc:creator />
      <dc:date>2012-04-04T15:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337401#M124409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do anyone have any suggestions .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337401#M124409</guid>
      <dc:creator />
      <dc:date>2012-04-04T15:29:16Z</dc:date>
    </item>
    <item>
      <title>Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337402#M124410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe look at Above()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337402#M124410</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-04-04T15:31:12Z</dc:date>
    </item>
    <item>
      <title>Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337403#M124411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the MonthID as suggested above and then use this as your expresion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;MonthID={"=(MonthID-1)"}&amp;gt;}&amp;nbsp; ......... whaterver you are counting)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337403#M124411</guid>
      <dc:creator />
      <dc:date>2012-04-04T15:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337404#M124412</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use the below expression in previous Month when u select the year &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Month={'$(vLastMonth)'}&amp;gt;}DISTINCT cost center Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vLastMonth = Month(AddMonths(Datefield,-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iyyappan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337404#M124412</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2012-04-04T15:44:04Z</dc:date>
    </item>
    <item>
      <title>Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337405#M124413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This wil only work within a single year as if you have two June's in your dataset they will get included twice.&amp;nbsp; You must have a sequential monthID. For example where monthId is the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; Dec 2011&lt;/P&gt;&lt;P&gt;2 Jan&amp;nbsp; 2012&lt;/P&gt;&lt;P&gt;3 Feb 2012&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;13 Dec 2012&lt;/P&gt;&lt;P&gt;14 Jan 2013&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link this table to your fact and now you can use MonthID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337405#M124413</guid>
      <dc:creator />
      <dc:date>2012-04-04T15:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337406#M124414</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 the below expression in&amp;nbsp; Previous Month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Year=,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month=,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datefield={'&amp;gt;=$(=(Num(Monthstart(AddMonths((Datefield),-1)))))&amp;lt;=$(=(Num(AddMonths((Datefield),-1))))'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cost center Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iyyappan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 16:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337406#M124414</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2012-04-04T16:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337407#M124415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Let suppose I have&amp;nbsp; one dimension (Super Department).. and my first expression is count(distinct cost center id] and how should I write my second expression so that it shows me the count(distinct [Cost Center Id]) for previous month..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 02:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337407#M124415</guid>
      <dc:creator />
      <dc:date>2012-04-05T02:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337408#M124416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Will this work if we dont have any selection on the date field?? Sorry this is not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 04:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337408#M124416</guid>
      <dc:creator />
      <dc:date>2012-04-05T04:28:26Z</dc:date>
    </item>
    <item>
      <title>Need help on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337409#M124417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you'd better post your app so we can see more about what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 11:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-set-analysis/m-p/337409#M124417</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-04-05T11:25:49Z</dc:date>
    </item>
  </channel>
</rss>

