<?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 two periods thanks to range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755247#M590818</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;. Thank you for your reply.&lt;/P&gt;&lt;P&gt;How could i build your table configuration in qlikview script ?&lt;BR /&gt;In my table i have a field for Year and Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;</description>
    <pubDate>Fri, 23 Oct 2020 02:44:59 GMT</pubDate>
    <dc:creator>marakud971</dc:creator>
    <dc:date>2020-10-23T02:44:59Z</dc:date>
    <item>
      <title>Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755129#M590815</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;P&gt;What i want is to be able to compare 2 periods which are not calendar years.&lt;/P&gt;&lt;P&gt;example: 11/19 to 08/20 compare to 11/18 to 08/19&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to display the current slice ( 11/19 to 08/20 ) but I can't do it for the previous slice (11/18 to 08/19 )&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date comparaison.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42840i2E902056CEBEFE54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="date comparaison.PNG" alt="date comparaison.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date comparaison 2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42841i9F08B06E02F5BC6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="date comparaison 2.PNG" alt="date comparaison 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I can't seem to overlay the graphics. and on the gray graph, the dates are not sorted&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755129#M590815</guid>
      <dc:creator>marakud971</dc:creator>
      <dc:date>2024-11-16T17:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755238#M590816</link>
      <description>&lt;P&gt;Hi, one way is to link current month with prior year month.&amp;nbsp; assuming data in on month level, the association will be like the following:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FactMonth&lt;/TD&gt;&lt;TD&gt;DisplayMonth&lt;/TD&gt;&lt;TD&gt;DateType&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/19&lt;/TD&gt;&lt;TD&gt;11/19&lt;/TD&gt;&lt;TD&gt;CurrentYear&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/18&lt;/TD&gt;&lt;TD&gt;11/19&lt;/TD&gt;&lt;TD&gt;PriorYear&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/19&lt;/TD&gt;&lt;TD&gt;12/19&lt;/TD&gt;&lt;TD&gt;CurrentYear&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/18&lt;/TD&gt;&lt;TD&gt;12/19&lt;/TD&gt;&lt;TD&gt;PriorYear&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/20&lt;/TD&gt;&lt;TD&gt;01/20&lt;/TD&gt;&lt;TD&gt;CurrentYear&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/19&lt;/TD&gt;&lt;TD&gt;01/19&lt;/TD&gt;&lt;TD&gt;PriorYear&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you chart it, your Dimension is DisplayMonth; you will have two expressions with set analysis ...DateType={'PriorYear'}...&amp;nbsp; this will plot 11/19 to 8/20; second expression&amp;nbsp; with DateType={'NextYear'} to plot 11/18 to 8/19&lt;/P&gt;&lt;P&gt;do you think this is something that will work for you?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 01:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755238#M590816</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-10-23T01:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755241#M590817</link>
      <description>&lt;P&gt;implemented the similar requirment using Attached QVF found on community&lt;/P&gt;&lt;P&gt;check it out&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 02:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755241#M590817</guid>
      <dc:creator>PriyankaShivhare</dc:creator>
      <dc:date>2020-10-23T02:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755247#M590818</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;. Thank you for your reply.&lt;/P&gt;&lt;P&gt;How could i build your table configuration in qlikview script ?&lt;BR /&gt;In my table i have a field for Year and Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 02:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755247#M590818</guid>
      <dc:creator>marakud971</dc:creator>
      <dc:date>2020-10-23T02:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755401#M590819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58524"&gt;@PriyankaShivhare&lt;/a&gt;&amp;nbsp;, thanks a lot.&lt;/P&gt;&lt;P&gt;I'm on qlikview. I think your file is for qliksense.&lt;/P&gt;&lt;P&gt;Do you have the qlikview version ?&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 12:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755401#M590819</guid>
      <dc:creator>marakud971</dc:creator>
      <dc:date>2020-10-23T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755405#M590820</link>
      <description>&lt;P&gt;there is no difference in Qlikview and Qliksense in terms of scripting.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 12:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755405#M590820</guid>
      <dc:creator>PriyankaShivhare</dc:creator>
      <dc:date>2020-10-23T12:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755521#M590821</link>
      <description>&lt;P&gt;oki. But how could i open the file if i don't have qliksense ?&lt;BR /&gt;I only have qlikview at my client.&lt;BR /&gt;I can't use the script&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 15:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755521#M590821</guid>
      <dc:creator>marakud971</dc:creator>
      <dc:date>2020-10-23T15:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755623#M590822</link>
      <description>&lt;P&gt;this assumes you are always comparing Months and your calendar year starts November of the year:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Data:
LOAD date(date('11/1/2019') +(RowNo()-1)*7) as Date, floor(rand()*1000) as Sales
AutoGenerate(48*4);


calendar:
load distinct Date, MonthStart(Date) as Month resident Data;

tmpBridge:
load distinct Month resident calendar;

inner join (tmpBridge)
load Month as DisplayMonth Resident tmpBridge;

Bridge:
load Month, DisplayMonth,year(addmonths(DisplayMonth,-10)) as DisplayYear, 'CURRENT' as DateType Resident tmpBridge where Month=DisplayMonth;

concatenate(Bridge)
load Month, DisplayMonth,year(addmonths(DisplayMonth,-10)) as DisplayYear, 'PRIORYEAR' as DateType Resident tmpBridge where Month=addmonths(DisplayMonth,12);

drop table tmpBridge;
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;you can have a list of Calendar Years, select 2019 and select 11/2019 to 8/2020:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1603504560173.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42963i61B5F2ACE44A1513/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1603504560173.png" alt="edwin_0-1603504560173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first tables shows relationship between the months, second table shows the raw data, third chart shows the expected output, you can then make it a line chart if you want but look at the expressions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can expand this using set analysis on Display Month.&amp;nbsp; if the year calculation is a stretch - you dont have to do that.&amp;nbsp; just do your set analysis and the relationship will persist.&amp;nbsp; personally i would do month indices as its simpler but that a different topic&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 01:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755623#M590822</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-10-24T01:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755651#M590823</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/27034"&gt;@marakud971&lt;/a&gt;&amp;nbsp; No need of complex coding here. See the attached. You can do it via calculated dimension&amp;nbsp; with single inline table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-10-24 162132.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42967iDB1776DD2AF22463/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-10-24 162132.png" alt="Screenshot 2020-10-24 162132.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 15:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755651#M590823</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-24T15:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755721#M590824</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;, I need to overlay the two graphics&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 18:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755721#M590824</guid>
      <dc:creator>marakud971</dc:creator>
      <dc:date>2020-10-25T18:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755726#M590825</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/27034"&gt;@marakud971&lt;/a&gt;&amp;nbsp; like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-10-25 201057.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42986i6B32DE682B53CD67/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-10-25 201057.png" alt="Screenshot 2020-10-25 201057.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 10:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755726#M590825</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-26T10:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755806#M590827</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/27034"&gt;@marakud971&lt;/a&gt;&amp;nbsp; updated attachment&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 10:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755806#M590827</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-26T10:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755845#M590828</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp; that was awesome expression.&amp;nbsp; i guess mine is just an alternative/different style&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 11:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755845#M590828</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-10-26T11:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two periods thanks to range</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755885#M590829</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;and &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;, i'll try all of them to learn more !&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 12:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-periods-thanks-to-range/m-p/1755885#M590829</guid>
      <dc:creator>marakud971</dc:creator>
      <dc:date>2020-10-26T12:53:53Z</dc:date>
    </item>
  </channel>
</rss>

