<?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: How can I compare my previous data in pivot table to my current data if my previous data is null? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879283#M72486</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47074"&gt;@rbartley&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have&amp;nbsp; fully expanded the pivot table , Presentation---&amp;gt;fully Expanded&lt;/P&gt;
&lt;P&gt;How can I apply the same logic on the expanded fields.? to get the output?&lt;/P&gt;
&lt;P&gt;With fully expanded I am not getting the output&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="userpd_2021_0-1641880631777.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69947iA655A7F9CEF4487D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="userpd_2021_0-1641880631777.png" alt="userpd_2021_0-1641880631777.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 05:57:49 GMT</pubDate>
    <dc:creator>userpd_2021</dc:creator>
    <dc:date>2022-01-11T05:57:49Z</dc:date>
    <item>
      <title>How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1878921#M72462</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;How can I compare my previous data in pivot table to my current data if my previous data is null?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;q1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; q2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;q3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; q4&lt;/P&gt;
&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&lt;/P&gt;
&lt;P&gt;13&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;/P&gt;
&lt;P&gt;14&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the above example while I am using before function to give some color conditions&lt;/P&gt;
&lt;P&gt;if( qvalue&amp;lt;&amp;gt; before(qvalue),'Yellow') This condition&amp;nbsp; doesn't get satisfy when there's a null value in between&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Row 13 Q4 color should change to yellow which is not the case.&lt;/P&gt;
&lt;P&gt;How can this null be handled to get proper output?&lt;/P&gt;
&lt;P&gt;#Experts&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 11:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1878921#M72462</guid>
      <dc:creator>userpd_2021</dc:creator>
      <dc:date>2022-01-10T11:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879010#M72467</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It seems to work ok for me:&amp;nbsp;if(ColumnNo()&amp;gt;1, if(MinString(Value) &amp;lt;&amp;gt; Before(Value),yellow()))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbartley_0-1641824005695.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69911iF2A5A735142E270C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rbartley_0-1641824005695.png" alt="rbartley_0-1641824005695.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;See attached.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 14:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879010#M72467</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2022-01-10T14:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879275#M72482</link>
      <description>&lt;P&gt;Hi Rbartley,&lt;/P&gt;
&lt;P&gt;Thanks for the response.&lt;/P&gt;
&lt;P&gt;I used the same expression but the q1 is getting highlighted and the value after null is not getting highlighted.&lt;/P&gt;
&lt;P&gt;What can be the reason?&lt;/P&gt;
&lt;P&gt;I am using 4 dimensions in the pivot table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="userpd_2021_0-1641877788238.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69945i18FB731C138DFC12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="userpd_2021_0-1641877788238.png" alt="userpd_2021_0-1641877788238.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 05:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879275#M72482</guid>
      <dc:creator>userpd_2021</dc:creator>
      <dc:date>2022-01-11T05:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879283#M72486</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47074"&gt;@rbartley&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have&amp;nbsp; fully expanded the pivot table , Presentation---&amp;gt;fully Expanded&lt;/P&gt;
&lt;P&gt;How can I apply the same logic on the expanded fields.? to get the output?&lt;/P&gt;
&lt;P&gt;With fully expanded I am not getting the output&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="userpd_2021_0-1641880631777.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69947iA655A7F9CEF4487D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="userpd_2021_0-1641880631777.png" alt="userpd_2021_0-1641880631777.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 05:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879283#M72486</guid>
      <dc:creator>userpd_2021</dc:creator>
      <dc:date>2022-01-11T05:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879334#M72487</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/160542"&gt;@userpd_2021&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Could you please post your app so that I can make sure I'm working with the same data and structure.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 08:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879334#M72487</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2022-01-11T08:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879364#M72489</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47074"&gt;@rbartley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 09:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879364#M72489</guid>
      <dc:creator>userpd_2021</dc:creator>
      <dc:date>2022-01-11T09:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879383#M72491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/160542"&gt;@userpd_2021&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, I see the issue. You have no record at all for Sub text 13a for q3.&amp;nbsp; This is not the same as saying that the value field has a null value, the data simply does not exist.&amp;nbsp; As such, Before(Value) evaluates to "a", not null, so there appears to be no difference between the value for q2 and q4.&amp;nbsp; The simplest way (and perhaps the only way) of resolving this would be to update your source file or your load script to include these missing records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbartley_0-1641893851978.png" style="width: 729px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69965iFB0B9B3411091EB3/image-dimensions/729x268?v=v2" width="729" height="268" role="button" title="rbartley_0-1641893851978.png" alt="rbartley_0-1641893851978.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 09:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879383#M72491</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2022-01-11T09:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879437#M72492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47074"&gt;@rbartley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the help I will try to populate the missing data in the script.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 11:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879437#M72492</guid>
      <dc:creator>userpd_2021</dc:creator>
      <dc:date>2022-01-11T11:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879577#M72495</link>
      <description>&lt;P&gt;Just thought of another solution, which would appear to fit your scenario.&lt;/P&gt;
&lt;P&gt;Try this expression in the Background color expression property:&lt;/P&gt;
&lt;P&gt;if(ColumnNo()&amp;gt;1,if(MinString(Value) &amp;lt;&amp;gt; Before(Value),yellow(), if(Num(Right(Q,1))-Num(Before(Right(Q,1)))&amp;lt;&amp;gt;1,green())) )&lt;/P&gt;
&lt;P&gt;As well as comparing the value with the previous value, it also compares the quarter number with the previous one and, if the difference is not 1, colours the cell green.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbartley_0-1641911107606.png" style="width: 1170px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69998iBED32796F71EA893/image-dimensions/1170x234?v=v2" width="1170" height="234" role="button" title="rbartley_0-1641911107606.png" alt="rbartley_0-1641911107606.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 14:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879577#M72495</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2022-01-11T14:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare my previous data in pivot table to my current data if my previous data is null?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879867#M72520</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47074"&gt;@rbartley&lt;/a&gt;&amp;nbsp; I will use this once.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 04:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-compare-my-previous-data-in-pivot-table-to-my-current/m-p/1879867#M72520</guid>
      <dc:creator>userpd_2021</dc:creator>
      <dc:date>2022-01-12T04:54:47Z</dc:date>
    </item>
  </channel>
</rss>

