<?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: Max count comparison on year /previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430434#M160473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is ok,but i need the max of employee count in current year and previous year. it mean which month having the top employees count in current year and previous year.&amp;nbsp; this comparison is required.help me &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2013 12:14:51 GMT</pubDate>
    <dc:creator>Qlik__Vinodh</dc:creator>
    <dc:date>2013-01-17T12:14:51Z</dc:date>
    <item>
      <title>Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430432#M160471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having one problem,that is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I am having 5 years data now,if i click a year in dashboard, i need current year max employee count Month data and previous year max employee count month data in bar chart .&lt;/P&gt;&lt;P&gt;2. dimension is month, and Expression is&amp;nbsp; Count(distint Emp_Id).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. any one having sample application for same soluation ,share me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any one knows the soluation.pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;c vr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 11:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430432#M160471</guid>
      <dc:creator>Qlik__Vinodh</dc:creator>
      <dc:date>2013-01-17T11:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430433#M160472</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;You can use a bar chart with Year as dimension and expressions as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. =count({&amp;lt;Year={$(vLastYear)}&amp;gt;}distinct Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vLastYear is a variable defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Year(Today())-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. =count({&amp;lt;Year={$(vCurrentYear)}&amp;gt;}distinct Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vCurrentYear is a variable defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =Year(Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the sample attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&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;-Khaled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 12:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430433#M160472</guid>
      <dc:creator />
      <dc:date>2013-01-17T12:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430434#M160473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is ok,but i need the max of employee count in current year and previous year. it mean which month having the top employees count in current year and previous year.&amp;nbsp; this comparison is required.help me &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 12:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430434#M160473</guid>
      <dc:creator>Qlik__Vinodh</dc:creator>
      <dc:date>2013-01-17T12:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430435#M160474</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;Just noticed that you need the value for year selected by user and its previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the updated QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this implementation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Define a variable named vSelectedYear&lt;/P&gt;&lt;P&gt;with definition&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =GetFieldSelections(Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Define another variable named vPreviousYear&lt;/P&gt;&lt;P&gt;with definition&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =GetFieldSelections(Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and add these expressions in the bar&amp;nbsp; chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. =sum({&amp;lt;Year={$(vSelectedYear)}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;2. =sum({&amp;lt;Year={$(vPreviousYear)}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the QVW attached.&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Khaled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 12:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430435#M160474</guid>
      <dc:creator />
      <dc:date>2013-01-17T12:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430436#M160475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok,but i need Max of count in current yearmonth and max of count in previous yearmonth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 12:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430436#M160475</guid>
      <dc:creator>Qlik__Vinodh</dc:creator>
      <dc:date>2013-01-17T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430437#M160476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok,but i need Max of count in current yearmonth and max of count in previous yearmonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it means which month having the highest count in current year and previous year is required.help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 12:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430437#M160476</guid>
      <dc:creator>Qlik__Vinodh</dc:creator>
      <dc:date>2013-01-17T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430438#M160477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Can you attach the sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 12:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430438#M160477</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-01-17T12:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430439#M160478</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 need one sample application for what i am asking u friend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 12:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430439#M160478</guid>
      <dc:creator>Qlik__Vinodh</dc:creator>
      <dc:date>2013-01-17T12:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430440#M160479</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;&lt;/P&gt;&lt;P&gt;i need the current year month and previous year month comparison ,but this months should be highest values in that years, when user selecting one year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 12:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430440#M160479</guid>
      <dc:creator>Qlik__Vinodh</dc:creator>
      <dc:date>2013-01-17T12:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430441#M160480</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 this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Month={$(=Max(Month))},Year={$(vSelectedYear)}&amp;gt;} Value )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --- for the Current Selected Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( {$&amp;lt;Month = {$(=Max(Month)-1)},Year={$(vPreviousYear)}&amp;gt;} Value )&amp;nbsp;&amp;nbsp; -- for the previous year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should always use the max month to calculate the value.&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Khaled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 13:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430441#M160480</guid>
      <dc:creator />
      <dc:date>2013-01-17T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430442#M160481</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 any one knows soluation pls help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 09:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430442#M160481</guid>
      <dc:creator>Qlik__Vinodh</dc:creator>
      <dc:date>2013-01-18T09:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430443#M160482</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 any one knows soluation pls help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 09:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430443#M160482</guid>
      <dc:creator>Qlik__Vinodh</dc:creator>
      <dc:date>2013-01-18T09:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430444#M160483</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;You can try the following steps to get this done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To begin with, define three variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. vSelectedYear&lt;/P&gt;&lt;P&gt;Definition: =GetCurrentField(Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. vPreviousYear&lt;/P&gt;&lt;P&gt;Definition: = (GetCurrentField(Year)-1)&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;3. vMaxx_Month&lt;/P&gt;&lt;P&gt;Definition: =MaxString({&amp;lt;Year={$(vSelectedYear)}&amp;gt;}Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, create a bar chart and add the following expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For Selected Year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Year={$(vSelectedYear)},Month={$(vMaxx_Month)}&amp;gt;}EmployeeID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For Previous Year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Year={$(vPreviousYear)},Month={$(vMaxx_Month)}&amp;gt;}EmployeeID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find sample attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&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;-Khaled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 16:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430444#M160483</guid>
      <dc:creator />
      <dc:date>2013-01-18T16:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Max count comparison on year /previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430445#M160484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaled,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.u r showing the always selecting the Max month in current year and previous year.it is ok.but&amp;nbsp; i need the selected year highest count month and previous year highest count month comparison .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of count should be High value in current year and previous year. if have any soluation help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;c vr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 05:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-comparison-on-year-previous-year/m-p/430445#M160484</guid>
      <dc:creator>Qlik__Vinodh</dc:creator>
      <dc:date>2013-01-21T05:46:54Z</dc:date>
    </item>
  </channel>
</rss>

