<?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: Using Class to display Dimension in % in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Class-to-display-Dimension-in/m-p/467260#M1151141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you create a new field for &lt;STRONG&gt;Charged_Amount&lt;/STRONG&gt; in which you calculate the percentages? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So &lt;STRONG&gt;Percentage_Charged_Amount&lt;/STRONG&gt; can be calculated by &lt;STRONG&gt;(Charged_Amount/max(Charged_Amount))*100&lt;/STRONG&gt; which gives you a number between 0 and 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option could be to creating 2 fields, a lower and a upper bound per &lt;STRONG&gt;Charged_Amount&lt;/STRONG&gt;. If the percentage 5% will get the lower bound 0 and 10. Then you can use a calculated dimension like: =&lt;STRONG&gt;LowerBound &amp;amp; ' % &amp;lt;= x &amp;lt; ' &amp;amp; UpperBound &amp;amp; ' %' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this is something that you can use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 15:36:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-16T15:36:21Z</dc:date>
    <item>
      <title>Using Class to display Dimension in %</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Class-to-display-Dimension-in/m-p/467259#M1151140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;I have 3 Variables defined as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;vMinChargedAmount&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(CHARGED_AMOUNT)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;vMaxChargedAmount&amp;nbsp;&amp;nbsp; Max(CHARGED_AMOUNT)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;vChargedAmountWidth&amp;nbsp; =(($(vMaxChargedAmount) - $(vMinChargedAmount))/10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;I am creating a bar chart with &lt;STRONG&gt;dimension &lt;/STRONG&gt;as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=Class(CHARGED_AMOUNT,$(vChargedAmountWidth))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Count (DISTINCT CHARGED_AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Basically I am trying to calculate the Class width through variable. (Refer to the attachment for better image) This works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;IMG __jive_id="41182" alt="Class_Working.PNG" class="jive-image-thumbnail jive-image" height="250" src="https://community.qlik.com/legacyfs/online/41182_Class_Working.PNG" style="height: 250.38801261829653px; width: 609px;" width="609" /&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;The variables will calculate the Class function width for every 10%.. &lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1368715891312961" jivemacro_uid="_1368715891312961"&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;vMinChargedAmount&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(CHARGED_AMOUNT)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;vMaxChargedAmount&amp;nbsp;&amp;nbsp; Max(CHARGED_AMOUNT)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;vChargedAmountWidth&amp;nbsp; =(($(vMaxChargedAmount) - $(vMinChargedAmount))/10)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;My problem is I do not want to display the numeric values for X axis (Dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;I want the Calculated Dimension values to display as % &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;0% &amp;lt;= x &amp;lt; 10%&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;10%&amp;nbsp; &amp;lt;= x &amp;lt; 20%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;20%&amp;nbsp; &amp;lt;= x &amp;lt; 30%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;30%&amp;nbsp; &amp;lt;= x &amp;lt; 40%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;40%&amp;nbsp; &amp;lt;= x &amp;lt; 50%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;90% &amp;lt;= x &amp;lt; 100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Any way to implement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Thank you&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 14:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Class-to-display-Dimension-in/m-p/467259#M1151140</guid>
      <dc:creator />
      <dc:date>2013-05-16T14:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Class to display Dimension in %</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Class-to-display-Dimension-in/m-p/467260#M1151141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you create a new field for &lt;STRONG&gt;Charged_Amount&lt;/STRONG&gt; in which you calculate the percentages? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So &lt;STRONG&gt;Percentage_Charged_Amount&lt;/STRONG&gt; can be calculated by &lt;STRONG&gt;(Charged_Amount/max(Charged_Amount))*100&lt;/STRONG&gt; which gives you a number between 0 and 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option could be to creating 2 fields, a lower and a upper bound per &lt;STRONG&gt;Charged_Amount&lt;/STRONG&gt;. If the percentage 5% will get the lower bound 0 and 10. Then you can use a calculated dimension like: =&lt;STRONG&gt;LowerBound &amp;amp; ' % &amp;lt;= x &amp;lt; ' &amp;amp; UpperBound &amp;amp; ' %' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this is something that you can use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 15:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Class-to-display-Dimension-in/m-p/467260#M1151141</guid>
      <dc:creator />
      <dc:date>2013-05-16T15:36:21Z</dc:date>
    </item>
  </channel>
</rss>

