<?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 Rangesum(Peek), how to handle null values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rangesum-Peek-how-to-handle-null-values/m-p/2516107#M105751</link>
    <description>&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--     Symbol definitions     --&gt;&lt;/DIV&gt;&lt;!--     end #ae_app     --&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;!--   
        Layout, Style or Voice Helpers
       --&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;So in the load script I have this snippet to make a cumulative measure by week&lt;/P&gt;&lt;P&gt;RangeSum(Peek('Measure'), [Savings]) as Measure&lt;/P&gt;&lt;P&gt;However, for some weeks I have no savings. I would like to make it so that if the realized savings is null, then it takes the previous not null value.&lt;/P&gt;&lt;P&gt;How do I make this work?&lt;/P&gt;&lt;/DIV&gt;&lt;!--   
        Compliance
       --&gt;&lt;DIV class=""&gt;&lt;!--    For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby    --&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--    Symbol definitions    --&gt;&lt;/DIV&gt;&lt;!--    end #ae_app    --&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;!--  
        Layout, Style or Voice Helpers
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--  
        Compliance
      --&gt;&lt;DIV class=""&gt;&lt;!--   For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby   --&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!--  
        Versioning Control Panel if versioning = true !
      --&gt;&lt;!--  
        Launcher
      --&gt;&lt;!--   Toolbar   --&gt;&lt;!--  
        Site Menu
      --&gt;&lt;!--  
        Generic Aria Live message container
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
    <pubDate>Tue, 29 Apr 2025 11:26:34 GMT</pubDate>
    <dc:creator>phiilip</dc:creator>
    <dc:date>2025-04-29T11:26:34Z</dc:date>
    <item>
      <title>Rangesum(Peek), how to handle null values</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-Peek-how-to-handle-null-values/m-p/2516107#M105751</link>
      <description>&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--     Symbol definitions     --&gt;&lt;/DIV&gt;&lt;!--     end #ae_app     --&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;!--   
        Layout, Style or Voice Helpers
       --&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;So in the load script I have this snippet to make a cumulative measure by week&lt;/P&gt;&lt;P&gt;RangeSum(Peek('Measure'), [Savings]) as Measure&lt;/P&gt;&lt;P&gt;However, for some weeks I have no savings. I would like to make it so that if the realized savings is null, then it takes the previous not null value.&lt;/P&gt;&lt;P&gt;How do I make this work?&lt;/P&gt;&lt;/DIV&gt;&lt;!--   
        Compliance
       --&gt;&lt;DIV class=""&gt;&lt;!--    For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby    --&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--    Symbol definitions    --&gt;&lt;/DIV&gt;&lt;!--    end #ae_app    --&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;!--  
        Layout, Style or Voice Helpers
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--  
        Compliance
      --&gt;&lt;DIV class=""&gt;&lt;!--   For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby   --&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!--  
        Versioning Control Panel if versioning = true !
      --&gt;&lt;!--  
        Launcher
      --&gt;&lt;!--   Toolbar   --&gt;&lt;!--  
        Site Menu
      --&gt;&lt;!--  
        Generic Aria Live message container
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
      <pubDate>Tue, 29 Apr 2025 11:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-Peek-how-to-handle-null-values/m-p/2516107#M105751</guid>
      <dc:creator>phiilip</dc:creator>
      <dc:date>2025-04-29T11:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum(Peek), how to handle null values</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-Peek-how-to-handle-null-values/m-p/2516113#M105752</link>
      <description>&lt;P&gt;The expression does exactly doing an accumulation as you are describing. Therefore I assume that your issue isn't a matter of any expression-logic else related to missing records. If so you will need to add the missing records in beforehand.&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
      <pubDate>Tue, 29 Apr 2025 12:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-Peek-how-to-handle-null-values/m-p/2516113#M105752</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-04-29T12:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum(Peek), how to handle null values</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-Peek-how-to-handle-null-values/m-p/2516115#M105753</link>
      <description>&lt;P&gt;That is true, the records themselves are missing (no week, no savings). So the only way is to somehow add missing records?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;!--  
        Layout, Style or Voice Helpers
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--  
        Versioning Control Panel if versioning = true !
      --&gt;&lt;!--  
        Launcher
      --&gt;&lt;!--   Toolbar   --&gt;&lt;!--  
        Site Menu
      --&gt;&lt;!--  
        Generic Aria Live message container
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
      <pubDate>Tue, 29 Apr 2025 12:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-Peek-how-to-handle-null-values/m-p/2516115#M105753</guid>
      <dc:creator>phiilip</dc:creator>
      <dc:date>2025-04-29T12:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum(Peek), how to handle null values</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-Peek-how-to-handle-null-values/m-p/2516118#M105755</link>
      <description>&lt;P&gt;Yes - you need always a dimension-value to show any measure-result against it. It's a general rule and not specific for Qlik.&lt;/P&gt;&lt;P&gt;In nearly all scenarios it's most suitable to populate the missing data within the data-model and not the UI, for example with something like this:&lt;/P&gt;&lt;P&gt;facts: load * from facts;&lt;BR /&gt;concatenate(facts) load distinct Week, 0 as Value&lt;BR /&gt;from Calendar where not exists(WeekFacts, Week);&lt;/P&gt;&lt;P&gt;and afterwards the accumulation is applied within a resident-load.&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
      <pubDate>Tue, 29 Apr 2025 12:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-Peek-how-to-handle-null-values/m-p/2516118#M105755</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-04-29T12:38:34Z</dc:date>
    </item>
  </channel>
</rss>

