<?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 columns directly next to each other in a pivot table, is this possible? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2468207#M99449</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I have been trying to come up with a measurement where I can compare the current month with the previous month, the caveat is that it has to compare the direct previous month even if it has a null value.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've been using&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Alt(turnover)&lt;BR /&gt;/&lt;BR /&gt;After(tota FABS(turnover))-1&lt;BR /&gt;,0)&lt;BR /&gt;&lt;BR /&gt;and this works fine, as long as the columns have a value, however, if the direct next column contains Null() it will use the next first column that contains a value.&lt;BR /&gt;&lt;BR /&gt;As can be seen in the table below:&lt;BR /&gt;I would like to compare okt 2023 with sep 2023 and sept 2023 with aug 2023, etc. However, with the above mentioned measurement, it will compare the current value, with the next value. So it in the example table below, for example in the first row it will compare Okt - 2023 with Sep - 2023 correctly, but it will also compare&amp;nbsp;Sep - 2023 to Jun - 2023 incorrectly. or in the last row, aug - 2023 with may - 2023.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Okt - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Sep - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Aug - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Jul - 2023&amp;nbsp;&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Jun - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;May - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Apr - 2023&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;100&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;150&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;50&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;100&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;50&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;100&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;100&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;50&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;I know this problem can be fixed easily by replacing the null() with dummy rows through the load script, however, i'm trying to find a solution where I don't need to add any dummy rows as dummy rows could impact the load times.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance,&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jul 2024 14:18:35 GMT</pubDate>
    <dc:creator>CedricD</dc:creator>
    <dc:date>2024-07-07T14:18:35Z</dc:date>
    <item>
      <title>Comparing columns directly next to each other in a pivot table, is this possible?</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2468207#M99449</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I have been trying to come up with a measurement where I can compare the current month with the previous month, the caveat is that it has to compare the direct previous month even if it has a null value.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've been using&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Alt(turnover)&lt;BR /&gt;/&lt;BR /&gt;After(tota FABS(turnover))-1&lt;BR /&gt;,0)&lt;BR /&gt;&lt;BR /&gt;and this works fine, as long as the columns have a value, however, if the direct next column contains Null() it will use the next first column that contains a value.&lt;BR /&gt;&lt;BR /&gt;As can be seen in the table below:&lt;BR /&gt;I would like to compare okt 2023 with sep 2023 and sept 2023 with aug 2023, etc. However, with the above mentioned measurement, it will compare the current value, with the next value. So it in the example table below, for example in the first row it will compare Okt - 2023 with Sep - 2023 correctly, but it will also compare&amp;nbsp;Sep - 2023 to Jun - 2023 incorrectly. or in the last row, aug - 2023 with may - 2023.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Okt - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Sep - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Aug - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Jul - 2023&amp;nbsp;&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Jun - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;May - 2023&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;Apr - 2023&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;100&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;150&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;50&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;100&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;50&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;100&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;100&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;-&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;50&lt;/TD&gt;
&lt;TD width="14.285714285714286%" height="24px"&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;I know this problem can be fixed easily by replacing the null() with dummy rows through the load script, however, i'm trying to find a solution where I don't need to add any dummy rows as dummy rows could impact the load times.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance,&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 14:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2468207#M99449</guid>
      <dc:creator>CedricD</dc:creator>
      <dc:date>2024-07-07T14:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing columns directly next to each other in a pivot table, is this possible?</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2469234#M99528</link>
      <description>&lt;P&gt;bump&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 15:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2469234#M99528</guid>
      <dc:creator>CedricD</dc:creator>
      <dc:date>2024-07-09T15:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing columns directly next to each other in a pivot table, is this possible?</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2476562#M100289</link>
      <description>&lt;P&gt;Anybody can help?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 06:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2476562#M100289</guid>
      <dc:creator>CedricD</dc:creator>
      <dc:date>2024-08-16T06:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing columns directly next to each other in a pivot table, is this possible?</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2476662#M100298</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you please share some sample data set or data model to understand more? do you have master calendar implemented ?&amp;nbsp; because ideally Before / After function doesn't skip null values if there is an row entry available.&lt;/P&gt;
&lt;P&gt;Based on your sample I do see July with blank data, meaning you have an entry for July but with no data.&lt;/P&gt;
&lt;P&gt;When I tried with sample data it worked for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PFA, sample data and output.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 06:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2476662#M100298</guid>
      <dc:creator>Dataintellinalytics</dc:creator>
      <dc:date>2024-08-17T06:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing columns directly next to each other in a pivot table, is this possible?</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2476937#M100325</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;So we do have a master calendar implemented, that's why some months have null values but are still shown.&lt;BR /&gt;&lt;BR /&gt;For the data sample, here is how it looks in db form:&lt;BR /&gt;&lt;BR /&gt;ProductID, Amount, Date&lt;BR /&gt;AproductA, 100, okt 2023&lt;BR /&gt;AproductA, 150, sep 2023&lt;BR /&gt;AproductA, 50, jun 2023&lt;BR /&gt;AproductA, 100, may 2023&lt;BR /&gt;BproductB, 50, aug 2023&lt;BR /&gt;BproductB, 100, may 2023&lt;BR /&gt;CproductC,&amp;nbsp;100, aug 2023&lt;BR /&gt;CproductC,&amp;nbsp;50, may 2023&lt;BR /&gt;CproductC,&amp;nbsp;200, apr 2023&lt;BR /&gt;DproductD, 100, Jul 2023&lt;BR /&gt;&lt;BR /&gt;AproductA = the first row in the example table&lt;BR /&gt;BproductB = the 2nd row in the example table&lt;BR /&gt;CproductC = the 3th row in the example table&lt;BR /&gt;DproductD = not in the example table but it just to fill jul 2023 so the logic behind is correct&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 06:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-columns-directly-next-to-each-other-in-a-pivot-table/m-p/2476937#M100325</guid>
      <dc:creator>CedricD</dc:creator>
      <dc:date>2024-08-20T06:05:58Z</dc:date>
    </item>
  </channel>
</rss>

