<?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 AGGR Syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306416#M406611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should be a simple answer (I hope).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select PP_NAME = Vasoactive Agents (Pressors), the Usage chart shows 1226 but the table shows 1226 for each Domain with a total of 2452.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The counts per domain should be CAREB = 765 and ECISA = 461 for a total of 1226&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's wrong with my syntax for Usage Count?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&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;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CNT_USAGE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DOMAIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GOVERNING_CCG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PP_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LAST_REVIEW_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jun 2017 21:16:41 GMT</pubDate>
    <dc:creator>cbaqir</dc:creator>
    <dc:date>2017-06-16T21:16:41Z</dc:date>
    <item>
      <title>AGGR Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306416#M406611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should be a simple answer (I hope).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select PP_NAME = Vasoactive Agents (Pressors), the Usage chart shows 1226 but the table shows 1226 for each Domain with a total of 2452.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The counts per domain should be CAREB = 765 and ECISA = 461 for a total of 1226&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's wrong with my syntax for Usage Count?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&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;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CNT_USAGE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DOMAIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GOVERNING_CCG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PP_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LAST_REVIEW_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306416#M406611</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-16T21:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306417#M406612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you getting this 765 for CAREB? I tried in your document, it shows 1226? Can you tell me how i can see 765?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306417#M406612</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-16T21:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306418#M406613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did a pivot table on the raw data. Maybe there's an issue with my join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306418#M406613</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-16T21:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306419#M406614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you knwow CAREB should be 765 and ECISA should be 461?&amp;nbsp; Looking at your tables in your data model I don't see what would tell me that.&lt;/P&gt;&lt;P&gt;The join between your EKG_PP and your Usage tables don't take into account the Domain so your total is doubling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306419#M406614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-16T21:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306420#M406615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="6-16-2017 2-50-27 PM.jpg" class="jive-image image-1" src="/legacyfs/online/167172_6-16-2017 2-50-27 PM.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306420#M406615</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-16T21:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306421#M406616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a pivot table in Excel, your data source would be 1 big table.&amp;nbsp; But that's not what your data model looks like in Qlikview.&amp;nbsp; You have the usage and Domain in 2 different tables.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Looking at your script you're taking the 1 excel table and making multiple Qlikview tables but without all the appropriate keys.&lt;/P&gt;&lt;P&gt;In your script, you should create a composite key in your tables of VERSION_PW_CAT_ID &amp;amp; '|' &amp;amp; DOMAIN as %Key&lt;/P&gt;&lt;P&gt;(or better yet, autonumber(&lt;SPAN style="font-size: 13.3333px;"&gt;VERSION_PW_CAT_ID &amp;amp; '|' &amp;amp; DOMAIN) as %Key&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or something similar.&lt;/P&gt;&lt;P&gt;And remove VERSION_PW_CAT_ID from your usage table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306421#M406616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-16T21:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306422#M406617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you figure this out?&lt;/P&gt;&lt;P&gt;If so, please close the thread by marking a reply as correct even if it's your own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 20:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Syntax/m-p/1306422#M406617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-12T20:19:31Z</dc:date>
    </item>
  </channel>
</rss>

