<?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 create a new variable in the table using existing variables? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-new-variable-in-the-table-using-existing/m-p/317573#M580070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can creat a inline table with prdtype and prdtype2 and your dimension will be prdtype2 as you said.&lt;/P&gt;&lt;P&gt;If you dont want to change the script and do it directly in the graph, you can use a calculated dimension.&lt;/P&gt;&lt;P&gt;If(prdtype=1, small, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(prdtype=2, medium, large)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe creating the inline is more efficient as it only calculates it when you reload, otherwise everytime you see the graph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2012 17:57:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-30T17:57:01Z</dc:date>
    <item>
      <title>How to create a new variable in the table using existing variables?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-new-variable-in-the-table-using-existing/m-p/317572#M580069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three products and their different attributes in a table "Product". the product types are stored as either 1,2 or 3 in the prdtype variable in the Product table. Now, when I create a bar/pie chart for the counts of this product, it creates three bars, one for each product. The problem is that it lables it as 1, 2 and 3 however, I want it to be labled as small, medium and large. Reading from other posts in the qlikview community, I think by creating a new variable say "prdtype2" which is defined as "Small" where prdtype =1. "Medium" where prdtype = 2 and "Large" where prdtype = 3 and then creating an expression based on the prdtype2 I can get the lables straight. My questions are:&lt;/P&gt;&lt;P&gt;How do i create prdtype2 variable in Product table? &lt;/P&gt;&lt;P&gt;Is this an efficient way? &lt;/P&gt;&lt;P&gt;Is there any way to directly change the labels without creating new variable? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 17:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-new-variable-in-the-table-using-existing/m-p/317572#M580069</guid>
      <dc:creator />
      <dc:date>2012-01-30T17:22:52Z</dc:date>
    </item>
    <item>
      <title>How to create a new variable in the table using existing variables?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-new-variable-in-the-table-using-existing/m-p/317573#M580070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can creat a inline table with prdtype and prdtype2 and your dimension will be prdtype2 as you said.&lt;/P&gt;&lt;P&gt;If you dont want to change the script and do it directly in the graph, you can use a calculated dimension.&lt;/P&gt;&lt;P&gt;If(prdtype=1, small, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(prdtype=2, medium, large)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe creating the inline is more efficient as it only calculates it when you reload, otherwise everytime you see the graph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 17:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-new-variable-in-the-table-using-existing/m-p/317573#M580070</guid>
      <dc:creator />
      <dc:date>2012-01-30T17:57:01Z</dc:date>
    </item>
    <item>
      <title>How to create a new variable in the table using existing variables?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-new-variable-in-the-table-using-existing/m-p/317574#M580071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could create a new field with your descriptive text like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;prdtype,&lt;/P&gt;&lt;P&gt;pick(prdtype,'Small','Medium','Large') as prdText,&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;from Product;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 18:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-new-variable-in-the-table-using-existing/m-p/317574#M580071</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-30T18:00:00Z</dc:date>
    </item>
  </channel>
</rss>

