<?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: How To Get Row No Of A Specific Value -- FieldIndex Is Not Working In My Scenario in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/1771302#M454620</link>
    <description>&lt;P&gt;The logical problem is that FieldIndex is finding the POSITION of the value within the ColumnValues that are unique. The table doesn't really exist. There are just pointers in the table to the value in the columnar table of unique values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the problem case the first 2 rows contain the same value Cust1, while Cust2 is on the 3'rd loaded row, the reality is in the columnar table it is indeed position 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure in the original questioners question it wasn't really about the value Cust-2. Guessing, like in my case, there are other values in the table and what they were doing was trying to find the ROW for a given set of values, likely like in my case, from an entirely different table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like the original author I was lucky in that my first 2 values were Row 1 and FieldIndex 1. And Row 2 and FieldIndex 2. But in my case, the second value was then repeated on 20 rows and the third value I tried to Peek for yielded a FieldIndex value of 3 but I need to know it's row 23.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question is years old but since it's fresh on my mind, after struggling for hours to understand why first test cases worked but next one failed, and this question comes up first when searching I wanted to help people understand the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 23:57:16 GMT</pubDate>
    <dc:creator>Dalton_Ruer</dc:creator>
    <dc:date>2020-12-30T23:57:16Z</dc:date>
    <item>
      <title>How To Get Row No Of A Specific Value -- FieldIndex Is Not Working In My Scenario</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412765#M153643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be some one can help me in this scenario, I just want to get row no of a specific value. For Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myInLineTable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustomerNo, DocumentNo, Amount&lt;/P&gt;&lt;P&gt;cust-1, doc-1, 100&lt;/P&gt;&lt;P&gt;cust-1, doc-2, 100&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;cust-2&lt;/SPAN&gt;, doc-3, 50&lt;/P&gt;&lt;P&gt;cust-1, doc-4, 90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the row no where CustomerNo in red on script, my required result is 3. I tried fieldindex on script but it is giving me 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IndianQvLover&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 18:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412765#M153643</guid>
      <dc:creator />
      <dc:date>2012-10-14T18:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: How To Get Row No Of A Specific Value -- FieldIndex Is Not Working In My Scenario</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412766#M153644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a field in the script that displays this information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, recno() as RecNo inline ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 18:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412766#M153644</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-14T18:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How To Get Row No Of A Specific Value -- FieldIndex Is Not Working In My Scenario</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412767#M153645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply but I am doing all this activity on script, I add recno() in table now please suggest how I will find&lt;/P&gt;&lt;P&gt;cust-2 in CustomerNo field and get its row or record no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;RecNo, CustomerNo, DocumentNo, Amount&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;1, cust-1, doc-1, 100&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;2, cust-1, doc-2, 100&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #ff0000;"&gt;3, cust-2&lt;/SPAN&gt;, doc-3, 50&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;4, cust-1, doc-4, 90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IndianQvLover&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 04:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412767#M153645</guid>
      <dc:creator />
      <dc:date>2012-10-15T04:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: How To Get Row No Of A Specific Value -- FieldIndex Is Not Working In My Scenario</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412768#M153646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest way is to use standard QlikView logic. Use a list box with CustomerNo and click on (or search for) 'cust-2'. Then you will immediately get the answer in the 'RecNo' column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to hard-code it (which I don't think is good practice) then you could use the following expression:&lt;/P&gt;&lt;P&gt;=only({1&amp;lt;CustomerNo={'cust-2'}&amp;gt;} RecNo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 07:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412768#M153646</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-15T07:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: How To Get Row No Of A Specific Value -- FieldIndex Is Not Working In My Scenario</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412769#M153647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I don't want to hard-code it, it is not only for 'cust-2' only there is a lot of records, basically after find out that particular record I want to start a &lt;STRONG&gt;&lt;EM&gt;for .. next&lt;/EM&gt;&lt;/STRONG&gt; loop from that &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;specific &lt;/SPAN&gt;row no form some kind of data transformation on script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope now I explain it properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IndianQvLover&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 08:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412769#M153647</guid>
      <dc:creator />
      <dc:date>2012-10-15T08:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How To Get Row No Of A Specific Value -- FieldIndex Is Not Working In My Scenario</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412770#M153648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to find the first record that has 'cust-2' and then do some transformation on the following records - all in the script - then you could do something similar to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinRecNo:&lt;/P&gt;&lt;P&gt;Load Min(recno()) as MinRecNo from Data where CustomerNo='cust-2';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vRecNo = peek('MinRecNo', -1, 'MinRecNo');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load &amp;lt;transformation&amp;gt; from Data where RecNo() &amp;gt; $(vRecNo) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... but I am not sure I understand what you are tryong to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 08:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/412770#M153648</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-15T08:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How To Get Row No Of A Specific Value -- FieldIndex Is Not Working In My Scenario</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/1771302#M454620</link>
      <description>&lt;P&gt;The logical problem is that FieldIndex is finding the POSITION of the value within the ColumnValues that are unique. The table doesn't really exist. There are just pointers in the table to the value in the columnar table of unique values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the problem case the first 2 rows contain the same value Cust1, while Cust2 is on the 3'rd loaded row, the reality is in the columnar table it is indeed position 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure in the original questioners question it wasn't really about the value Cust-2. Guessing, like in my case, there are other values in the table and what they were doing was trying to find the ROW for a given set of values, likely like in my case, from an entirely different table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like the original author I was lucky in that my first 2 values were Row 1 and FieldIndex 1. And Row 2 and FieldIndex 2. But in my case, the second value was then repeated on 20 rows and the third value I tried to Peek for yielded a FieldIndex value of 3 but I need to know it's row 23.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question is years old but since it's fresh on my mind, after struggling for hours to understand why first test cases worked but next one failed, and this question comes up first when searching I wanted to help people understand the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 23:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Get-Row-No-Of-A-Specific-Value-FieldIndex-Is-Not-Working/m-p/1771302#M454620</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2020-12-30T23:57:16Z</dc:date>
    </item>
  </channel>
</rss>

