<?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: reading excel and ROWNO() / RECNO() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494948#M185121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you can use the weekday function on the result of the makeweekdate to get the day of the week. That's a dual value so it can be sorted numerically (or you can use the num function on it to get the weekday number).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jun 2013 06:26:13 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-06-21T06:26:13Z</dc:date>
    <item>
      <title>reading excel and ROWNO() / RECNO()</title>
      <link>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494947#M185120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have an excel file with for every week a sheet. I read all these sheets with a loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only take 5 rows of each sheet. I take these 5 rows based on a certain WHERE clause. I only take the rows where a certain column is not empty.&lt;/P&gt;&lt;P&gt;The result will be a table with 5 rows for each week and a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the filename i have the year. Based on the sheet name i have the week. Now i'm looking for the day to create a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using MAKEWEEKDATE to create the date. the day is only causing an issue. the 5 rows that i read are always in the right order (mon,tue,wed etc).&lt;/P&gt;&lt;P&gt;But how do i create a number of that (0,1,2,..) . ROWNO and RECNO don't work. Also tried to create something with AUTONUMBER, but wasn't solving it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got a solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 23:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494947#M185120</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2013-06-20T23:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: reading excel and ROWNO() / RECNO()</title>
      <link>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494948#M185121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you can use the weekday function on the result of the makeweekdate to get the day of the week. That's a dual value so it can be sorted numerically (or you can use the num function on it to get the weekday number).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 06:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494948#M185121</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-21T06:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: reading excel and ROWNO() / RECNO()</title>
      <link>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494949#M185122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert, the problem is that i'm looking for the makeday. I don't have a valid date for makeday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAKEWEEKDATE('2013','22','1')&lt;/P&gt;&lt;P&gt;MAKEWEEKDATE('2013','22','2')&lt;/P&gt;&lt;P&gt;MAKEWEEKDATE('2013','22','3')&lt;/P&gt;&lt;P&gt;MAKEWEEKDATE('2013','22','4')&lt;/P&gt;&lt;P&gt;MAKEWEEKDATE('2013','22','5')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013 is based on the filename, 22 on sheetname, 1...5 on ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i basicly need is a row counter while looping though each sheet. A new sheet should reset the counter. I only read 5 rows on each sheet (reduced on WHERE clause). I was hoping ROWNO or RECNO would solve this, but this is not the case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perhaps i misunderstood you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 09:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494949#M185122</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2013-06-21T09:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: reading excel and ROWNO() / RECNO()</title>
      <link>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494950#M185123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More likely I'm misunderstanding you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. I can't see the files or data you have to work with. Maybe &lt;EM&gt;mod(recno(),5)&lt;/EM&gt; gives you the numbers you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 10:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494950#M185123</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-21T10:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: reading excel and ROWNO() / RECNO()</title>
      <link>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494951#M185124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a preceding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; makeweekdate(Year, Week, recno() ) as Date;&lt;/P&gt;&lt;P&gt;LOAD Year, Week, Value FROM ... where ...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 10:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494951#M185124</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-21T10:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: reading excel and ROWNO() / RECNO()</title>
      <link>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494952#M185125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think the best solution is indeed a precedent load .. all the records are in the correct order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the mod solution works almost but not in all cases (i have several excel files each with 52 weeks).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the RECNO() with WHERE won't work? because i think the second monday will have a 6 instead of a 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i do a counter in the preceding loading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;somethink like : IF(PREVIOUS(DayValue) = 5,0,PREVIOUS(DayValue)+1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only problem is that DayValue doesn't exist yet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 10:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494952#M185125</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2013-06-21T10:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: reading excel and ROWNO() / RECNO()</title>
      <link>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494953#M185126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i fixed it with a precent load, previous and peek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks both&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 16:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/reading-excel-and-ROWNO-RECNO/m-p/494953#M185126</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2013-06-21T16:01:22Z</dc:date>
    </item>
  </channel>
</rss>

