<?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 Not Adding Up on Bar Graph in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44015#M2953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out. Not all combinations of [Event]&amp;amp;[ID-Code] were unique, so there was some overlap that caused the totals to be messed up. To fix this, I threw in a [Row] field with just the row number in it, then made this part of the key: [Event]&amp;amp;[ID-Code]&amp;amp;[Row] AS [Key].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything else fell into place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2018 22:32:54 GMT</pubDate>
    <dc:creator>acbishop2</dc:creator>
    <dc:date>2018-03-05T22:32:54Z</dc:date>
    <item>
      <title>Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44002#M2940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet again, I have run into a situation that simply does not make sense to me. Let's see if I can make this easy to understand...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to measure volume for specific periods of time. I have a bar chart set up with [Date.autoCalendar.Date] as the dimension and Count(If([Date] &amp;gt; 0, [Key])) as the measure. Here's an example of what happens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikNumbersHelp.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195199_QlikNumbersHelp.JPG" style="width: 620px; height: 277px;" /&gt;&lt;/P&gt;&lt;P&gt;The Volume KPI has the correct number for volume, and has the same formula as the measure in the graph: Count(If([Date]&amp;gt;0, [Key])). The volume during this 7-day period is 273, but the graph shows 184, nearly 100 less than what it should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is further complicated when I want to see volume by employee. I added [Employee] as a second dimension in the graph above and got this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikNumbersHelp2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/195206_QlikNumbersHelp2.JPG" style="width: 620px; height: 258px;" /&gt;&lt;/P&gt;&lt;P&gt;The volume as shown by the graph now adds up to 354. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I'm lost. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My only thought is that is must have to do with the way my data is set up. I started with one table and created 3 cross tables from it so that different fields could be bound together with a key. Still, I've used similar set-ups with other apps and never run into this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All ideas are welcome. Thanks ahead of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 22:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44002#M2940</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-03-02T22:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44003#M2941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to use proper aggregations in the charts. sometimes the expression you use in KPI may not work the same in the tables/charts.this is because you are splitting up the data based on your dimensions.so the expressions in charts need proper aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post some sample data to look into this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44003#M2941</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2018-03-02T23:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44004#M2942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you get if you do this in KPI? - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr(Count(If([Date]&amp;gt;0, [Key])),&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Date.autoCalendar.Date]))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44004#M2942</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-03-02T23:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44005#M2943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same: 273&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44005#M2943</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-03-02T23:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44006#M2944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But your bar graph values also totals to 273? Where do you see 184?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44006#M2944</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-03-02T23:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44007#M2945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, wow. I swear I added it up like 5 times and it didn't match. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disregard the first part of my post then. The second still stands. Do you know why the total is changing when the second dimension is added? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on uploading some sample data if you need that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44007#M2945</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-03-02T23:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44008#M2946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you see in KPI for this - &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr(Count(If([Date]&amp;gt;0, [Key])),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;[Date.autoCalendar.Date]),[Employee])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2018 00:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44008#M2946</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-03-03T00:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44009#M2947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha ha, at least I solved your first problem. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2018 00:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44009#M2947</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-03-03T00:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44010#M2948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's some sample data. It's limited, so the numbers aren't the same, but I made sure that the structure was the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same problem happens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikNumbersHelp3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195208_QlikNumbersHelp3.JPG" style="width: 620px; height: 196px;" /&gt;&lt;/P&gt;&lt;P&gt;Attached are the .qvf and .xlsx files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2018 00:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44010#M2948</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-03-03T00:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44011#M2949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That gives me an error: "Sum takes only 1 parameter."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I move the second aggr() parenthesis to the end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Count(If([Date]&amp;gt;0, [Key])),[Date.autoCalendar.Date],[Employee]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I get 354.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2018 00:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44011#M2949</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-03-03T00:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44012#M2950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was my bad, forgot ending bracket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it confirms that there is nothing wrong with the chart. The KPI consider the whole data set but chart aggregates based on what dimensions we provide. When we provided same dimensions to KPI it resulted in same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you got duplicate 'key' field values per employee so that could be the reason your numbers increased but I need to see the qvf yet to verify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2018 00:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44012#M2950</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-03-03T00:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44013#M2951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I understand what you are saying, see the attached qvf, I created straight table at the bottom, since you understand you data, you may find some clue by seeing that table for single day.&lt;/P&gt;&lt;P&gt;I am still trying to understand that in straight table when I keep the default 'Auto' total mode in measure, it matches with your KPI but when I change it to 'Sum', it totals the individual values. So the Bar graph total is doing the similar kind of sum what straight table 'Sum' mode is doing. So if we can understand what is difference between Auto and Sum options of total mode, I think we will get our answer. Give me some time to figure this out&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or may be some other expert can jump in to help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2018 01:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44013#M2951</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-03-03T01:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44014#M2952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked at the straight table totals and saw what you were talking about. Because of that difference, I wanted to go back to the data to see which was correct. The "Auto" total is the correct one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That also means that the graph is wrong. For example, looking at 2/21, 2/22, and 2/23 for Category: BAN, the graph shows a total of 29, where the correct total is 27. Looking at the data, Employee: Nan should only be associated with one date, not three.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I'm not sure, but I wonder if the data is being distorted because of the 3 cross tables. Did you take a look at the script load editor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 18:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44014#M2952</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-03-05T18:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers Not Adding Up on Bar Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44015#M2953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out. Not all combinations of [Event]&amp;amp;[ID-Code] were unique, so there was some overlap that caused the totals to be messed up. To fix this, I threw in a [Row] field with just the row number in it, then made this part of the key: [Event]&amp;amp;[ID-Code]&amp;amp;[Row] AS [Key].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything else fell into place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 22:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbers-Not-Adding-Up-on-Bar-Graph/m-p/44015#M2953</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-03-05T22:32:54Z</dc:date>
    </item>
  </channel>
</rss>

