<?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: Calculate average time for aggregated attributes in Pie Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161275#M378582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Perhaps This&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;Avg ({&amp;lt;Days={'&amp;gt;=' &amp;amp; Weekday(Date(StartDate)) '&amp;lt;=' &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Weekday(Date(EndDate))&lt;/SPAN&gt;}, Months=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{'&amp;gt;=' &amp;amp; Weekday(Date(StartDate)) '&amp;lt;=' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Weekday(Date(EndDate))&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;}&lt;/SPAN&gt;, Status = {'1','2','25','28','4','5','24'&amp;gt;} Timestamp(time,'hh:mm:ss'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2016 10:07:59 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2016-09-08T10:07:59Z</dc:date>
    <item>
      <title>Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161271#M378578</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;I need to build a pie chart that shows the average time (in days and months) between a Start and&amp;nbsp; End Date for an aggregated set of status. &lt;/P&gt;&lt;P&gt;I’m trying to define the aggregation of Status values in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached file is a sample of what I’m trying to do and shows a pie chart that gives results, but without aggregation on Status attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help on this, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 17:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161271#M378578</guid>
      <dc:creator />
      <dc:date>2016-09-07T17:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161272#M378579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expected output? Can you provide some information on the expected output here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 18:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161272#M378579</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-07T18:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161273#M378580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bases on the Qvw provided, my expected output is to have a pie chart with several attributes aggregated by status as follows:&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;Average time (in days and months) between a Start and&amp;nbsp; End Date, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If Status = '1', '2' &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;Average time (in days and months) between a Start and&amp;nbsp; End Date, If &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Status = '25', '28' &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;Average time (in days and months) between a Start and&amp;nbsp; End Date, &lt;/SPAN&gt;If Status = '4'&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;Average time (in days and months) between a Start and&amp;nbsp; End Date, &lt;/SPAN&gt;If Status = '5'&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;Average time (in days and months) between a Start and&amp;nbsp; End Date, &lt;/SPAN&gt;If Status = '24' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need further information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 08:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161273#M378580</guid>
      <dc:creator />
      <dc:date>2016-09-08T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161274#M378581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still not sure how you are getting these numbers? I am assuming that for Status =1, you would want the Avg(DayDiff) = 2 when we are on days? how are you getting 2 here? What is the logic? Also, you provided the output for Status = 1 and Status = 2 (I assume 25 was a typo and you meant 2 here), but what about the rest 4, 5, 24? and also what about others 3, 6?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 09:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161274#M378581</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-08T09:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161275#M378582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Perhaps This&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;Avg ({&amp;lt;Days={'&amp;gt;=' &amp;amp; Weekday(Date(StartDate)) '&amp;lt;=' &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Weekday(Date(EndDate))&lt;/SPAN&gt;}, Months=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{'&amp;gt;=' &amp;amp; Weekday(Date(StartDate)) '&amp;lt;=' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Weekday(Date(EndDate))&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;}&lt;/SPAN&gt;, Status = {'1','2','25','28','4','5','24'&amp;gt;} Timestamp(time,'hh:mm:ss'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 10:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161275#M378582</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-08T10:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161276#M378583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I will try to clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look to the Qv application and sample excel file I send in attach to check the numbers and an idea of the expected result. To know if we are on Days or Months I’m thinking to consider ‘Days’ and ‘Months’ as a Cycle field that the user could choose to switch between Days and Months, then the graph should adjust the results according the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diff Days was an attribute created in a tentative to solve this. You could ignore if not required for your approach. 25 was a typo and the other status could be ignored. I only want to consider the values for Status as described inside the Qv application (Text Object)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Start and End Date with a field Status related. Grouping the status according the logic &lt;SPAN style="font-size: 13.3333px;"&gt;described inside the Qv application (Text Object), &lt;/SPAN&gt;I need to know the time spent when the status match the conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 10:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161276#M378583</guid>
      <dc:creator />
      <dc:date>2016-09-08T10:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161277#M378584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is not working. The expression is given error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 10:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161277#M378584</guid>
      <dc:creator />
      <dc:date>2016-09-08T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161278#M378585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there other input or information you need?&lt;/P&gt;&lt;P&gt;If so please let me know. I'm struggling to get this working but with no luck so far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 17:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161278#M378585</guid>
      <dc:creator />
      <dc:date>2016-09-08T17:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161279#M378586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue to help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 16:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161279#M378586</guid>
      <dc:creator />
      <dc:date>2016-09-09T16:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161280#M378587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paulo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if this is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161280#M378587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-09T17:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161281#M378588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. This is very close of what I'm looking for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid the inline table, imagine that I have a column with the Status Text in the data table. How can I aggregated them following the same logic, e.g. using a calculated dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161281#M378588</guid>
      <dc:creator />
      <dc:date>2016-09-12T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161282#M378589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 13:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161282#M378589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T13:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time for aggregated attributes in Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161283#M378590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working as expected. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-time-for-aggregated-attributes-in-Pie-Chart/m-p/1161283#M378590</guid>
      <dc:creator />
      <dc:date>2016-09-12T16:23:50Z</dc:date>
    </item>
  </channel>
</rss>

