<?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: a question about counts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456568#M486697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ugh. "no data to display". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing this right? I'm just creating a bar chart, and selecting the month field that I have, then entering the expression that you wrote.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2013 01:19:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-21T01:19:09Z</dc:date>
    <item>
      <title>a question about counts</title>
      <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456565#M486694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I want to make a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the Y axis, I want to have percentages. 10% increments, from 0% to 100%. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to calculate... this is where I have an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called "sent_date", and a field called "received_date". These all have a unique identifier called a "apl_id". So, each apl_id has a date it was received by my company, and a date where it was sent out to the member. They must be sent out within 30 days of receiving them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, let's say, for the month of October, we have 100 apl_id's, with 100 received dates and 100 sent dates, if all 100 were sent out within 30 days of receiving them, the chart would show 100% for the month of October. If one was outside of the 30 days, it would need to show 99%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't a clue how to do this calculation inside of Qlikview. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to have a chart do the calculations behind the scenes, and then present them in the chart as a percentage? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose it would need to do an IF statement, like "IF &amp;gt;= 30, then count it as a 1. If not, count as a 0 (or dont count at all).... then you would put this inside of the chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 01:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456565#M486694</guid>
      <dc:creator />
      <dc:date>2013-02-21T01:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: a question about counts</title>
      <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456566#M486695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this should work:&lt;/P&gt;&lt;P&gt;Dimension: &lt;EM&gt;Month&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;EM&gt;sum(if(sent_date-received_date&amp;lt;=30,1))/count(apl_id)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then under the Number tab, set your expression to Show in Percent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if you have lots and lots of those apl_id's you might want to set a flag as 1 for each instance in the script and then use &lt;EM&gt;sum(apl_flag)&lt;/EM&gt; instead of&lt;EM&gt; count(apl_id)&lt;/EM&gt; but for a normal dataset you shouldn't need to worry.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 01:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456566#M486695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-21T01:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: a question about counts</title>
      <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456567#M486696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, let me try that. One sec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(oh - I should have said Y axis, not X.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 01:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456567#M486696</guid>
      <dc:creator />
      <dc:date>2013-02-21T01:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: a question about counts</title>
      <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456568#M486697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ugh. "no data to display". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing this right? I'm just creating a bar chart, and selecting the month field that I have, then entering the expression that you wrote.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 01:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456568#M486697</guid>
      <dc:creator />
      <dc:date>2013-02-21T01:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: a question about counts</title>
      <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456569#M486698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing I can think of is that your dates are perhaps not formatted in a way that QlikView will recognize as dates? In this case it won't be able to subtract the received date from the sent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to take a look here for a date explanation:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 01:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456569#M486698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-21T01:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: a question about counts</title>
      <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456570#M486699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, in your other thread the sent date is called &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;apel_ltr_snt_dt&lt;/SPAN&gt; in which case the syntax in my previous example is wrong. Make sure that the fieldnames in the expression matches what you have in your data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 01:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456570#M486699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-21T01:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: a question about counts</title>
      <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456571#M486700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh, yeah I'm double checking to make sure I have the fields correct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me check the dates to make sure they can be calculated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help - was I missing anything in the way I was going about setting up the bar chart, other than these things?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 01:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456571#M486700</guid>
      <dc:creator />
      <dc:date>2013-02-21T01:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: a question about counts</title>
      <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456572#M486701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, not really.&lt;/P&gt;&lt;P&gt;All you need to do is pick the bar chart, pick the dimension and create an expression and you should be up and running. The rest is mostly for changing the look and feel, sorting, labels etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 02:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456572#M486701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-21T02:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: a question about counts</title>
      <link>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456573#M486702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! Thanks so much for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 18:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/a-question-about-counts/m-p/456573#M486702</guid>
      <dc:creator />
      <dc:date>2013-02-21T18:44:01Z</dc:date>
    </item>
  </channel>
</rss>

