<?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 between two time periods in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1835030#M1214813</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have already the data normalised.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the formulas you said but it is not working. I dont know why.&lt;/P&gt;&lt;P&gt;In this case i have the dimension "Artikel". the variable "von" means "Date" and absatz are the "Sales".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote the three expressions but they seems to not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should i do`?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tmerinol_0-1631196774439.png" style="width: 601px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61660i1DBA5CD596043431/image-dimensions/601x290?v=v2" width="601" height="290" role="button" title="Tmerinol_0-1631196774439.png" alt="Tmerinol_0-1631196774439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 14:14:52 GMT</pubDate>
    <dc:creator>Tmerinol</dc:creator>
    <dc:date>2021-09-09T14:14:52Z</dc:date>
    <item>
      <title>Compare between two time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1834680#M1214787</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have an historical database where I have the orders for different products for the company (sold + forecast) for the year 2021. I have the historical data since 01.01.2021 for every day until now and i want to compare the percentual change between the amounts (sold + forecast) in different periods of time but limitating this just to two periods (otherwise it would not possible to compare three periods)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp; compare the percentual difference for all the articles between the 04.09.2021 and 01.09.2021, or between today and yesterday or between two random dates (that the user can choose).&lt;/P&gt;&lt;P&gt;I would like to know if it is possible to do this with a Pivot Table in Qlikview&lt;/P&gt;&lt;P&gt;Dataset would be:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Amount of orders and sold articles for diferents products for the year 2021&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Artikel&lt;/TD&gt;&lt;TD&gt;01.09.2021&lt;/TD&gt;&lt;TD&gt;02.09.2021&lt;/TD&gt;&lt;TD&gt;03.09.2021&lt;/TD&gt;&lt;TD&gt;04.09.2021&lt;/TD&gt;&lt;TD&gt;…&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;…&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;…&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;…&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Result would be (for the selected dates):&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Artikel&lt;/TD&gt;&lt;TD&gt;03.09.2021&lt;/TD&gt;&lt;TD&gt;04.09.2021&lt;/TD&gt;&lt;TD&gt;Difference between selected datum 1 (04.09.2021) and datum 2 (03.09.2021)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;40,00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;55,00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;80,00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 13:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1834680#M1214787</guid>
      <dc:creator>Tmerinol</dc:creator>
      <dc:date>2021-09-08T13:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compare between two time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1834797#M1214803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149117"&gt;@Tmerinol&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope the user will select max 2 random dates, in that case, try like below&lt;/P&gt;&lt;P&gt;Dim: Artikel&lt;/P&gt;&lt;P&gt;Exp1: Sum({&amp;lt;DateField={'$(=Date(Min(DateField)))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Exp2:&amp;nbsp;Sum({&amp;lt;DateField={'$(=Date(Max(DateField)))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Exp3: Num(Sum({&amp;lt;DateField={'$(=Date(Max(DateField)))'}&amp;gt;}Sales) /&amp;nbsp;Sum({&amp;lt;DateField={'$(=Date(Min(DateField)))'}&amp;gt;}Sales), '# ###,##%')&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 03:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1834797#M1214803</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-09-09T03:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare between two time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1834804#M1214804</link>
      <description>&lt;P&gt;it is possible to do, but I would recommend you to normalise your data set in order to do do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to transform your data into this format.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;|Artikel|Date|Amount|&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;|A|01.09.2001|10|&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;|A|02.09.2001|15|&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;|B|01.09.2001|20|&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;|B|02.09.2001|25|&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try to achieve this by using the &lt;A href="https://help.qlik.com/sv-SE/sense/May2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/crosstable.htm" target="_self"&gt;CROSSTABLE&lt;/A&gt; functionality in your load script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you have done this,&amp;nbsp; then you could look at &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;'s reply in order to get a correct measure expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 04:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1834804#M1214804</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-09-09T04:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare between two time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1835030#M1214813</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have already the data normalised.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the formulas you said but it is not working. I dont know why.&lt;/P&gt;&lt;P&gt;In this case i have the dimension "Artikel". the variable "von" means "Date" and absatz are the "Sales".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote the three expressions but they seems to not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should i do`?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tmerinol_0-1631196774439.png" style="width: 601px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61660i1DBA5CD596043431/image-dimensions/601x290?v=v2" width="601" height="290" role="button" title="Tmerinol_0-1631196774439.png" alt="Tmerinol_0-1631196774439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 14:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1835030#M1214813</guid>
      <dc:creator>Tmerinol</dc:creator>
      <dc:date>2021-09-09T14:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compare between two time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1835054#M1214824</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp; your solution worked for me. I realized that i had a format problem (with the dates). I fixed that and now works!&lt;/P&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 15:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-between-two-time-periods/m-p/1835054#M1214824</guid>
      <dc:creator>Tmerinol</dc:creator>
      <dc:date>2021-09-09T15:27:18Z</dc:date>
    </item>
  </channel>
</rss>

