<?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: Calculating Average Backlog Age by Distinct ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1721467#M451841</link>
    <description>&lt;P&gt;Sorry, this is getting too complicated to understand, so it is hard to help you. Can you share your app and detail what is wrong in which chart?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2020 21:19:43 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2020-06-23T21:19:43Z</dc:date>
    <item>
      <title>Calculating Average Backlog Age by Distinct ID</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1720473#M451809</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm new to this form and Qlikview. I have an expression that calculates the distinct count of open requests for past months in a chart as follows:&lt;/P&gt;&lt;P&gt;Count(distinct if(YYYYMM_SUBMITTED&amp;lt;=YYYYMM_BACKLOG and (YYYYMM_COMPLETED&amp;gt;YYYYMM_BACKLOG OR IsNull(YYYYMM_COMPLETED)),R_REQUEST_ID))&lt;/P&gt;&lt;P&gt;The above correctly to returns distinct request count opened prior to the end of the month and closed after. My problem comes in when trying to accurately calculate the age of the backlog at the end of the month. The formula below does not aggregate to&amp;nbsp;R_REQUEST_ID) so requests with multiple rows are not weighted correctly. Any idea how to aggregate to&amp;nbsp;R_REQUEST_ID)? I've tried many times, but the graph will not plot the expression when I add aggr() expressions. Any guidance is appreciated.&lt;/P&gt;&lt;P&gt;Thanks, Paul&lt;/P&gt;&lt;P&gt;avg(if(&lt;BR /&gt;YYYYMM_SUBMITTED&amp;lt;=YYYYMM_BACKLOG and (YYYYMM_COMPLETED&amp;gt;YYYYMM_BACKLOG)&lt;BR /&gt;,EOP_BACKLOG-SUBMITTED_DATE,&lt;BR /&gt;if(&lt;BR /&gt;YYYYMM_SUBMITTED&amp;lt;=YYYYMM_BACKLOG and (IsNull(YYYYMM_COMPLETED))&lt;BR /&gt;,Today()-SUBMITTED_DATE&lt;BR /&gt;)&lt;BR /&gt;))&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 18:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1720473#M451809</guid>
      <dc:creator>PBL65</dc:creator>
      <dc:date>2020-06-19T18:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average Backlog Age by Distinct ID</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1720547#M451810</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;avg(aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;avg(if(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;YYYYMM_SUBMITTED&amp;lt;=YYYYMM_BACKLOG and (YYYYMM_COMPLETED&amp;gt;YYYYMM_BACKLOG)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,EOP_BACKLOG-SUBMITTED_DATE,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;YYYYMM_SUBMITTED&amp;lt;=YYYYMM_BACKLOG and (IsNull(YYYYMM_COMPLETED))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,Today()-SUBMITTED_DATE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;,&amp;nbsp;R_REQUEST_ID))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jun 2020 15:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1720547#M451810</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-06-20T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average Backlog Age by Distinct ID</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1721451#M451840</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; That plots only one data point. Sorry if this is a tangent, but I wonder if it is because my backlog calendar is floating, so to speak, unlike submission and completion calendars which are joined by a date. Appreciate your help.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;from load script:&lt;/P&gt;&lt;P&gt;//OPENED_CALENDAR:&lt;BR /&gt;LEFT JOIN (MAIN) LOAD ProcessDate AS SUBMITTED_DATE,&lt;BR /&gt;YYYY AS YYYY_SUBMITTED,&lt;BR /&gt;YYYYMM AS YYYYMM_SUBMITTED,&lt;BR /&gt;YYYYWK AS YYYYWK_SUBMITTED,&lt;BR /&gt;Fiscal_Max_Date_In_Mth AS EOP_SUBMITTED&lt;BR /&gt;//Fiscal_Max_Date_In_Qtr&lt;BR /&gt;FROM&lt;BR /&gt;$(pQVDPath)Calendar.qvd (qvd);&lt;/P&gt;&lt;P&gt;//Calendar independent of open/close dates for backlog&lt;BR /&gt;BACKLOG_CALENDAR:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;YYYY AS YYYY_BACKLOG,&lt;BR /&gt;YYYYMM AS YYYYMM_BACKLOG,&lt;BR /&gt;YYYYWK AS YYYYWK_BACKLOG,&lt;BR /&gt;Fiscal_Max_Date_In_Mth AS EOP_BACKLOG&lt;BR /&gt;FROM&lt;BR /&gt;$(pQVDPath)Calendar.qvd (qvd)&lt;BR /&gt;WHERE Fiscal_Min_Date_In_Mth &amp;lt; Today()&lt;BR /&gt;AND YEAR(Today()) - YEAR(Fiscal_Min_Date_In_Mth)&amp;lt;2;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 20:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1721451#M451840</guid>
      <dc:creator>PBL65</dc:creator>
      <dc:date>2020-06-23T20:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average Backlog Age by Distinct ID</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1721467#M451841</link>
      <description>&lt;P&gt;Sorry, this is getting too complicated to understand, so it is hard to help you. Can you share your app and detail what is wrong in which chart?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 21:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1721467#M451841</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-06-23T21:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average Backlog Age by Distinct ID</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1721779#M451865</link>
      <description>&lt;P&gt;See expression&amp;nbsp;AvgAge in bottom-left chart. THANKS!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 14:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1721779#M451865</guid>
      <dc:creator>PBL65</dc:creator>
      <dc:date>2020-06-24T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average Backlog Age by Distinct ID</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1726218#M452039</link>
      <description>&lt;P&gt;Your backlog calendar is not linked to the rest of your data model, here are some Design Blog posts that should be helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Those two should give you a decent start, here is the main Design Blog link in case you want to search further in this area:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Actually, here are a couple other Help links that may be of some use too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/LoadData/best-practices-data-modeling.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/LoadData/best-practices-data-modeling.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/application-performance-optimization.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/application-performance-optimization.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 17:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Backlog-Age-by-Distinct-ID/m-p/1726218#M452039</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-07-08T17:45:58Z</dc:date>
    </item>
  </channel>
</rss>

