<?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 How to pass all field values into variables. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930591#M649418</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;I am trying to pass all field values into variables but after reload i am able to see only one value.&lt;/P&gt;&lt;P&gt;DataToReduce:&lt;/P&gt;&lt;P&gt;LOAD Item AS Item1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status AS Status1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store As Store1&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Item.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is DataToReduce);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let VNo.ofFields = NoOfFields('DataToReduce'); //To find No.of Fields in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to $(VNo.ofFields)-1&amp;nbsp;&amp;nbsp; //&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let VFieldName=FieldName($(i),'DataToReduce'); //To find FieldName in the ith position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//let VNo.ofFieldValues=Count(Distinct $(VFieldName)); //To count noof distinct values of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let VNo.ofFieldValues=FieldValueCount('$(VFieldName)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for j=0 to $(VNo.ofFieldValues)-1 //&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// let VFieldvalue=FieldValue('$(VFieldName)',$(j));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let VFieldvalue=peek('$(VFieldName)',$(j),'DataToReduce'); //To pass field value in jth position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; next j;&amp;nbsp;&amp;nbsp; //increment field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i;&amp;nbsp; //increment the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 19:16:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-14T19:16:47Z</dc:date>
    <item>
      <title>How to pass all field values into variables.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930591#M649418</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;I am trying to pass all field values into variables but after reload i am able to see only one value.&lt;/P&gt;&lt;P&gt;DataToReduce:&lt;/P&gt;&lt;P&gt;LOAD Item AS Item1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status AS Status1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store As Store1&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Item.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is DataToReduce);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let VNo.ofFields = NoOfFields('DataToReduce'); //To find No.of Fields in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to $(VNo.ofFields)-1&amp;nbsp;&amp;nbsp; //&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let VFieldName=FieldName($(i),'DataToReduce'); //To find FieldName in the ith position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//let VNo.ofFieldValues=Count(Distinct $(VFieldName)); //To count noof distinct values of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let VNo.ofFieldValues=FieldValueCount('$(VFieldName)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for j=0 to $(VNo.ofFieldValues)-1 //&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// let VFieldvalue=FieldValue('$(VFieldName)',$(j));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let VFieldvalue=peek('$(VFieldName)',$(j),'DataToReduce'); //To pass field value in jth position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; next j;&amp;nbsp;&amp;nbsp; //increment field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i;&amp;nbsp; //increment the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 19:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930591#M649418</guid>
      <dc:creator />
      <dc:date>2015-08-14T19:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass all field values into variables.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930592#M649419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You overwrite the previous value in each iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what you are trying to achieve. You can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;let VFieldvalue=&amp;nbsp; peek('$(VFieldName)',$(j),'DataToReduce') &amp;amp; ', ' &amp;amp; VFieldvalue; //To pass field value in jth position.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or use CONCAT aggregation in a table LOAD to aggregate all values and then a single peek() to get the string into a variable.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 19:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930592#M649419</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-14T19:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass all field values into variables.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930593#M649420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is i have to load data from excel.&lt;/P&gt;&lt;P&gt;In that no.of field and Field value may vary each time .&lt;/P&gt;&lt;P&gt;And These field values have to select the data already loaded from the qvd.&lt;/P&gt;&lt;P&gt;After post reload the data comes from excel that matchs with qvd&amp;nbsp; should be excluded from qlikview application.&lt;/P&gt;&lt;P&gt;Main problem we don't&amp;nbsp; know what are fields and there values will going to be in excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 19:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930593#M649420</guid>
      <dc:creator />
      <dc:date>2015-08-14T19:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass all field values into variables.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930594#M649421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand what you are trying to achieve. Could you elaborate with some sample lines of data and your requested result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first thought that you might want to look into a WHERE clause with EXISTS() / NOT EXISTS() function instead of using variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 19:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930594#M649421</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-14T19:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass all field values into variables.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930595#M649422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reduction field data is loaded from excel file .&lt;/P&gt;&lt;P&gt;You can see "DatatoReduce" sheet in the attached excel file.&lt;/P&gt;&lt;P&gt;In this file ,fields may vary .But after Post reload the data has to reduce which is already loaded from Data Sheet.&lt;/P&gt;&lt;P&gt;But in real No.of field and field values may vary.&lt;/P&gt;&lt;P&gt;Data has to reduce after post reload.So, we are not using where not exists in the script.&lt;/P&gt;&lt;P&gt;Kindky check the above attachments;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 19:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930595#M649422</guid>
      <dc:creator />
      <dc:date>2015-08-14T19:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass all field values into variables.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930596#M649423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case i want&amp;nbsp; read each field and there values dynamically.&lt;/P&gt;&lt;P&gt;Onpost reload data have to reduce.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 20:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-all-field-values-into-variables/m-p/930596#M649423</guid>
      <dc:creator />
      <dc:date>2015-08-14T20:01:03Z</dc:date>
    </item>
  </channel>
</rss>

