<?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: Re: Load variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550507#M205605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added mapping table and applymap in the script so it can convert Qnnn to the specific wording per map.&amp;nbsp; As for hte load form SQL - it doesn't matter much.&amp;nbsp; If you load from different tables that have same Q numbers with different wordings, you'll have to repeat this script for each table (except the map of course).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 15:28:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-03T15:28:34Z</dc:date>
    <item>
      <title>Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550493#M205591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I have many different files with the same questions, but different wording.&lt;/P&gt;&lt;P&gt;They are started from qID_2_blabla or qID_3_blabla.&lt;/P&gt;&lt;P&gt;I want, if any question started from qID_2_ save as AAA, if any question started from qID_3_ save as BBB.&lt;/P&gt;&lt;P&gt;Do you have any ideas how it easy to do?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 18:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550493#M205591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T18:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550494#M205592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use mapping.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyMap:&lt;BR /&gt;MAPPING LOAD * INLINE [&lt;BR /&gt; A,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;BR /&gt; qID_2_, AAA&lt;BR /&gt; qID_3_, BBB&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;applymap('MyMap', left(FieldName,6)) as NewField&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;RESIDENT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 19:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550494#M205592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T19:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550495#M205593</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If they are the field values when you can simply write if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Another approach you can use if of for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you know how much questions are there, then run a loop and check for the questions and bucket them accordinly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 19:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550495#M205593</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-08-29T19:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550496#M205594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;It won't be work, because some questions have more than 6 digits like it. qID_385_.&lt;/P&gt;&lt;P&gt;My idea to create universal load, where I only select which the file I want to load.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 19:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550496#M205594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T19:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550497#M205595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I know only numbers without wording. Because writing is changed from time to time.&lt;/P&gt;&lt;P&gt;I'd like to create universal load, where I can work with constant variable.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 19:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550497#M205595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T19:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550498#M205596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no logical difference...&amp;nbsp; There is some technical difference - you need to find the position of the second '_', and cut all after it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(Field, index(Field,'_',2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you can use it as is, or convert it to something shorter using AutoNumberHash128:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoNumberHash128(left(Field, index(Field,'_',2))) as NewField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 19:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550498#M205596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T19:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550499#M205597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply,&lt;/P&gt;&lt;P&gt;I used both your ideas.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AutoNumberHash128(left(Field, index(Field,'_',2))) as NewField&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Result 1 or 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;left(Field, index(Field,'_',2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; listbox is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;empty&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 19:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550499#M205597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T19:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550500#M205598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It implies that there is no two '_' characters in field values...&amp;nbsp; Can you upload an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 20:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550500#M205598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T20:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550501#M205599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Please find the attached file.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 16:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550501#M205599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T16:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550502#M205600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please also find xls file.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 16:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550502#M205600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T16:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550503#M205601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I see what the question is about.&amp;nbsp; The " qID_2_blabla or qID_3_blabla" are not the values - they are filed names.&amp;nbsp; So, all suggestions above are not applicable.&amp;nbsp; Simple renaming is not acceptable for the simple reason that you cannot have multiple fields with the same name.&lt;/P&gt;&lt;P&gt;Here comes the question - what do you want to do with it?&amp;nbsp; Possible options:&lt;/P&gt;&lt;P&gt;1. use only one field of similar named&lt;/P&gt;&lt;P&gt;2. use all of them and use the data of all these fields&lt;/P&gt;&lt;P&gt;3. anything else (?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 22:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550503#M205601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T22:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550504#M205602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;I have many different files with the same name, but different wording.&lt;/P&gt;&lt;P&gt;I want to create universal load, where I select which file I want to load and all questions name change their name on for example AAA, BBB, and so on.&lt;/P&gt;&lt;P&gt;In charts and tables I&amp;nbsp; can use variables AAA, BBB, and so on.&lt;/P&gt;&lt;P&gt;All questions names started from qID_NUMBER_TEXT. I want to recode the question, if it started from qID_2_ to AAA, if it started from qID_3_ to BBB, ...&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550504#M205602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-03T14:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550505#M205603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you load only one file at a time, and if there are no "duplicates" within one file (your example has 227 twice, and it is a problem), there is a solution.&amp;nbsp; In the attched example, I rename column names to Qnnn.&amp;nbsp; So, when you load the excel file, you get Q150 instead of qID_150_&amp;lt;whatever&amp;gt;.&amp;nbsp; If you load another file with qID_150_&amp;lt;something different&amp;gt;, you'll get the same Q150 instead.&lt;/P&gt;&lt;P&gt;The file to load is defined by a variable - see input box on top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 15:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550505#M205603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-03T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550506#M205604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me more important wording than Q23 or O24.&lt;/P&gt;&lt;P&gt;I think it's difficult way. &lt;/P&gt;&lt;P&gt;I'll load by questions from SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 15:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550506#M205604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-03T15:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550507#M205605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added mapping table and applymap in the script so it can convert Qnnn to the specific wording per map.&amp;nbsp; As for hte load form SQL - it doesn't matter much.&amp;nbsp; If you load from different tables that have same Q numbers with different wordings, you'll have to repeat this script for each table (except the map of course).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 15:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550507#M205605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-03T15:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Load variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550508#M205606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;It's close to my question.&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 15:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable/m-p/550508#M205606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-03T15:37:54Z</dc:date>
    </item>
  </channel>
</rss>

