<?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: Previous year % comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767042#M454338</link>
    <description>&lt;P&gt;see if the attached will help you&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 15:15:28 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2020-12-08T15:15:28Z</dc:date>
    <item>
      <title>Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1766990#M454326</link>
      <description>&lt;P&gt;Hi guys - I need to produce a graph which shows month on month % compliance with the previous year?&amp;nbsp; So, as example, Nov-20 against Nov-19 expressed as a %.&amp;nbsp; Due to COVID we need to see how we are recovering on a monthly basis.&lt;/P&gt;&lt;P&gt;The field we use to count is called AD_EventKey and the date field for Calendar month is called AD_CalendarMonth.&amp;nbsp; Can you help guys?&lt;/P&gt;&lt;P&gt;Many thanks - rgds.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1766990#M454326</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2024-11-15T23:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1766996#M454328</link>
      <description>&lt;P&gt;there are a few ways to do this one way is to store the current month in a variable&lt;BR /&gt;vCurrent=AD_CalendarMonth, vPrior=adyears(vCurrent,-1)&lt;/P&gt;&lt;P&gt;then in your set analysis:&lt;/P&gt;&lt;P&gt;count({&amp;lt;AD_CalendarMonth={'$(vCurrent)'}&amp;gt;}&lt;SPAN&gt;AD_EventKey&amp;nbsp;) /count({&amp;lt;AD_CalendarMonth={'$(vPrior)'}&amp;gt;}AD_EventKey&amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;another way is to build a bridge that associates current to prior months and add dataTypes appropriately&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;DataeType={'CURRENT'}&amp;gt;}&lt;SPAN&gt;AD_EventKey&amp;nbsp;) /count({&amp;lt;DateType={'PRIOR'}&amp;gt;}AD_EventKey&amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i suggest you start with the variables&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 12:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1766996#M454328</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-08T12:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767002#M454330</link>
      <description>&lt;P&gt;Hi edwin - it hasn't worked for some reason.&amp;nbsp; Not sure why.&amp;nbsp; I have attached the sort of thing I'm looking for.&amp;nbsp; I wasn't sure what your 'adyears' came from in the variable vPrior=adyears(vCurrent,-1)?&amp;nbsp; The only year field I have is called Calendar_Year.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 13:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767002#M454330</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-08T13:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767030#M454336</link>
      <description>&lt;P&gt;addyears - sorry for the typo&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767030#M454336</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-08T14:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767042#M454338</link>
      <description>&lt;P&gt;see if the attached will help you&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 15:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767042#M454338</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-08T15:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767100#M454344</link>
      <description>&lt;P&gt;Hi edwin - I can see that works perfectly and really what I need with the pre-loaded sums in my spreadsheet I attached in my previous message, but my data consists of hundreds of files all loaded into Qlikview.&amp;nbsp; So I need some sort of set analysis to be able to calculate this based on my existing loaded data.&amp;nbsp; I've attached exactly what I'm dealing with (data).&amp;nbsp; In this data I only want to use the 'AD_Data=Activity' so somehow need to build this into the set analysis...?&lt;/P&gt;&lt;P&gt;The basic count I expression I use, to produce a monthly chart is:&lt;/P&gt;&lt;P&gt;=count(Event_Key)&lt;/P&gt;&lt;P&gt;and I use 'Calendar_Year_Month' as the dimension, in format YYYY-MM.&lt;/P&gt;&lt;P&gt;So I really appreciate your solution and it's exactly what I need to show, but I am just not sure how to do this using my original data.&amp;nbsp; Let me attach a sample of my actual data to show you what I mean as this is the exact data (albeit anonymised and reduced in columns) but goes to show what I'm working with here.&lt;/P&gt;&lt;P&gt;I'll get there in the end, just need to work hard with you guys for assistance.&amp;nbsp; Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 18:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767100#M454344</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-08T18:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767101#M454345</link>
      <description>&lt;P&gt;Edwin - there's far more data (going back 5 years) but just wanted to give you extract of what I'm working with here.&amp;nbsp; Many thanks!&amp;nbsp; I owe you one if we can sort this.&amp;nbsp; Rgds&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 18:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767101#M454345</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-08T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767110#M454346</link>
      <description>&lt;P&gt;Volume should not be a concern as long as your server memory can handle it.&lt;/P&gt;&lt;P&gt;going back to your question re AD_Data.&amp;nbsp; if i understand you corretcly you want to calculate the count of AD EventKey where AD Data = 'Activity',&amp;nbsp; &amp;nbsp;just add it to all your expressions&lt;BR /&gt;&lt;BR /&gt;AD_Data={'Activity'}&lt;/P&gt;&lt;P&gt;that should limit the specific expression&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 19:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767110#M454346</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-08T19:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767113#M454347</link>
      <description>&lt;P&gt;Hi Edwin - could you produce a .qvw like you did earlier, based on the sample data I have just sent you?&amp;nbsp; I'd like to see the variables, dimensions used etc to assist me?&amp;nbsp; Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 19:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767113#M454347</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-08T19:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767114#M454348</link>
      <description>&lt;P&gt;i added random dates so there will be more from your xls&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 19:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767114#M454348</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-08T19:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767125#M454350</link>
      <description>&lt;P&gt;Edwin - that's really great, thanks so much.&amp;nbsp; I'll sort out the load script etc tomorrow when I'm in the office as the network is lightning quick and I can upload really quick and test it.&amp;nbsp; Appreciate all your help and will let you know how it works out for me tomorrow!&amp;nbsp; Many thanks and kind regards.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 20:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767125#M454350</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-08T20:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767142#M454351</link>
      <description>&lt;P&gt;np hope it works out for you&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 22:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767142#M454351</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-08T22:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767278#M454359</link>
      <description>&lt;P&gt;edwin - I'm getting exactly the same values for 'Current' and 'Prior'...?&amp;nbsp; Checked everything but am not sure how you have created the dimension you are using and wonder if that's where I'm going wrong?&amp;nbsp; I've used dimension of Calendar_Year_Month but you have used '=date(Date,'MM YYYY')'.&amp;nbsp; Do I need to use exactly the one you have done so and, if so, how do I create this dimension?&amp;nbsp; Many thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 11:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767278#M454359</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-09T11:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767308#M454361</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/23929"&gt;@jlampard40&lt;/a&gt;&amp;nbsp;the sample i attached was intended to showcase the solution and you should adjust it to your specific case, use your fields and not use mine.&amp;nbsp; what i did do was teak your data to become YYYY-MM-DD as it is a lot easier to load the date as start of the month.&amp;nbsp; make sure your field CalendarYearMonth is an actual date field.&amp;nbsp; this logic will work only with date fields.&lt;/P&gt;&lt;P&gt;sharing a test version of your QVW would be the easiest.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 12:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767308#M454361</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-09T12:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767319#M454362</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp; - I've attached sample QVW and CSV I'm basing this on.&amp;nbsp; Obviously my actual file is much larger and the qvw is larger, but these are the two main fields I'm using for this test and all I need to try and achieve what I need to i.e. current vs previous.&amp;nbsp; What am I doing wrong?&amp;nbsp; Thanks for your time edwin, really appreciate it.&lt;/P&gt;&lt;P&gt;I've changed some data on the load script but you may just want to save it your end and re-load it to see what's going on.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 13:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767319#M454362</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-09T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767367#M454364</link>
      <description>&lt;P&gt;the problem is that you dont have a good date field.&amp;nbsp; i converted your date column :&lt;BR /&gt;&lt;BR /&gt;date(AD_CalYrMth&amp;amp;'-01') as Month&lt;/P&gt;&lt;P&gt;see attached&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 15:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767367#M454364</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-09T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767373#M454365</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;- thanks for that!&amp;nbsp; One more thing before I test my data.&amp;nbsp; You produced some chart tables with the percentage relating to current / prior, but wondered how to do this on a chart?&amp;nbsp; Kind regards&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 15:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767373#M454365</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-09T15:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767385#M454367</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/23929"&gt;@jlampard40&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;You produced some chart tables with the percentage relating to current / prior, but wondered how to do this on a chart?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;not sure what you mean that is already a chart.&amp;nbsp; if you want it converted to a different chart, just change the chart type&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 15:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767385#M454367</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-09T15:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767397#M454369</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;- I owe you a couple of massive favours!!!!!&amp;nbsp; Thanks so much.&amp;nbsp; All the best.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767397#M454369</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-09T16:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year % comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767407#M454371</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;- quick one, how can I format each column of the bar chart as colour GREEN if the % is equal to or over 100%?&amp;nbsp; Rgds&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-comparison/m-p/1767407#M454371</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2020-12-09T16:35:21Z</dc:date>
    </item>
  </channel>
</rss>

