<?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: Use created expression as field in chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-created-expression-as-field-in-chart/m-p/589001#M1112150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i understood is that you have a field 'Units' and you are want to show 2 stacked bars for Unit and New Unit.&lt;/P&gt;&lt;P&gt;This can be achieved in bar charts by writing the 2 expression in dimension one for "Units" and another for "New Units" and stacking it for different dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still have any doubt, you can send us the data sample or requirement documented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Syed Haji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Mar 2014 20:39:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-01T20:39:11Z</dc:date>
    <item>
      <title>Use created expression as field in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-created-expression-as-field-in-chart/m-p/588999#M1112148</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'm relatively new to Qlikview and am trying to build a chart.&amp;nbsp; My imported data have a field "Units".&amp;nbsp; I created an expression "New Units" which revises the unit total based on product type.&amp;nbsp; So, for example, Units is currently 60/40 Product Type A/B, and I multiply it so New Units shows Product A/B if their ratio were 50/50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to visualize Units and New Units as 2 stacked bars.&amp;nbsp; I can make an expression with Units but New Units does not exist as an option.&amp;nbsp; How can I use calculated fields as expressions in charts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 17:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-created-expression-as-field-in-chart/m-p/588999#M1112148</guid>
      <dc:creator />
      <dc:date>2014-03-01T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use created expression as field in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-created-expression-as-field-in-chart/m-p/589000#M1112149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload your sample data file or qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 18:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-created-expression-as-field-in-chart/m-p/589000#M1112149</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-01T18:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use created expression as field in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-created-expression-as-field-in-chart/m-p/589001#M1112150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i understood is that you have a field 'Units' and you are want to show 2 stacked bars for Unit and New Unit.&lt;/P&gt;&lt;P&gt;This can be achieved in bar charts by writing the 2 expression in dimension one for "Units" and another for "New Units" and stacking it for different dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still have any doubt, you can send us the data sample or requirement documented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Syed Haji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 20:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-created-expression-as-field-in-chart/m-p/589001#M1112150</guid>
      <dc:creator />
      <dc:date>2014-03-01T20:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use created expression as field in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-created-expression-as-field-in-chart/m-p/589002#M1112151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't fully follow how you are deriving New Units from Units, but it sounds like you may be doing this in the front end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best place to create new fields is in the load script, for simplicity and performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To derive new fields you load script will need to look a bit like this (I've just used a Value multiplier as an example - your expression will differ):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Units,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Units * Value as [New Units],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... rest of load script ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that script has loaded you will be able to sum Units and New Units in two different expressions and have them side by side on a bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When deriving new fields in this way it is imperative you ensure all field names are unique.&amp;nbsp; If a field name is duplicated the load will crash out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 23:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-created-expression-as-field-in-chart/m-p/589002#M1112151</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-03-01T23:46:01Z</dc:date>
    </item>
  </channel>
</rss>

