<?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: compare data with month from previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565971#M211143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2014 08:53:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-28T08:53:55Z</dc:date>
    <item>
      <title>compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565963#M211135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm relatively new at Qlikview and wanted to compare some data from a selected year with its previous year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlikview I have a table in which i show the count of all the contacts there have been with the customer per mount [=count(contactsID)] with the dimension [contacts.month]&lt;/P&gt;&lt;P&gt;I want to show an other expression with the contacts with customers in the same month a year before.&lt;/P&gt;&lt;P&gt;So if my table shows all the contacts from jan-2014 until dec-2014 I want a bar next to every month with the months jan-2013 until dec-2013&lt;/P&gt;&lt;P&gt;for example jan-2013/jan-2014; feb-2013/feb-2014; etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody could help i would be very grateful! Thanks to all of you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 07:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565963#M211135</guid>
      <dc:creator />
      <dc:date>2014-04-28T07:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565964#M211136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this chart you have also year as dimension, or maybe your contacts.month field has year-month information?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565964#M211136</guid>
      <dc:creator />
      <dc:date>2014-04-28T08:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565965#M211137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry for not being clear about that!&lt;/P&gt;&lt;P&gt;In the database i have a date field and in Qlikview i load that as&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;date as contact.date&lt;/P&gt;&lt;P&gt;year(date) as contact.year,&lt;/P&gt;&lt;P&gt;month(date) as contact.month,&lt;/P&gt;&lt;P&gt;day(date) as contact.day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so contact.month is the month of the date in the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565965#M211137</guid>
      <dc:creator />
      <dc:date>2014-04-28T08:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565966#M211138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TOm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but as you told, you have selected year (i expect, one selected year).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, your expression:&lt;/P&gt;&lt;P&gt;=count(contactsID)&lt;/P&gt;&lt;P&gt;gives you result for selected year and for months from your chart dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you would like to have also expression for year-1 you may use set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565966#M211138</guid>
      <dc:creator />
      <dc:date>2014-04-28T08:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565967#M211139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using time as dimension, two ways I can see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Script: Create a monthly aggregated field for last year using previous/peek function on ordered data&lt;/LI&gt;&lt;LI&gt;Front end: Using a complex logic with synthetic dimension (ValueLoop()/ValueLis()) and expression using&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(Match(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The suggested one is script-way. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565967#M211139</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-04-28T08:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565968#M211140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In qlikview i made a selection option for years. If you select 2014 i want the table to show 2014 and 2013. The table has the dimension {Contact.Month} and the expresion {count(ContactID)} as you can see below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikview.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/58005_qlikview.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565968#M211140</guid>
      <dc:creator />
      <dc:date>2014-04-28T08:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565969#M211141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ps. i have only a personal version. so i can't open your file. Sorry for that :$&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565969#M211141</guid>
      <dc:creator />
      <dc:date>2014-04-28T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565970#M211142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add expression as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;contact.year={$(=contact.year-1)}&amp;gt;}ContactID&lt;/P&gt;&lt;P&gt;&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;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565970#M211142</guid>
      <dc:creator />
      <dc:date>2014-04-28T08:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565971#M211143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565971#M211143</guid>
      <dc:creator />
      <dc:date>2014-04-28T08:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565972#M211144</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 two expressions in your diagramm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;count(contactsID)&lt;/LI&gt;&lt;LI&gt;count({$ &amp;lt;contact.year={$(=only(contact.year) - 1)}&amp;gt;} contactsID)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second expression uses set-analysis (the part in the {}-brackets).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565972#M211144</guid>
      <dc:creator>MWiciok</dc:creator>
      <dc:date>2014-04-28T08:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: compare data with month from previous year</title>
      <link>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565973#M211145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! i did know that i could use more expressions. Didn't knew how to create the 2nd one. But now i do!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 10:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-data-with-month-from-previous-year/m-p/565973#M211145</guid>
      <dc:creator />
      <dc:date>2014-04-28T10:31:03Z</dc:date>
    </item>
  </channel>
</rss>

