<?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: If the value is null or 0, then Previous value based on condition in Qliksense in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765459#M717559</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33204"&gt;@abhijith28&lt;/a&gt;&amp;nbsp; see the attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 13:23:54 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-12-01T13:23:54Z</dc:date>
    <item>
      <title>If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765376#M717548</link>
      <description>&lt;P&gt;Hi QlikExperts/&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help to achieve the below scenario. Tried different use case but not able to produce the expected output.&lt;/P&gt;&lt;P&gt;Data Format (Input)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijith28_0-1606805696000.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45031iDC9F0F6C3A68E4E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijith28_0-1606805696000.png" alt="abhijith28_0-1606805696000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Expected Output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijith28_1-1606805842153.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45032i2C8D14F802AEA7EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijith28_1-1606805842153.png" alt="abhijith28_1-1606805842153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are more than 40000 unique ID's. But all 40000 ID's data are not shown, always single "ID" will be selected by default.&lt;/P&gt;&lt;P&gt;In the above Expected output For ID=1, value = '-' (null)&amp;nbsp; is replaced by&amp;nbsp;20 but not for Date=1/1/2020 as&amp;nbsp;1/1/2020 is the starting point and there are no values(&amp;gt;0) Prior to the date&amp;nbsp;1/1/2020.&lt;/P&gt;&lt;P&gt;For ID=2, (3/2/2020 and 4/2/2020) is replaced by 40.&lt;/P&gt;&lt;P&gt;If the input data for ID=3 in the below format, then the output would be same as input as there are no Value prior to null values.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijith28_0-1606807260439.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45033i91C5DDAEF5CCF4DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijith28_0-1606807260439.png" alt="abhijith28_0-1606807260439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me on this scenario.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765376#M717548</guid>
      <dc:creator>abhijith28</dc:creator>
      <dc:date>2024-11-15T23:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765398#M717549</link>
      <description>&lt;P&gt;do you want previous value or next value???&lt;/P&gt;&lt;P&gt;if want previous value then try below&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load ID,Date,if(IsNull(Value) or Value='-',peek(Value),Value) as Value inline [&lt;BR /&gt;ID,Date,Value&lt;BR /&gt;1, 1/1/2020, -&lt;BR /&gt;1, 2/1/2020, 10&lt;BR /&gt;1, 3/1/2020, -&lt;BR /&gt;1, 4/1/2020, 20&lt;BR /&gt;1, 5/1/2020, 30&lt;BR /&gt;2, 2/2/2020, 15&lt;BR /&gt;2, 3/2/2020, -&lt;BR /&gt;2, 4/2/2020, -&lt;BR /&gt;2, 5/2/2020, 40&lt;BR /&gt;2, 6/2/2020, 30&lt;BR /&gt;3, 1/1/2020, -&lt;BR /&gt;3, 2/1/2020, -&lt;BR /&gt;3, 3/1/2020, -&lt;BR /&gt;3, 4/1/2020, 20&lt;BR /&gt;3, 5/1/2020, 30&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 09:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765398#M717549</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2020-12-01T09:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765399#M717550</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need next value, but it should follow certain rules.&lt;/P&gt;&lt;P&gt;1. ID=2 values should not replace ID=1 values. Replacing values should be within same ID.&lt;/P&gt;&lt;P&gt;2. For ID=3, there should not be any replacement of values, as there are no null values after the values&amp;gt;0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3, 1/1/2020, -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3, 2/1/2020, -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3, 3/1/2020, -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3, 4/1/2020, 20&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3, 5/1/2020, 30&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 09:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765399#M717550</guid>
      <dc:creator>abhijith28</dc:creator>
      <dc:date>2020-12-01T09:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765400#M717551</link>
      <description>&lt;P&gt;can you give sample input with required output...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 09:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765400#M717551</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2020-12-01T09:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765417#M717552</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the below input&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijith28_0-1606817725375.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45045i207F945E9BAFC44E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijith28_0-1606817725375.png" alt="abhijith28_0-1606817725375.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output&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="abhijith28_1-1606817762988.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45047iA5FF1B852C011959/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijith28_1-1606817762988.png" alt="abhijith28_1-1606817762988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 10:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765417#M717552</guid>
      <dc:creator>abhijith28</dc:creator>
      <dc:date>2020-12-01T10:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765430#M717553</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33204"&gt;@abhijith28&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
LOAD ID,
     Date,
     Value
FROM table;

Final:
LOAD *,
     if(ID=previous(ID) and len(trim(Value))=0,peek(New_Value),Value) as New_Value
resident Data
order by ID, Date;

Drop table Data;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Dec 2020 11:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765430#M717553</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-12-01T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765435#M717554</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;&lt;/P&gt;&lt;P&gt;Tried the same logic but unfortunately its not returning the expected output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijith28_0-1606823739494.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45052iEDCE8EA234498DE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijith28_0-1606823739494.png" alt="abhijith28_0-1606823739494.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attached the sample app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 11:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765435#M717554</guid>
      <dc:creator>abhijith28</dc:creator>
      <dc:date>2020-12-01T11:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765438#M717555</link>
      <description>&lt;P&gt;try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load ID,Date(Date#(Date,'DD/MM/YYYY'),'DD/MM/YYYY') as Date,Value inline [&lt;/P&gt;&lt;P&gt;ID,Date,Value&lt;BR /&gt;1, 1/1/2020, -&lt;BR /&gt;1, 2/1/2020, 10&lt;BR /&gt;1, 3/1/2020, -&lt;BR /&gt;1, 4/1/2020, 20&lt;BR /&gt;1, 5/1/2020, 30&lt;BR /&gt;1, 6/1/2020, -&lt;BR /&gt;2, 2/2/2020, 15&lt;BR /&gt;2, 3/2/2020, -&lt;BR /&gt;2, 4/2/2020, -&lt;BR /&gt;2, 5/2/2020, 40&lt;BR /&gt;2, 6/2/2020, 30&lt;BR /&gt;3, 1/1/2020, -&lt;BR /&gt;3, 2/1/2020, -&lt;BR /&gt;3, 3/1/2020, -&lt;BR /&gt;3, 4/1/2020, 20&lt;BR /&gt;3, 5/1/2020, 30&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Table:&lt;BR /&gt;Load ID,Date,If(ID=3,Value,if(IsNull(Value) or Value = '-', peek(Value),Value)) as Value;&lt;BR /&gt;Load *&lt;BR /&gt;Resident Table1&lt;BR /&gt;order by Date desc;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 11:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765438#M717555</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2020-12-01T11:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765441#M717556</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are more than 40k ID and it cannot be hardcoded ID=3&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 12:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765441#M717556</guid>
      <dc:creator>abhijith28</dc:creator>
      <dc:date>2020-12-01T12:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765445#M717557</link>
      <description>&lt;P&gt;but somewhere you have to maintain that for which id you want to apply which rule for some which you don't want to apply rule.&lt;/P&gt;&lt;P&gt;you use match() or if you have less no id for which you have to apply rule then do little modification in that if statement and resolve your query&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 12:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765445#M717557</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2020-12-01T12:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765449#M717558</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rule should be dynamic for ID, we cannot assign rules for some ID's.&lt;/P&gt;&lt;P&gt;Tried the below expression in the chart itself.&lt;/P&gt;&lt;P&gt;Can we use above and below function for comparison?&lt;/P&gt;&lt;P&gt;if( len(Value) = 0 and above(sum(Value))&amp;gt;0 and below(sum(Value))&amp;gt;0 , below(sum(Value)), sum(Value))&lt;/P&gt;&lt;P&gt;but its not returning the expected output.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 12:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765449#M717558</guid>
      <dc:creator>abhijith28</dc:creator>
      <dc:date>2020-12-01T12:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765459#M717559</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33204"&gt;@abhijith28&lt;/a&gt;&amp;nbsp; see the attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 13:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765459#M717559</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-12-01T13:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: If the value is null or 0, then Previous value based on condition in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765583#M717560</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;for your time and providing the solution&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 06:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-value-is-null-or-0-then-Previous-value-based-on-condition/m-p/1765583#M717560</guid>
      <dc:creator>abhijith28</dc:creator>
      <dc:date>2020-12-02T06:47:12Z</dc:date>
    </item>
  </channel>
</rss>

