<?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() function (merging values in table) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844542#M995516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;Is this what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="AggrData.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91187_AggrData.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the straight table and use Material as Dimension and Sum(# Changes) as expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 15:34:27 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2015-06-29T15:34:27Z</dc:date>
    <item>
      <title>Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844541#M995515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to merge rows from a table that all have the same values in one of the columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Material, Order, # of Changes&lt;/P&gt;&lt;P&gt;4456,210412,0&lt;/P&gt;&lt;P&gt;4456,201443,3&lt;/P&gt;&lt;P&gt;4406,123456,5&lt;/P&gt;&lt;P&gt;4406,203034,2&lt;/P&gt;&lt;P&gt;4456,203530.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result I want is:&lt;/P&gt;&lt;P&gt;Material, Order, # of Changes&lt;/P&gt;&lt;P&gt;4456,(this column will be hidden),4&lt;/P&gt;&lt;P&gt;4406,(""),7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to see the # of changes for each material, but I have to include the order somehow or else the # of changes is a ridiculously high number. Any help would be lovely!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 14:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844541#M995515</guid>
      <dc:creator />
      <dc:date>2015-06-29T14:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844542#M995516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;Is this what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="AggrData.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91187_AggrData.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the straight table and use Material as Dimension and Sum(# Changes) as expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 15:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844542#M995516</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-06-29T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844543#M995517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why should the number of changes be ridiculous high? Do you have duplicate lines that you need to take care of somehow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is your request already fulfilled by what vishsaggi suggested?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 15:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844543#M995517</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-29T15:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844544#M995518</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;It says there is an error when I do that. The # of Changes is an expression: if((count(distinct([Promise Date]))-1)&amp;gt;=0,(count(distinct([Promise Date]))-1),'-')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I have Material and Order as dimensions and # of Changes as expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 15:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844544#M995518</guid>
      <dc:creator />
      <dc:date>2015-06-29T15:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844545#M995519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use total &amp;lt;&amp;gt; that way you do not have to include the order field to the table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum(total &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Material&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;# of Changes&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 15:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844545#M995519</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-06-29T15:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844546#M995520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just replied to vishsaggi's response, but my expression for # of Changes is if((count(distinct([Promise Date]))-1)&amp;gt;=0,(count(distinct([Promise Date]))-1),'-')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am counting the number of changed dates for each order, which ends up being around 4000 for my data set, but when I do just materials and number of date changes, it comes out to over 50000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 15:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844546#M995520</guid>
      <dc:creator />
      <dc:date>2015-06-29T15:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844547#M995521</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;I tried that but it keeps telling me that nesting aggregation is not allowed. Are you saying to do &lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(total &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Material&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; [&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;# of Changes&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;]) with the expressions in place of # of Changes?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 15:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844547#M995521</guid>
      <dc:creator />
      <dc:date>2015-06-29T15:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844548#M995522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM( AGGR(&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; if((count(distinct([Promise Date]))-1)&amp;gt;=0,(count(distinct([Promise Date]))-1),'-')&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;,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Material, Order))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 16:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844548#M995522</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-29T16:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844549#M995523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assumed the &lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; "&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;# of Changes" was a field, in your case it is better to use an aggr, believe Swuehl, already provided the expression &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 16:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844549#M995523</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-06-29T16:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844550#M995524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Ramon, I thought that is the field. I believe what Swuehl expression should give you what you are looking for. If you still have issues please upload your qvw sample will be easy to work on it quickly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 16:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844550#M995524</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-06-29T16:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function (merging values in table)</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844551#M995525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked! Thank you so much for your help! I really appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 16:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-merging-values-in-table/m-p/844551#M995525</guid>
      <dc:creator />
      <dc:date>2015-06-29T16:19:19Z</dc:date>
    </item>
  </channel>
</rss>

