<?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 Revising Excel format for loading into QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677170#M1086809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Referencing the attached spreadsheet which shows the actual spreadsheet received versus the desired format for loading into QlikView - just wanted to ask if it is possible to reformat.&amp;nbsp; One issue is the building location and the service type are in the same column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
    <dc:creator>triciagdaly</dc:creator>
    <dc:date>2020-11-20T18:02:30Z</dc:date>
    <item>
      <title>Revising Excel format for loading into QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677170#M1086809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Referencing the attached spreadsheet which shows the actual spreadsheet received versus the desired format for loading into QlikView - just wanted to ask if it is possible to reformat.&amp;nbsp; One issue is the building location and the service type are in the same column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677170#M1086809</guid>
      <dc:creator>triciagdaly</dc:creator>
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Revising Excel format for loading into QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677171#M1086810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14026713610042705 jive_macro_code" jivemacro_uid="_14026713610042705"&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(not alt(previous([Days]),0), previous(Serv.Type),peek(Building)) as Building,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Serv.Type, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Prev. Read Date], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Present Read Date], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Days, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Prev. Rdg], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Pres. Rdg], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Usage, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UOM, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Usage Chgs]&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[comm121954.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1)&lt;/P&gt;
&lt;P&gt;where [Days];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 14:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677171#M1086810</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-13T14:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Revising Excel format for loading into QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677172#M1086811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * where Match(Location, 'East Bldg', 'South Bldg','Grounds');&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp; if([Days] &amp;gt; 0, if(Isnull(previous(Days)), previous(Serv.Type), Peek('Location'))) as Location,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Serv.Type, &lt;/P&gt;&lt;P&gt;[Prev. Read Date],&lt;/P&gt;&lt;P&gt;[Present Read Date],&lt;/P&gt;&lt;P&gt;Days,&lt;/P&gt;&lt;P&gt;[Prev. Rdg],&lt;/P&gt;&lt;P&gt;[Pres. Rdg],&lt;/P&gt;&lt;P&gt;Usage,&lt;/P&gt;&lt;P&gt;UOM,&lt;/P&gt;&lt;P&gt;[Usage Chgs]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Excel_import.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1)&lt;/P&gt;&lt;P&gt;Where Days &amp;gt; 0;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 15:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677172#M1086811</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-06-13T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Revising Excel format for loading into QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677173#M1086812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain how the below is interpreted using alt, previous and peek functions ?&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (not alt(previous([Days]),0), previous(Serv.Type),peek(Building) as Building&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 17:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677173#M1086812</guid>
      <dc:creator>triciagdaly</dc:creator>
      <dc:date>2014-06-13T17:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Revising Excel format for loading into QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677174#M1086813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first row ther is no previous value, so previous(Days) would return null. The alt is used to change that to 0. That way it possible to to evaluate previous(Days) as a boolean: 0 is false, other number is true. If true then use the Serv.Type value of the previous record (from the source table) as value for Building, if false then use the last value of Building (from the target table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alt( MyField, MyValue): if value of MyField is null, use MyValue, otherwise use value of MyField&lt;/P&gt;&lt;P&gt;Previous(MyField): get the value of MyField from the previous record of the source table&lt;/P&gt;&lt;P&gt;Peek(MyField): get the value of MyField from the previous record of the target table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 17:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Revising-Excel-format-for-loading-into-QlikView/m-p/677174#M1086813</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-13T17:28:35Z</dc:date>
    </item>
  </channel>
</rss>

