<?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: Is it possible to convert this script into a QlikView Load Script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-convert-this-script-into-a-QlikView-Load/m-p/1706000#M724524</link>
    <description>&lt;P&gt;You can get this with an&amp;nbsp;IntervalMatch:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;t1:
LOAD
*
Where not IsNull(Índice);
LOAD A as Mês,
     B as Índice
FROM [IGP-DI.xlsm](ooxml, no labels, header is 3 lines, table is Plan1);

IGP_DI:
load
Mês,
Índice,
Mês as From,
if(IsNull(Previous(Mês)),Mês+60, Previous(Mês)-1) as To
Resident t1
Order By Mês desc;

drop table t1;

t1:
LOAD 
Min(From) as Start,
Max(To) as End
Resident IGP_DI;

let vStart= FieldValue('Start',1)-1;
let vEnd= FieldValue('End',1);

drop table t1;

t1:
LOAD
RecNo() + $(vStart) as Date
AutoGenerate $(vEnd)-$(vStart);

t2:
IntervalMatch(Date)
LOAD Distinct
From,
To
Resident IGP_DI;

drop field Mês;

Inner Join (IGP_DI)
LOAD Distinct
From,
To,
Date(Date) as Mês
Resident t2;

DROP Fields From,To;
DROP Tables t1,t2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 11:13:51 GMT</pubDate>
    <dc:creator>cwolf</dc:creator>
    <dc:date>2020-05-28T11:13:51Z</dc:date>
    <item>
      <title>Is it possible to convert this script into a QlikView Load Script?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-convert-this-script-into-a-QlikView-Load/m-p/1705855#M724523</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I'm here again with a brand new doubt. I'm currently downloading an excel file, and converting it to my needs using the following simple Excel VBA script. After that, I'm loading it into QlikView.&lt;/P&gt;&lt;P&gt;My question is:&lt;BR /&gt;Is it possible to convert the following script into a QlikView Script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find below my Excel VBA Script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sub Convert()

Dim linF As Integer
Dim linI As Integer
Dim linD As Integer

linI = 4    'The first row with data on my Excel File
linD = 4    'The first row where I want my new Data on Excel
linF = Range("A4").End(xlDown).Row - 5   'Find row many available rows with data I have on the very first column of my excel 

'Execute the following code for the number of available data that I have.
For i = 1 To linF

'Compare the date of the first row with the date of the next one
DataIni = Cells(linI, 1).Value
DataTo = Cells(linI + 1, 1).Value

'Do each loop comparing both dates
Do While DataIni &amp;lt; DataTo

    Cells(linD, 7).Value = DateAdd("d", 1, DataIni)
    Cells(linD, 8).Value = Cells(linI, 2).Value
    DataIni = Cells(linD, 7).Value
    linD = linD + 1

Loop

linI = linI + 1

Next i

'Add 60 days at the end.
For j = 1 To 60

    Cells(linD, 7).Value = DateAdd("d", 1, DataIni)
    Cells(linD, 8).Value = Cells(linD - 1, 8).Value
    DataIni = Cells(linD, 7).Value
    linD = linD + 1
    

Next j

End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, find attached my Excel VBA File for your reference.&lt;BR /&gt;&lt;BR /&gt;My QlikView application is using the data from Columns G and H!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Bruno Lelli&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-convert-this-script-into-a-QlikView-Load/m-p/1705855#M724523</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to convert this script into a QlikView Load Script?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-convert-this-script-into-a-QlikView-Load/m-p/1706000#M724524</link>
      <description>&lt;P&gt;You can get this with an&amp;nbsp;IntervalMatch:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;t1:
LOAD
*
Where not IsNull(Índice);
LOAD A as Mês,
     B as Índice
FROM [IGP-DI.xlsm](ooxml, no labels, header is 3 lines, table is Plan1);

IGP_DI:
load
Mês,
Índice,
Mês as From,
if(IsNull(Previous(Mês)),Mês+60, Previous(Mês)-1) as To
Resident t1
Order By Mês desc;

drop table t1;

t1:
LOAD 
Min(From) as Start,
Max(To) as End
Resident IGP_DI;

let vStart= FieldValue('Start',1)-1;
let vEnd= FieldValue('End',1);

drop table t1;

t1:
LOAD
RecNo() + $(vStart) as Date
AutoGenerate $(vEnd)-$(vStart);

t2:
IntervalMatch(Date)
LOAD Distinct
From,
To
Resident IGP_DI;

drop field Mês;

Inner Join (IGP_DI)
LOAD Distinct
From,
To,
Date(Date) as Mês
Resident t2;

DROP Fields From,To;
DROP Tables t1,t2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 11:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-convert-this-script-into-a-QlikView-Load/m-p/1706000#M724524</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2020-05-28T11:13:51Z</dc:date>
    </item>
  </channel>
</rss>

