<?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 Assigning new value every 35 rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assigning-new-value-every-35-rows/m-p/1802806#M1232247</link>
    <description>&lt;P&gt;Hi Qlik friends:&lt;/P&gt;&lt;P&gt;Is there a syntax I can use to assign a value for every 35 rows of data? For simplicity, I'm attaching an excel with a value being assigned for every 4 rows of data in Field2. I want to write a script which would transform Field1 to Field 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, I've been doing this kind of manually, with the below:&lt;/P&gt;&lt;P&gt;If (([Field1]&amp;gt;0 AND [Field1] &amp;lt;=35) OR (len([Field1])&amp;lt;1), '1',&lt;BR /&gt;If (([Field1]&amp;gt;=36) and ([Field1] &amp;lt;=70), ' 2',&lt;BR /&gt;If (([Field1]&amp;gt;=71) and ([Field1] &amp;lt;=105), 3',&lt;BR /&gt;If (([Field1]&amp;gt;=106) and ([Field1] &amp;lt;=140), '4',&lt;/P&gt;&lt;P&gt;If (([Field1]&amp;gt;=141) and ([Field1] &amp;lt;=175), '5', 'Excess' as Field2&lt;/P&gt;&lt;P&gt;My problem is that values Field2 can go well above 50 in some cases and I find it daunting to write an "if" statement 100 or so times. Furthermore, there isn't really a cap to how high Field2 can go. We run quarterly/annual reports and never know how high field2 can go. Is there a script that will automatically assign value to Field2, every 35 row?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
    <dc:creator>shatings</dc:creator>
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>Assigning new value every 35 rows</title>
      <link>https://community.qlik.com/t5/QlikView/Assigning-new-value-every-35-rows/m-p/1802806#M1232247</link>
      <description>&lt;P&gt;Hi Qlik friends:&lt;/P&gt;&lt;P&gt;Is there a syntax I can use to assign a value for every 35 rows of data? For simplicity, I'm attaching an excel with a value being assigned for every 4 rows of data in Field2. I want to write a script which would transform Field1 to Field 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, I've been doing this kind of manually, with the below:&lt;/P&gt;&lt;P&gt;If (([Field1]&amp;gt;0 AND [Field1] &amp;lt;=35) OR (len([Field1])&amp;lt;1), '1',&lt;BR /&gt;If (([Field1]&amp;gt;=36) and ([Field1] &amp;lt;=70), ' 2',&lt;BR /&gt;If (([Field1]&amp;gt;=71) and ([Field1] &amp;lt;=105), 3',&lt;BR /&gt;If (([Field1]&amp;gt;=106) and ([Field1] &amp;lt;=140), '4',&lt;/P&gt;&lt;P&gt;If (([Field1]&amp;gt;=141) and ([Field1] &amp;lt;=175), '5', 'Excess' as Field2&lt;/P&gt;&lt;P&gt;My problem is that values Field2 can go well above 50 in some cases and I find it daunting to write an "if" statement 100 or so times. Furthermore, there isn't really a cap to how high Field2 can go. We run quarterly/annual reports and never know how high field2 can go. Is there a script that will automatically assign value to Field2, every 35 row?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assigning-new-value-every-35-rows/m-p/1802806#M1232247</guid>
      <dc:creator>shatings</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning new value every 35 rows</title>
      <link>https://community.qlik.com/t5/QlikView/Assigning-new-value-every-35-rows/m-p/1802821#M1232250</link>
      <description>&lt;P&gt;If(Len(Field1) &amp;lt;&amp;nbsp; 1,1,Ceil[Field1/35)) as Field2&lt;/P&gt;&lt;P&gt;If you want a max Field2, just add a test for Ceil[Field/35).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 18:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assigning-new-value-every-35-rows/m-p/1802821#M1232250</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2021-04-26T18:26:07Z</dc:date>
    </item>
  </channel>
</rss>

