<?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: Modeling or set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1733122#M721151</link>
    <description>&lt;P&gt;Try below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
load Date,
     Rate
FROM Source;

join(Data)
load date(MinDate+iterno()-1) as Date
while MinDate+iterno()-1&amp;lt;=MaxDate;
load min(Date) as MinDate,
     max(Date) as MaxDate
load date(fieldvalue('Date',recno())) as Date
autogenerate fieldvaluecount('Date');

Final:
noconcatenate
load Date,
     if(isnull(Rate),peek(Rate),Rate) as  Rate
resident Data
order by Date;

drop table Data;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 04 Aug 2020 13:45:41 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-08-04T13:45:41Z</dc:date>
    <item>
      <title>Modeling or set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1733115#M721148</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have a table with Date and Rate&lt;/P&gt;&lt;P&gt;In that Table only working date data is available&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd Aug is Sunday Holiday so their is no data is available in Table in that case i need to show&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd Aug Rate is First Aug Rate&lt;/P&gt;&lt;P&gt;for example 1st Aug 1700 , 2nd aug no price&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd auguest = 1700&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help me out either modeling or Set analysis&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1733115#M721148</guid>
      <dc:creator>Surya</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling or set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1733119#M721149</link>
      <description>&lt;P&gt;first, load a table with all dates you want to&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;'01/01/2020'+rowno()-1 as date&lt;/P&gt;&lt;P&gt;autogenerate (today()-'01/01/2020'+1);&lt;/P&gt;&lt;P&gt;then join your prices&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;date,&lt;/P&gt;&lt;P&gt;price&lt;/P&gt;&lt;P&gt;from Yoursource;&lt;/P&gt;&lt;P&gt;Then clean your datas:&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;noconcatenate load&lt;/P&gt;&lt;P&gt;if(isnull(price),peek('price',-1),price) as price,&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;resident Temp;&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 13:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1733119#M721149</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2020-08-04T13:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling or set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1733120#M721150</link>
      <description>&lt;P&gt;you can use&lt;/P&gt;&lt;P&gt;1- load script - previous function.&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Previous.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Previous.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2- in chart/table - above or below function&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Missing-Manual-Above-and-Below/ta-p/1481948" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Missing-Manual-Above-and-Below/ta-p/1481948&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the script maybe the best solution. but need more details to be certain&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 13:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1733120#M721150</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-08-04T13:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling or set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1733122#M721151</link>
      <description>&lt;P&gt;Try below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
load Date,
     Rate
FROM Source;

join(Data)
load date(MinDate+iterno()-1) as Date
while MinDate+iterno()-1&amp;lt;=MaxDate;
load min(Date) as MinDate,
     max(Date) as MaxDate
load date(fieldvalue('Date',recno())) as Date
autogenerate fieldvaluecount('Date');

Final:
noconcatenate
load Date,
     if(isnull(Rate),peek(Rate),Rate) as  Rate
resident Data
order by Date;

drop table Data;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Aug 2020 13:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1733122#M721151</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-04T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling or set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1735465#M721152</link>
      <description>&lt;P&gt;rate:&lt;/P&gt;&lt;P&gt;LOAD Date(DATE) as Date2,&lt;BR /&gt;[rate]&lt;BR /&gt;FROM path;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;BR /&gt;Load Min(Date2) as MinDate, Today()-1 as MaxDate resident rate;&lt;BR /&gt;Let vMinDate = Peek('MinDate',-1,'MinMaxDate') - 1;&lt;BR /&gt;Let vMaxDate = Peek('MaxDate',-1,'MinMaxDate');&lt;BR /&gt;&lt;BR /&gt;Join (rate)&lt;BR /&gt;Load Date(recno()+$(vMinDate)) as Date2 Autogenerate vMaxDate - vMinDate;&lt;/P&gt;&lt;P&gt;Rate_main:&lt;BR /&gt;NoConcatenate Load Date2,&lt;BR /&gt;//Date(Date#(Date2,'DD/MM/YYYY'),'M/D/YYYY'),&lt;BR /&gt;If( IsNull([Rate]), Peek([Rate]), [Rate]) as [Rate]&lt;BR /&gt;Resident Rate&lt;BR /&gt;Order By Date2 ; /* so that above values can be propagated downwards */&lt;/P&gt;&lt;P&gt;Drop Table MinMaxDate, Rate;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 06:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1735465#M721152</guid>
      <dc:creator>Surya</dc:creator>
      <dc:date>2020-08-13T06:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling or set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1735522#M721153</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/31133"&gt;@Surya&lt;/a&gt;&amp;nbsp; was my response was any different than yours?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 09:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1735522#M721153</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-13T09:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling or set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1737044#M721154</link>
      <description>&lt;P&gt;Bhai. Initially developed Logic the same manner but I'm not getting exactly what I want. Later I'm using your logic.thats also not working in my scenario.&lt;/P&gt;&lt;P&gt;Thanks For your response.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 11:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1737044#M721154</guid>
      <dc:creator>Surya</dc:creator>
      <dc:date>2020-08-19T11:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling or set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1737045#M721155</link>
      <description>&lt;P&gt;But logic which you marked as correct and my response are identical, that's why I asked. Only the way you are generating is&amp;nbsp; Dates on resident load is different. Anyway, let's not debate and be happy as you got the answer that's what matters.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 11:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-or-set-analysis/m-p/1737045#M721155</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-19T11:46:56Z</dc:date>
    </item>
  </channel>
</rss>

