<?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 comparing data selected year to year previous to selected, selected month to month previous to selected,selected quarter previous to quarter previous to selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/comparing-data-selected-year-to-year-previous-to-selected/m-p/372869#M491878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;i have a master calendar&amp;nbsp; to use to compare values through a period of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 listboxes&lt;/P&gt;&lt;P&gt;The first contains the years: 2010,2011,2012&lt;/P&gt;&lt;P&gt;The second contains the Quarters with the corresponding year:&lt;/P&gt;&lt;P&gt;Q1-2010, Q2-2010,Q3-2010,....,Q3-2012&lt;/P&gt;&lt;P&gt;The third contains the Months with their corresponding Years:&lt;/P&gt;&lt;P&gt;Jan-2010, Feb-2010, Mar-2010,.....,Jul-2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table in which i want to display the count of a transactions database and the sum of these transaction value, according to the selected listbox, of the selected value versus the one in the previous year,eg if Q1-2012 is selected i want to compare it with Q1-2011 or if Mar-2012 is selected i want to compare it with Mar-2011, and the previous one, eg&amp;nbsp; if Q1-2012 is selected i want to compare it with Q4-2011 or if Mar-2012 is selected i want to compare it with Feb-2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only one selection at a time should be permitted form one listbox. &lt;/P&gt;&lt;P&gt;The user must not be able to select&amp;nbsp; eg Q1-2010 And Jan-2010 . Only one of them.&lt;/P&gt;&lt;P&gt;Also i would like to incorporate an if statement that will show the desirable result according to the selected option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Jul 2012 13:36:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-29T13:36:50Z</dc:date>
    <item>
      <title>comparing data selected year to year previous to selected, selected month to month previous to selected,selected quarter previous to quarter previous to selected</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data-selected-year-to-year-previous-to-selected/m-p/372869#M491878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;i have a master calendar&amp;nbsp; to use to compare values through a period of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 listboxes&lt;/P&gt;&lt;P&gt;The first contains the years: 2010,2011,2012&lt;/P&gt;&lt;P&gt;The second contains the Quarters with the corresponding year:&lt;/P&gt;&lt;P&gt;Q1-2010, Q2-2010,Q3-2010,....,Q3-2012&lt;/P&gt;&lt;P&gt;The third contains the Months with their corresponding Years:&lt;/P&gt;&lt;P&gt;Jan-2010, Feb-2010, Mar-2010,.....,Jul-2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table in which i want to display the count of a transactions database and the sum of these transaction value, according to the selected listbox, of the selected value versus the one in the previous year,eg if Q1-2012 is selected i want to compare it with Q1-2011 or if Mar-2012 is selected i want to compare it with Mar-2011, and the previous one, eg&amp;nbsp; if Q1-2012 is selected i want to compare it with Q4-2011 or if Mar-2012 is selected i want to compare it with Feb-2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only one selection at a time should be permitted form one listbox. &lt;/P&gt;&lt;P&gt;The user must not be able to select&amp;nbsp; eg Q1-2010 And Jan-2010 . Only one of them.&lt;/P&gt;&lt;P&gt;Also i would like to incorporate an if statement that will show the desirable result according to the selected option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2012 13:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data-selected-year-to-year-previous-to-selected/m-p/372869#M491878</guid>
      <dc:creator />
      <dc:date>2012-07-29T13:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: comparing data selected year to year previous to selected, selected month to month previous to selected,selected quarter previous to quarter previous to selected</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data-selected-year-to-year-previous-to-selected/m-p/372870#M491879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did something similar using the formula in the manual under set analysis (adjusted as appropriate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {$(#=only(year)-1)}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I did not use a list box or quarters. Just select fields where the month (s) and year was selected as appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This meant that any combination of months could be selected (including quarters) as required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2012 15:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data-selected-year-to-year-previous-to-selected/m-p/372870#M491879</guid>
      <dc:creator>robert99</dc:creator>
      <dc:date>2012-07-29T15:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: comparing data selected year to year previous to selected, selected month to month previous to selected,selected quarter previous to quarter previous to selected</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data-selected-year-to-year-previous-to-selected/m-p/372871#M491880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The key points are in &lt;STRONG&gt;bold:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selected year:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;Quarter=, Month=&amp;gt;} Amount)&lt;BR /&gt;Selected quarter:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;Year=, Month=&amp;gt;} Amount)&lt;BR /&gt;Selected month:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;Quarter=, Year=&amp;gt;} Amount)&lt;BR /&gt;Year before selected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;Year=, Quarter=, Month=&amp;gt;} if(&lt;STRONG&gt;InYear&lt;/STRONG&gt;(Date, '$(=makedate(Year))', &lt;STRONG&gt;-1&lt;/STRONG&gt;),Amount))&lt;BR /&gt;Quarter one year before selected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;Year=, Quarter=, Month=&amp;gt;} if(&lt;STRONG&gt;InQuarter&lt;/STRONG&gt;(Date, &amp;lt;any date in the selected quarter&amp;gt;, &lt;STRONG&gt;-4&lt;/STRONG&gt;),Amount))&lt;BR /&gt;Month one year before selected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;Year=, Quarter=, Month=&amp;gt;} if(&lt;STRONG&gt;InMonth&lt;/STRONG&gt;(Date, &amp;lt;any date in the selected month&amp;gt;, &lt;STRONG&gt;-12&lt;/STRONG&gt;),Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't tell for sure how you define "any date in the selected quarter or month" because it depends very much on how it is formatted in your application. I hope this information is enough for you to figure out the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2012 18:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data-selected-year-to-year-previous-to-selected/m-p/372871#M491880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-29T18:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: comparing data selected year to year previous to selected, selected month to month previous to selected,selected quarter previous to quarter previous to selected</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data-selected-year-to-year-previous-to-selected/m-p/372872#M491881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everybody; i'm a newbie and i've a similar problem: compare sales "by year" (read select a month and compare with the same month of the previous year) first and then compare sales "by month" (read select a month and compare with the previous month of the same year). &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;first comparison (year) - &lt;EM&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt;{$&amp;lt;Year = {$(#=Only(Year)-1)}&amp;gt;} Sales &lt;/EM&gt;&lt;SPAN class="Bold"&gt;&lt;EM&gt;)&lt;/EM&gt;, from users' manual; i got it, i don't understand all about this expression but it works for my pourpose! &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="Bold"&gt;second comparison (month) - &lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt;{$&amp;lt;Year = {$(#=Only(Year))}, Month = {$(#=Only(Month)-1)}&amp;gt;} Sales &lt;/EM&gt;&lt;SPAN class="Bold"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/SPAN&gt;﻿ by me... and it only shows zero!!! no result! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;what's wrong with my expression!!! btw, i set month and year in script loading by adding Year(Date) as YEAR as well as month﻿... many thanx...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 13:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data-selected-year-to-year-previous-to-selected/m-p/372872#M491881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-04T13:23:39Z</dc:date>
    </item>
  </channel>
</rss>

