<?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 index of a column from a table in expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-index-of-a-column-from-a-table-in-expression/m-p/128620#M457932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So based on your above data what is that you are trying to achieve. To your initial question you asked i believe you need ApplyMap to map the values to your table. Like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for each fieldvalue of Fieldname1 you will get the corresponding value of FieldName2 in your FinalTab table.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map:&lt;/P&gt;&lt;P&gt;Mapping LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Fieldname1, FieldName2&lt;/P&gt;&lt;P&gt;-3.89, 5.01E-05&lt;/P&gt;&lt;P&gt;-3.88, 5.22E-05&lt;/P&gt;&lt;P&gt;-3.87, 5.44E-05&lt;/P&gt;&lt;P&gt;-3.86, 5.67E-05&lt;/P&gt;&lt;P&gt;-3.85, 5.91E-05&lt;/P&gt;&lt;P&gt;-3.84, 6.15E-05&lt;/P&gt;&lt;P&gt;-3.83, 6.41E-05&lt;/P&gt;&lt;P&gt;-3.82, 6.67E-05&lt;/P&gt;&lt;P&gt;-3.81, 6.95E-05&lt;/P&gt;&lt;P&gt;-3.8,&amp;nbsp;&amp;nbsp; 7.23E-05&lt;/P&gt;&lt;P&gt;-3.79, 7.53E-05&lt;/P&gt;&lt;P&gt;-3.78, 7.84E-05&lt;/P&gt;&lt;P&gt;-3.77, 8.16E-05&lt;/P&gt;&lt;P&gt;-3.76, 8.5E-05&lt;/P&gt;&lt;P&gt;-3.75, 8.84E-05&lt;/P&gt;&lt;P&gt;-3.74, 9.2E-05&lt;/P&gt;&lt;P&gt;-3.73, 9.57E-05&lt;/P&gt;&lt;P&gt;-3.72, 9.96E-05&lt;/P&gt;&lt;P&gt;-3.71, 0.000104&lt;/P&gt;&lt;P&gt;-3.7, 0.000108&lt;/P&gt;&lt;P&gt;-3.69, 0.000112&lt;/P&gt;&lt;P&gt;-3.68, 0.000117&lt;/P&gt;&lt;P&gt;-3.67, 0.000121&lt;/P&gt;&lt;P&gt;-3.66, 0.000126&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FinalTab:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Map', FieldName1) AS MapFieldName&lt;/P&gt;&lt;P&gt;From YourTablename; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2018 20:05:38 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2018-07-11T20:05:38Z</dc:date>
    <item>
      <title>How to get index of a column from a table in expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-index-of-a-column-from-a-table-in-expression/m-p/128617#M457929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use a table which has the z values and it's matching percentile based on the z values I've generated. I was able to use the fieldindex value to create a column which each rows respective index but I just can't get how to reference the column next to the index's value to put in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to use the column() function to pass back where the index is equal so I can get its value but I keep getting - or error. Here is my function: ([-3.89] is the index row which goes from -.389, -3.88, -3.87... 3.97, 3.98, 3.99,&amp;nbsp; [5.0122111001305e-05] is the column with the values i'm trying to get, and column(7) is the column containing the indexes of where the value I need to get is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;[-3.89]={"=column(7)"}&amp;gt;} [5.0122111001305e-05])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't work, how can I easily return an element from a loaded data table using its index? I've already tried fieldvalue as well which didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 20:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-index-of-a-column-from-a-table-in-expression/m-p/128617#M457929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-10T20:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get index of a column from a table in expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-index-of-a-column-from-a-table-in-expression/m-p/128618#M457930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some sample data to look into? And your expected output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 23:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-index-of-a-column-from-a-table-in-expression/m-p/128618#M457930</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-07-10T23:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get index of a column from a table in expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-index-of-a-column-from-a-table-in-expression/m-p/128619#M457931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 134px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18" width="67"&gt;-3.89&lt;/TD&gt;&lt;TD align="right" class="xl65" width="67"&gt;5.01E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.88&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;5.22E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.87&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;5.44E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.86&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;5.67E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.85&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;5.91E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.84&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;6.15E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.83&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;6.41E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.82&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;6.67E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.81&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;6.95E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.8&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;7.23E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.79&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;7.53E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.78&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;7.84E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.77&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;8.16E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.76&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;8.5E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.75&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;8.84E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.74&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9.2E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.73&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9.57E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.72&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9.96E-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.71&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;0.000104&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.7&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;0.000108&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.69&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;0.000112&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.68&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;0.000117&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.67&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;0.000121&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="18"&gt;-3.66&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;0.000126&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the other column of positions in the table: &lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;555&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would return index 225, 332, 444... from the 5.01E-05 column to fill the column with its correlating value i.e.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: -webkit-right;"&gt;5.01E-05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: -webkit-right;"&gt;5.22E-05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: -webkit-right;"&gt;5.44E-05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: -webkit-right;"&gt;5.91E-05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;value to the right of the 555th row of the -3.89 column in the data table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 12:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-index-of-a-column-from-a-table-in-expression/m-p/128619#M457931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-11T12:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get index of a column from a table in expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-index-of-a-column-from-a-table-in-expression/m-p/128620#M457932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So based on your above data what is that you are trying to achieve. To your initial question you asked i believe you need ApplyMap to map the values to your table. Like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for each fieldvalue of Fieldname1 you will get the corresponding value of FieldName2 in your FinalTab table.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map:&lt;/P&gt;&lt;P&gt;Mapping LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Fieldname1, FieldName2&lt;/P&gt;&lt;P&gt;-3.89, 5.01E-05&lt;/P&gt;&lt;P&gt;-3.88, 5.22E-05&lt;/P&gt;&lt;P&gt;-3.87, 5.44E-05&lt;/P&gt;&lt;P&gt;-3.86, 5.67E-05&lt;/P&gt;&lt;P&gt;-3.85, 5.91E-05&lt;/P&gt;&lt;P&gt;-3.84, 6.15E-05&lt;/P&gt;&lt;P&gt;-3.83, 6.41E-05&lt;/P&gt;&lt;P&gt;-3.82, 6.67E-05&lt;/P&gt;&lt;P&gt;-3.81, 6.95E-05&lt;/P&gt;&lt;P&gt;-3.8,&amp;nbsp;&amp;nbsp; 7.23E-05&lt;/P&gt;&lt;P&gt;-3.79, 7.53E-05&lt;/P&gt;&lt;P&gt;-3.78, 7.84E-05&lt;/P&gt;&lt;P&gt;-3.77, 8.16E-05&lt;/P&gt;&lt;P&gt;-3.76, 8.5E-05&lt;/P&gt;&lt;P&gt;-3.75, 8.84E-05&lt;/P&gt;&lt;P&gt;-3.74, 9.2E-05&lt;/P&gt;&lt;P&gt;-3.73, 9.57E-05&lt;/P&gt;&lt;P&gt;-3.72, 9.96E-05&lt;/P&gt;&lt;P&gt;-3.71, 0.000104&lt;/P&gt;&lt;P&gt;-3.7, 0.000108&lt;/P&gt;&lt;P&gt;-3.69, 0.000112&lt;/P&gt;&lt;P&gt;-3.68, 0.000117&lt;/P&gt;&lt;P&gt;-3.67, 0.000121&lt;/P&gt;&lt;P&gt;-3.66, 0.000126&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FinalTab:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Map', FieldName1) AS MapFieldName&lt;/P&gt;&lt;P&gt;From YourTablename; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 20:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-index-of-a-column-from-a-table-in-expression/m-p/128620#M457932</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-07-11T20:05:38Z</dc:date>
    </item>
  </channel>
</rss>

