<?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: Create a number for each null period in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1734948#M722413</link>
    <description>&lt;P&gt;Found how you can get a count of things, but I think that may give you some ideas on how to go about things, as once they are grouped, you may be able to search on those rows missing and use RowNo() or RecNo() to maybe number them...&amp;nbsp; My post will kick things back out, so someone else may provide some better ideas too.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/CounterAggregationFunctions/MissingCount.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/CounterAggregationFunctions/MissingCount.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The following Design Blog post may be of some help too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534&lt;/A&gt;&lt;/P&gt;&lt;P&gt;One other one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/How-to-populate-a-sparsely-populated-field/ba-p/1470637" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/How-to-populate-a-sparsely-populated-field/ba-p/1470637&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 17:43:31 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-08-11T17:43:31Z</dc:date>
    <item>
      <title>Create a number for each null period</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1731067#M722412</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I&lt;FONT&gt;'am struggling with the following case. I have DT field, DT_EVENT field. What i'am trying to achieve is to create a number in my load statement for each period with no DT_EVENT.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Input:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="P1.png" style="width: 203px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38122i9D855687D69C5C8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="P1.png" alt="P1.png" /&gt;&lt;/span&gt;&lt;/FONT&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="P2.png" style="width: 274px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38123i9EA02C6B6D6CBA17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="P2.png" alt="P2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Afterthat, i will be able to count the longest period with no Event (5 in the exemple above).&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1731067#M722412</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a number for each null period</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1734948#M722413</link>
      <description>&lt;P&gt;Found how you can get a count of things, but I think that may give you some ideas on how to go about things, as once they are grouped, you may be able to search on those rows missing and use RowNo() or RecNo() to maybe number them...&amp;nbsp; My post will kick things back out, so someone else may provide some better ideas too.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/CounterAggregationFunctions/MissingCount.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/CounterAggregationFunctions/MissingCount.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The following Design Blog post may be of some help too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534&lt;/A&gt;&lt;/P&gt;&lt;P&gt;One other one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/How-to-populate-a-sparsely-populated-field/ba-p/1470637" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/How-to-populate-a-sparsely-populated-field/ba-p/1470637&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 17:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1734948#M722413</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-08-11T17:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create a number for each null period</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1735070#M722414</link>
      <description>&lt;P&gt;One solution is.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD *, If(IsNull(DT_EVENT) Or DT_EVENT='',Key) As Number;
LOAD *, If(Peek(DT_EVENT)&amp;lt;&amp;gt;'' And DT_EVENT='', RangeSum(Peek(Key),1), Peek(Key)) As Key;
LOAD * INLINE [
    DT, DT_EVENT
    1/1/2020, 
    1/2/2020, 1/2/2020
    1/3/2020, 
    1/4/2020, 1/4/2020
    1/5/2020, 1/5/2020
    1/6/2020, 
    1/7/2020, 1/7/2020
    1/8/2020, 
    1/9/2020, 
    1/10/2020, 
    1/11/2020, 
    1/12/2020, 
    1/13/2020, 1/13/2020
    1/14/2020, 1/14/2020
];

Drop Field Key;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Aug 2020 03:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1735070#M722414</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-08-12T03:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create a number for each null period</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1735072#M722415</link>
      <description>&lt;P&gt;Output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV64.PNG" style="width: 165px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38869iC531FB7BBB890A74/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV64.PNG" alt="commQV64.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 03:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1735072#M722415</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-08-12T03:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create a number for each null period</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1735198#M722416</link>
      <description>&lt;P&gt;Resident the Main table again , and then put a if Condition,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load DT , DT_EVENT , if(DT_EVENT&amp;lt;&amp;gt;'',rowno() ) as NewNumberColumn&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resident Your Previous loaded table;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 11:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-number-for-each-null-period/m-p/1735198#M722416</guid>
      <dc:creator>aamirSiddiquee1</dc:creator>
      <dc:date>2020-08-12T11:17:09Z</dc:date>
    </item>
  </channel>
</rss>

