<?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: Summing count function in cyclic group in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Summing-count-function-in-cyclic-group/m-p/667078#M359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To sum daily counts over a month you could use aggr():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;SPAN style="font-size: 10pt;"&gt;count({$&amp;lt; QVD_Id = {2, 9, 10, 11, 13, 15, 17, 18, 19, 20}&amp;gt;}DISTINCT QVD_Id), Day))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;By question two it could be that there are null-values within the calculation if no selection made and with selections no null-values or other errors occured. You will need a deeper view on your data, maybe on transactions level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;- Marcus&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 08:52:56 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-09-23T08:52:56Z</dc:date>
    <item>
      <title>Summing count function in cyclic group</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Summing-count-function-in-cyclic-group/m-p/667077#M358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;We have a calendar list box consisting of year, month, day and time of day. We have created a line chart where the dimensions is the cyclic group, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Day_Week_Month (consisting of dimensions: day, week and month). To get the total number of reports successfully updated in a given time interval, we used the expression below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=count({$&amp;lt; QVD_Id = {2, 9, 10, 11, 13, 15, 17, 18, 19, 20}&amp;gt;}DISTINCT QVD_Id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression yields the correct results for day. When we select week or month from the cyclic group we would like to get results that shows the total sum of successfully updated reports for each week/month. As an example, on a daily basis there are 4 reports delivered successfully, therefore each week should yield 28, b&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ut with this expression (seen above) we only get about 10 reports per week. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, in the dimension tab we have currently have the "Show All Values" box selected. If this box is not selected, the line chart doesn't show the points where no reports have been updated in the selected time interval. However, when we select week all it shows all the weeks in the year and we'd like to see the weeks in a month. As an example, if we have selected June in the calendar box and week from the cyclic group the chart displays all weeks of the year but only values that are different from zero for the weeks in June. We would like to show all points when day is selected from the cyclic group (this is achieved by selecting "show all values"), but when week or month is selected from the cyclic group, we only want to show the relevant weeks/months based on the selection in the calendar-list box (this is achieved by deselecting "show all values"). &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Does anybody know how to achieve this? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 07:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Summing-count-function-in-cyclic-group/m-p/667077#M358</guid>
      <dc:creator />
      <dc:date>2014-09-23T07:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Summing count function in cyclic group</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Summing-count-function-in-cyclic-group/m-p/667078#M359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To sum daily counts over a month you could use aggr():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;SPAN style="font-size: 10pt;"&gt;count({$&amp;lt; QVD_Id = {2, 9, 10, 11, 13, 15, 17, 18, 19, 20}&amp;gt;}DISTINCT QVD_Id), Day))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;By question two it could be that there are null-values within the calculation if no selection made and with selections no null-values or other errors occured. You will need a deeper view on your data, maybe on transactions level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;- Marcus&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 08:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Summing-count-function-in-cyclic-group/m-p/667078#M359</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-23T08:52:56Z</dc:date>
    </item>
  </channel>
</rss>

