<?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 Rename Data when Reading(Loading) from SQL Server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702429#M673842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys&lt;/P&gt;&lt;P&gt;I have a table which i am loading it from SQL Server 2008, &lt;/P&gt;&lt;P&gt;I want to rename the data in a way which is understandable to Users, &lt;/P&gt;&lt;P&gt;for Example: &lt;/P&gt;&lt;P&gt;I have 12 columns which each one has 5 possible values (1 or 4 or 9 or 16 or 25), i want to represent these data as (Highly disagree, disagree, no opinion, agree, highly agree)&lt;/P&gt;&lt;P&gt;take a look at this image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Comparative.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63615_Comparative.png" style="width: 620px; height: 346px;" /&gt;&lt;/P&gt;&lt;P&gt;as you see in the above picture, many users wont understand the meaning of these numbers!.&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Aug 2014 12:51:16 GMT</pubDate>
    <dc:creator>arixooo123</dc:creator>
    <dc:date>2014-08-02T12:51:16Z</dc:date>
    <item>
      <title>Rename Data when Reading(Loading) from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702429#M673842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys&lt;/P&gt;&lt;P&gt;I have a table which i am loading it from SQL Server 2008, &lt;/P&gt;&lt;P&gt;I want to rename the data in a way which is understandable to Users, &lt;/P&gt;&lt;P&gt;for Example: &lt;/P&gt;&lt;P&gt;I have 12 columns which each one has 5 possible values (1 or 4 or 9 or 16 or 25), i want to represent these data as (Highly disagree, disagree, no opinion, agree, highly agree)&lt;/P&gt;&lt;P&gt;take a look at this image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Comparative.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63615_Comparative.png" style="width: 620px; height: 346px;" /&gt;&lt;/P&gt;&lt;P&gt;as you see in the above picture, many users wont understand the meaning of these numbers!.&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 12:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702429#M673842</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2014-08-02T12:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Data when Reading(Loading) from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702430#M673843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use cross table and combine all those 11 columns into one and then you can easily rename the values to whatever you like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;Padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 13:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702430#M673843</guid>
      <dc:creator>qlikoqlik</dc:creator>
      <dc:date>2014-08-02T13:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Data when Reading(Loading) from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702431#M673844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in chart &lt;/P&gt;&lt;P&gt;if GroupA is your dimension in bar chart you can replace with a calculated dimension&lt;/P&gt;&lt;P&gt;=pick(match(GroupA,1,4,9,16,25), 'Highly disagree', 'disagree', 'no opinion', 'agree', 'highly agree')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you prefer you can do the same thing in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// make some test data with 1, 2, 9, 16, 25 &lt;/P&gt;&lt;P&gt;sqlserver:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; rowno() as id,&lt;/P&gt;&lt;P&gt; Pick(Ceil(5*Rand1),1,4,9,16,25) as GroupA;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt; Rand() as Rand1&lt;/P&gt;&lt;P&gt;Autogenerate 1000&lt;/P&gt;&lt;P&gt; While Rand()&amp;lt;=0.5 or IterNo()=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// replace 1,4,9.... with Highly......&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; pick(match(GroupA,1,4,9,16,25), 'Highly disagree', 'disagree', 'no opinion', 'agree', 'highly agree') as NewGroupA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; GroupA&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp; sqlserver;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table sqlserver;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 13:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702431#M673844</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-08-02T13:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Data when Reading(Loading) from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702432#M673845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- create a mapping table&lt;/P&gt;&lt;P&gt;- use applymap during load of your data &lt;/P&gt;&lt;P&gt;- maybe combine with the dual function, so your original numerical values are still available for sorting purposes.&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 01:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702432#M673845</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-03T01:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Data when Reading(Loading) from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702433#M673846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Buddy, that works like a charm.&lt;/P&gt;&lt;P&gt;i like to see the dimension in a order i want. how to sort them? i know i can go to the sort tab and i should write an Expression beside Expression check box.&lt;/P&gt;&lt;P&gt;but what Expression?&lt;/P&gt;&lt;P&gt;Something like :&lt;/P&gt;&lt;P&gt;SortInThisWay('Highly Disagree','Disagree','No Opinion','Agree','Highly Agree')&lt;/P&gt;&lt;P&gt;I need to tell you that i created a cyclic group including 12 Expressions one for each column.&lt;/P&gt;&lt;P&gt;the name of this Cyclic group is QST, i tried this for sorting:&lt;/P&gt;&lt;P&gt;Match(QST,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'Highly Disagree','Disagree','No Opinion','Agree','Highly Agree') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but it says bad field name : QST because QST is not actually a field&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 04:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-Data-when-Reading-Loading-from-SQL-Server/m-p/702433#M673846</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2014-08-03T04:36:35Z</dc:date>
    </item>
  </channel>
</rss>

