<?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: Aggr syntax help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-syntax-help/m-p/109344#M509686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2018 22:01:11 GMT</pubDate>
    <dc:creator>cbaqir</dc:creator>
    <dc:date>2018-10-02T22:01:11Z</dc:date>
    <item>
      <title>Aggr syntax help</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-syntax-help/m-p/109343#M509685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have a requirement to show avg number of days from when a generic build resource is populated to when a named resource is populated PER DEFECT_ID.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Generic resources = &lt;SPAN style="color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;RESOURCE with a&amp;nbsp; "_" in the name like clindoc_builder.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;STRONG&gt;Requirement: if no "_" (generic) resource, use start date of RES_STATUS = "ERC - Resourcing" to first date name is populated&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="comment-list__comments" style="color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; box-sizing: border-box; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-size-adjust: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;DIV class="list-row comment-item" data-row-id="2818954" style="padding: 8px 0px 0px;"&gt;&lt;DIV class="comment-item__container" style="padding: 1px 0px 0px;"&gt;&lt;DIV class="comment-item__content" style="padding-left: 48px; font-size: 1rem;"&gt;&lt;DIV class="reset comment-item__body markdown" style="padding: 1px 0px 0px; font-size: 1rem; background-color: #fafafa;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FACT_ALM_DEFECT_RESOURCE.RESOURCE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'*_*'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FACT_ALM_DEFECT_RESOURCE.START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=0,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FACT_ALM_DEFECT_RESOURCE.START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'MM/DD/YY')-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RES_STATUS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'ERC - Resourcing'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RES_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FACT_ALM_DEFECT_RESOURCE.RESOURCE TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FACT_ALM_DEFECT_RESOURCE.RESOURCE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; ),&lt;BR /&gt;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FACT_ALM_DEFECT_RESOURCE.RESOURCE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'*_*'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FACT_ALM_DEFECT_RESOURCE.START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'MM/DD/YY')-&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FACT_ALM_DEFECT_RESOURCE.START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'MM/DD/YY'),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&amp;nbsp; ))&lt;BR /&gt; /&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG style=": ; widows: 2; text-indent: 0px; letter-spacing: normal; font-variant-caps: normal; font-style: normal; background-color: #ffffff; font-variant-ligatures: normal; display: inline !important; text-decoration-color: initial; float: none; text-decoration-style: initial; orphans: 2; color: #000000; text-transform: none; font-size: 12pt; white-space: normal; font-family: 'Open Sans', sans-serif; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;The aggr looks right but the calculation for DEFECT_ID 9986 should be 16 days - 4/25/18-5/11/18 - NOT 8 or 24.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="widows: 2; text-indent: 0px; letter-spacing: normal; font-variant-caps: normal; font-style: normal; background-color: #ffffff; font-variant-ligatures: normal; display: inline !important; text-decoration-color: initial; font-weight: normal; float: none; text-decoration-style: initial; orphans: 2; color: #000000; text-transform: none; font-size: 8pt; white-space: normal; font-family: 'Open Sans', sans-serif; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;IMG alt="2018-09-25_12-48-25.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214444_2018-09-25_12-48-25.jpg" style="width: 620px; height: 165px;" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="widows: 2; text-indent: 0px; letter-spacing: normal; font-variant-caps: normal; font-style: normal; background-color: #ffffff; font-variant-ligatures: normal; display: inline !important; text-decoration-color: initial; font-weight: normal; float: none; text-decoration-style: initial; orphans: 2; color: #000000; text-transform: none; font-size: 12pt; white-space: normal; font-family: 'Open Sans', sans-serif; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;STRONG&gt;This should only show 16:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="widows: 2; text-indent: 0px; letter-spacing: normal; font-variant-caps: normal; font-style: normal; background-color: #ffffff; font-variant-ligatures: normal; display: inline !important; text-decoration-color: initial; font-weight: normal; float: none; text-decoration-style: initial; orphans: 2; color: #000000; text-transform: none; font-size: 8pt; white-space: normal; font-family: 'Open Sans', sans-serif; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;IMG alt="2018-09-25_12-49-17.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/214451_2018-09-25_12-49-17.jpg" style="width: 620px; height: 195px;" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-syntax-help/m-p/109343#M509685</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2018-09-25T19:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr syntax help</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-syntax-help/m-p/109344#M509686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 22:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-syntax-help/m-p/109344#M509686</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2018-10-02T22:01:11Z</dc:date>
    </item>
  </channel>
</rss>

