<?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: Regarding age problem for time period based on inline in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96543#M761915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply &lt;A _jive_internal="true" data-avatarid="5408" data-externalid="" data-online="false" data-presence="null" data-userid="280050" data-username="quddus.mohiuddin" href="https://community.qlik.com/people/quddus.mohiuddin" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; background-color: #f2f2f2;"&gt;quddus mohiuddin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We have business date and create date from which calculating age and we are taking business date as filter in dashboard and time period for selection. We need to find average of age based on&amp;nbsp; the max age on&amp;nbsp; business date for each isu_id and isu id is duplicate.&amp;nbsp; Please refer the excel sheet in excel sheet we r having multiple entry for business date and create date and we will get the age by difference of these two and we have to consider the max age which is on&amp;nbsp; business date and rest age not to be included in calculation of expression.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2018 06:57:43 GMT</pubDate>
    <dc:creator>abhinayranjan11</dc:creator>
    <dc:date>2018-08-03T06:57:43Z</dc:date>
    <item>
      <title>Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96539#M761911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Facing problem of age for period 30 n 90 day I hv created sample data please have a look on it e r doing qliksense however based on expression e hv filtered the data range does not working properly for both period n working for day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96539#M761911</guid>
      <dc:creator>abhinayranjan11</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96540#M761912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinay,&lt;/P&gt;&lt;P&gt;I made some required changes in your given app. There is small tip which&amp;nbsp; i want to share with you that if you are working with date range so try to use dates in Num format. So kindly check the attached app and confirm that is this your requirement.&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;Quddus Mohiuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 06:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96540#M761912</guid>
      <dc:creator>quddus_mohiuddi</dc:creator>
      <dc:date>2018-08-02T06:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96541#M761913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Quddus Mohiuddin&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: 12px; background-color: #f2f2f2;"&gt;Actually we have to take the max age based on max of date for each isu_id and isu id is duplicate for period of 30 day n 90 day.Can u please tell y u remove outer avg with conditions and why using nodistinct.in this expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 18:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96541#M761913</guid>
      <dc:creator>abhinayranjan11</dc:creator>
      <dc:date>2018-08-02T18:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96542#M761914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinay,&lt;/P&gt;&lt;P&gt;First, If you want max age then you can use max instead of using avg function. &lt;/P&gt;&lt;P&gt;Second, Yes i removed outer avg set analysis conditions because as per your requirement we don't need to use the same set analysis before and after aggr() , but if we have that type of requirement in which we have different criteria before and after aggr() then we use set analysis after aggr().&lt;/P&gt;&lt;P&gt;Third, yes i used nodistinct because in this case, we want to aggregate complete records for age to isu_id.&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, 03 Aug 2018 06:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96542#M761914</guid>
      <dc:creator>quddus_mohiuddi</dc:creator>
      <dc:date>2018-08-03T06:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96543#M761915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply &lt;A _jive_internal="true" data-avatarid="5408" data-externalid="" data-online="false" data-presence="null" data-userid="280050" data-username="quddus.mohiuddin" href="https://community.qlik.com/people/quddus.mohiuddin" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; background-color: #f2f2f2;"&gt;quddus mohiuddin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We have business date and create date from which calculating age and we are taking business date as filter in dashboard and time period for selection. We need to find average of age based on&amp;nbsp; the max age on&amp;nbsp; business date for each isu_id and isu id is duplicate.&amp;nbsp; Please refer the excel sheet in excel sheet we r having multiple entry for business date and create date and we will get the age by difference of these two and we have to consider the max age which is on&amp;nbsp; business date and rest age not to be included in calculation of expression.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 06:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96543#M761915</guid>
      <dc:creator>abhinayranjan11</dc:creator>
      <dc:date>2018-08-03T06:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96544#M761916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not correct answer please reply for last thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 03:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96544#M761916</guid>
      <dc:creator>abhinayranjan11</dc:creator>
      <dc:date>2018-08-07T03:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96545#M761917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(avg(aggr(max((Age)),ISU_ID)),ISU_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best &lt;/P&gt;&lt;P&gt;Raman Rastogi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 07:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96545#M761917</guid>
      <dc:creator>raman_rastogi</dc:creator>
      <dc:date>2018-08-07T07:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96546#M761918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Abhinay,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;First of all sorry for my unavailability on time. As you mentioned your requirement in last thread, in my given sample app it is calculating Avg on age but in my second reply i have mentioned to you to use Max instead of Avg. Change in expression will be like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;if(vselectedTimeperiod='Day',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;avg(aggr(Nodistinct Max({&amp;lt;DateNum={'$(vSelectedDate)'},ISU_STAT-={'CLOSED'},ISU_TYPE={'P'}&amp;gt;}age),ISU_ID,Role)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;if(vselectedTimeperiod='90 Days',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;avg(aggr(Nodistinct Max({&amp;lt;DateNum={'&amp;gt;=$(vCQED)&amp;lt;=$(vSelectedDate)'},ISU_STAT-={'CLOSED'},ISU_TYPE={'P'}&amp;gt;}age),ISU_ID,Role)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;avg(aggr(Nodistinct Max({&amp;lt;DateNum={'&amp;gt;=$(vCMED)&amp;lt;=$(vSelectedDate)'},ISU_STAT-={'CLOSED'},ISU_TYPE={'P'}&amp;gt;}age),ISU_ID,Role))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Try this expression, this will get your&amp;nbsp; required result as per your logic mentioned in last thread.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have also attached a snapshot for reference, in which i selected one ISU_ID and some dates. &lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210076_Capture.JPG" style="height: 221px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 07:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96546#M761918</guid>
      <dc:creator>quddus_mohiuddi</dc:creator>
      <dc:date>2018-08-07T07:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96547#M761919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raman But its not working. I have correct answer for day.I need for 30 day and 90 days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 09:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96547#M761919</guid>
      <dc:creator>abhinayranjan11</dc:creator>
      <dc:date>2018-08-07T09:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding age problem for time period based on inline</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96548#M761920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply Quddus mohiuddin. Since I told I am getting correct answer for day based on inner n outer aggr in the app expression I have used.Since there is ISU_ID which is getting generated n having business date n create date and getting asssigned to assgned_USER_ID .i.e Role but their is some id which is not getting assigned on the day it is created and getting assigned to some other day.So for that day there is entry of null for role on which date it has been issued and those Id having age might getting neglected that'swhy&amp;nbsp; its not giving complete set of avg for max age.I have used Firstsortedvalue(age,_Business_date) as age but this is also returning null for the entire id except which is assigned to users on first day and again the question is if I will filter by where condition len(trim(ISU_ID))&amp;gt;0 then this will also cause problem where they need id for displaying using distinct for each ISU_ID in some other table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 10:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-age-problem-for-time-period-based-on-inline/m-p/96548#M761920</guid>
      <dc:creator>abhinayranjan11</dc:creator>
      <dc:date>2018-08-07T10:39:54Z</dc:date>
    </item>
  </channel>
</rss>

