<?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: Numbers Mismatch Between Straight and bar Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70714#M606301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 13:33:54 GMT</pubDate>
    <dc:creator>amit_saini</dc:creator>
    <dc:date>2018-05-09T13:33:54Z</dc:date>
    <item>
      <title>Numbers Mismatch Between Straight and bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70710#M606297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using below Expression in straight table , which is giving me right numbers of Cost:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Straight Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dim: KSTAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Income_Statement_Line'&lt;/P&gt;&lt;P&gt;Expression=num(&lt;STRONG style=": ; color: #ff6600;"&gt;if(Main_Order='71410',sum({&amp;lt;Main_Order={'71410','75413'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;if(Main_Order='71501',sum({&amp;lt;Main_Order={'71501','75501'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;if(Main_Order='71502',sum({&amp;lt;Main_Order={'71502','75502'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost) ,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;if(Main_Order='71503',sum({&amp;lt;Main_Order={'71503','75512'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #ff6600;"&gt;if(Main_Order='71601',sum({&amp;lt;Main_Order={'71601','75614'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost)))))),'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I'm calling same expression into stacked bar chart , it looks like together numbers are not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stacked Bar Chart:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dim: Project Type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Income_Statement_Line'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Express: as Above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be Aggr sum is required , I tried but stoll no sucess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 14:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70710#M606297</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2018-05-08T14:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Mismatch Between Straight and bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70711#M606298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 06:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70711#M606298</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2018-05-09T06:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Mismatch Between Straight and bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70712#M606299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;it looks like together numbers are not correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Please be more specific about what you believe to be incorrect. I can't see any wrong numbers in the sample you uploaded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 06:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70712#M606299</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-05-09T06:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Mismatch Between Straight and bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70713#M606300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Main Order = 71601 , correct cost numbers are 2,782,512&lt;/P&gt;&lt;P&gt;&lt;IMG alt="X.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201917_X.PNG" style="height: 209px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So result in Straight table is correct , but when I'm calling same expression in stacked bar chart, I'm having cost total as 2569688.76 (Export bar chart to excel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to be the same as above straight table cost result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below Main Order 71601 has a Vpart as 75614 , so in general when I select Main_Order "71601" from list than it should sum up the Cost for both Main Order (71601) and it's corresponding&amp;nbsp; Vpart (75614) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="68" style="width: 159px; height: 43px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="93"&gt;Main_Order&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="81"&gt;Vpart&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;71601&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;75614&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;All the numbers in Vpart field are available inside "Main_Order" itself. &lt;/P&gt;&lt;P&gt;To achieve this I'm using below expression in straight chart&amp;nbsp; and Output is correct:&lt;/P&gt;&lt;P&gt;if(Main_Order='&lt;STRONG&gt;71410&lt;/STRONG&gt;',sum({&amp;lt;Main_Order={'&lt;STRONG&gt;71410','75413&lt;/STRONG&gt;'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used above expression , because we are having only 4 cases where Main_Order has Vpart number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....... similar for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main_Order&amp;nbsp; Vpart&lt;/P&gt;&lt;P&gt;71501&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75501&lt;/P&gt;&lt;P&gt;71502&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75502&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is more clear now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 06:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70713#M606300</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2018-05-09T06:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Mismatch Between Straight and bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70714#M606301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 13:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70714#M606301</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2018-05-09T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Mismatch Between Straight and bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70715#M606302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure, but may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(if(Main_Order='71410',sum(TOTAL &amp;lt;Income_Statement_Line&amp;gt;{&amp;lt;Main_Order={'71410','75413'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Main_Order='71501',sum(TOTAL &amp;lt;Income_Statement_Line&amp;gt;{&amp;lt;Main_Order={'71501','75501'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Main_Order='71502',sum(TOTAL &amp;lt;Income_Statement_Line&amp;gt;{&amp;lt;Main_Order={'71502','75502'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost) ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Main_Order='71503',sum(TOTAL &amp;lt;Income_Statement_Line&amp;gt;{&amp;lt;Main_Order={'71503','75512'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Main_Order='71601',sum(TOTAL &amp;lt;Income_Statement_Line&amp;gt; {&amp;lt;Main_Order={'71601','75614'},Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(TOTAL &amp;lt;Income_Statement_Line&amp;gt;{&amp;lt;Income_Statement_Line-={'A - Gross sales','B - Sales Deductions','D - Change in stock / Cap. work &amp;amp; mat.'}&amp;gt;}Cost)))))) * Avg(1),'#,##0')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 14:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numbers-Mismatch-Between-Straight-and-bar-Chart/m-p/70715#M606302</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T14:18:56Z</dc:date>
    </item>
  </channel>
</rss>

