<?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 Unit Conversion and % Calculation Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unit-Conversion-and-Calculation-Issue/m-p/828805#M994997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help in unit conversions and % calculation.&lt;/P&gt;&lt;P&gt;Issue is I have a bar chart for sales for two consecutive years and the sale amount varies from year to year.(no dimension only expressions).&lt;/P&gt;&lt;P&gt;with my conversion expression bars are displaying their respective units(like millions and&amp;nbsp; Billions).&lt;/P&gt;&lt;P&gt;but I have to show same unit for all the bars in the chart.&lt;/P&gt;&lt;P&gt;and the % also coming wrongly(Please have a look at attached snap.).&lt;/P&gt;&lt;P&gt;Expressions we are using are&lt;/P&gt;&lt;P&gt;Bars 1)Sum({&amp;lt;year={"$(Max(Year))"}Sales)---- for current year&lt;/P&gt;&lt;P&gt;2)Sum({&amp;lt;year={"$(Max(Year)-1)"}Sales&lt;/P&gt;&lt;P&gt;Unit Conversion:&lt;/P&gt;&lt;P&gt;if(Sum({&amp;lt;year={"$(Max(Year))"}Sales)&amp;gt;1000000,Num(Sum({&amp;lt;year={"$(Max(Year))"}Sales))/1000000,'#,##0.0M',Num(Sum({&amp;lt;year={"$(Max(Year))"}Sales)/1000,'#,##0.0K').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;% Exp:(Sum({&amp;lt;year={"$(Max(Year))"}Sales)-Sum({&amp;lt;year={"$(Max(Year)-1)"}Sales))/Sum({&amp;lt;year={"$(Max(Year)-1)"}Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Anusha.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2015 09:14:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-26T09:14:17Z</dc:date>
    <item>
      <title>Unit Conversion and % Calculation Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Unit-Conversion-and-Calculation-Issue/m-p/828805#M994997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help in unit conversions and % calculation.&lt;/P&gt;&lt;P&gt;Issue is I have a bar chart for sales for two consecutive years and the sale amount varies from year to year.(no dimension only expressions).&lt;/P&gt;&lt;P&gt;with my conversion expression bars are displaying their respective units(like millions and&amp;nbsp; Billions).&lt;/P&gt;&lt;P&gt;but I have to show same unit for all the bars in the chart.&lt;/P&gt;&lt;P&gt;and the % also coming wrongly(Please have a look at attached snap.).&lt;/P&gt;&lt;P&gt;Expressions we are using are&lt;/P&gt;&lt;P&gt;Bars 1)Sum({&amp;lt;year={"$(Max(Year))"}Sales)---- for current year&lt;/P&gt;&lt;P&gt;2)Sum({&amp;lt;year={"$(Max(Year)-1)"}Sales&lt;/P&gt;&lt;P&gt;Unit Conversion:&lt;/P&gt;&lt;P&gt;if(Sum({&amp;lt;year={"$(Max(Year))"}Sales)&amp;gt;1000000,Num(Sum({&amp;lt;year={"$(Max(Year))"}Sales))/1000000,'#,##0.0M',Num(Sum({&amp;lt;year={"$(Max(Year))"}Sales)/1000,'#,##0.0K').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;% Exp:(Sum({&amp;lt;year={"$(Max(Year))"}Sales)-Sum({&amp;lt;year={"$(Max(Year)-1)"}Sales))/Sum({&amp;lt;year={"$(Max(Year)-1)"}Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Anusha.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 09:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unit-Conversion-and-Calculation-Issue/m-p/828805#M994997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-26T09:14:17Z</dc:date>
    </item>
  </channel>
</rss>

