<?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 and Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161156#M378544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the year/month I have selected.&amp;nbsp; Just tested it with 201605 selected.&amp;nbsp; The text box displayed 201505.&amp;nbsp; It's numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(YMOM stands for Year, Month over Month.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 23:45:36 GMT</pubDate>
    <dc:creator>jcampbell474</dc:creator>
    <dc:date>2016-08-23T23:45:36Z</dc:date>
    <item>
      <title>AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161153#M378541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get the expression below to work, but it comes to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Sum({&amp;lt; FiscalYearMonth = {"$(=vYMOM)"}&amp;gt;} WP), Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the sum of WP, aggregated by Product.&amp;nbsp; The variable is a date reference.&amp;nbsp; Is there something wrong with my syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161153#M378541</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2016-08-23T21:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161154#M378542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you get for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=vYMOM in a text box object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also how do you create FiscalYearMonth field in the script? and how is vYMOM defined? Check this post for &lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161154#M378542</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-23T21:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161155#M378543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For troubleshooting or development of Aggr() based expression I would suggest that you start with setting up a straight table with the same dimension and expression as you are using in the Aggr() function. This will visualize the aggregation and make it easier to understand the result from Aggr().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Product&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;Expression: &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt; FiscalYearMonth = {"$(=vYMOM)"}&amp;gt;} WP)&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;BR /&gt;&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;One thing to keep in mind is that the dollar expansion is done prior to the chart being calculated, so the result might not always be as you anticipated. See my related post for an example &lt;A href="https://community.qlik.com/docs/DOC-8490"&gt;Set expression and dollar expansion&lt;/A&gt;‌.&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;BR /&gt;&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;A sample QVW file would make it easier to advise on the aggregation and how to get the result you expect.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 22:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161155#M378543</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-08-23T22:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161156#M378544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the year/month I have selected.&amp;nbsp; Just tested it with 201605 selected.&amp;nbsp; The text box displayed 201505.&amp;nbsp; It's numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(YMOM stands for Year, Month over Month.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 23:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161156#M378544</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2016-08-23T23:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161157#M378545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this is working only when you make a selection? Is that consistent with what you are looking for?? Have you looked into &lt;A href="https://community.qlik.com/people/tko"&gt;tko&lt;/A&gt;‌'s advice. He has mentioned a very good exercise which I use almost every single time where I create a straight table to understand the imaginary table created by the Aggr() function to check if the table created by Aggr() is correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If nothing works, I would suggest providing a sample so that we can help you better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 00:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161157#M378545</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-24T00:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161158#M378546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that you put it like that, AGGR might not be what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Friday, I ran into a problem where values in a table were multiplied by 28 (4 weeks x 7 days) when a sum was applied in the expression.&amp;nbsp; Zero joins, but the table consists of several concatenated tables.&amp;nbsp; The data is a mix of daily and monthly records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apply filters and watch data in a table box to see what is going on and it only shows the values one time.&amp;nbsp; I.e., Not multiplied by anything or duplicated in any way.&amp;nbsp; Each value has one row/record.&amp;nbsp; I had a couple of peers look at it and they too couldn't find anything wrong.&amp;nbsp; So, I opened a case with QV tech support.&amp;nbsp; Monday, QV recommended that I use AGGR and apply a couple of dimensions.&amp;nbsp; I did and it worked...until I got to the set analysis expressions.&amp;nbsp; Now, I'm feeling like AGGR is not the right solution - possibly a band aid.&amp;nbsp; Feels more like something with the data model.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you (or anyone) have any suggestions?&amp;nbsp; Is it bad practice to concatenate daily and monthly data (both share the date field YearMonth).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's hard to diagnose issue like this without seeing the data.&amp;nbsp; Unfortunately, I cannot share the app due to sensitive company data.&amp;nbsp; Outside of sharing the application though, I'll try about anything.&amp;nbsp; I really need to get it figured out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, Toni.&amp;nbsp; Thank you for your suggestion.&amp;nbsp; I certainly see value in the exercise you described.&amp;nbsp; Per my note above, I'm feeling more and more like AGGR isn't the solution I need.&amp;nbsp; If you have any ideas, I would be grateful to hear them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 02:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161158#M378546</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2016-08-24T02:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161159#M378547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The set expression is equal to a manual change of selection. This means that the selection change is applied prior to the chart being calculated. If you expect to apply different selection on each row, this is not possible through set expression. the solution for such scenario is sometimes to introduce a flag field in the data model that selects the expected subset of rows, and gives the aggregation result for these rows. In other cases you might have to look at other ways to aggregate, perhaps by including a IF statement. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Understandable that you can not share corporate data. Is it possible for you to make a very simple data example in a excel sheet and explain what your expected results would be in a straight table format? Without any data, the answers you get will be quite vague and will not help you get forward very quickly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Btw, I am not able to find a case from you in the Qlik Support system. Perhaps you get support from a Qlik Partner? Or is the case logged under different name than yours?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List box and table box behaves the same way as dimensions in a chart. They will be presented with distinct values, i.e. once. For this reason I always work with straight table objects, and use a Count() based expression to find out the re-occurrence frequency or rows. Quick way is to enable frequency in the list box, see List Box &amp;gt; Properties &amp;gt; General tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 03:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161159#M378547</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-08-24T03:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161160#M378548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can this thread address your confidentiality concerns?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 03:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161160#M378548</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-24T03:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161161#M378549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Toni, thank you.&amp;nbsp; Using a straight table to review data for duplicates is a great suggestion/solution.&amp;nbsp; I always used a table box.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My case is: 00860770.&amp;nbsp; It's under my manager's name.&amp;nbsp; I uploaded the application Friday.&amp;nbsp; Wladimir worked on it over the weekend and Monday, suggesting that I use AGGR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 11:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161161#M378549</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2016-08-24T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161162#M378550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, I reviewed that thread.&amp;nbsp; There are too many objects, etc., that cannot be scrambled.&amp;nbsp; In addition, I think that my company would generally be displeased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the suggestion though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 11:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161162#M378550</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2016-08-24T11:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161163#M378551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see where you are coming for, but generally it is kind of difficult to help with out knowing what we are dealing with. May be not for this thread, but do read this -&amp;gt; &lt;A href="https://community.qlik.com/docs/DOC-2380"&gt;QlikCommunity Tip: How to get answers to your post?&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 12:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161163#M378551</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-24T12:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161164#M378552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Toni, your advice solved my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probably should have known about a table box only showing distinct values.&amp;nbsp; Kept looking everywhere for duplicate records (as did my peers and apparently QV support), but never found any.&amp;nbsp; Used a straight table w/a count and bam - the dupes appeared.&amp;nbsp; It just took a simple load distinct to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was really scratching my head as it didn't look 'natural' to not see duplicate records but see expressions that indicate duplication exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate your and Sunny's assistance.&amp;nbsp; Many, many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 15:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-and-Set-Analysis/m-p/1161164#M378552</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2016-08-24T15:12:48Z</dc:date>
    </item>
  </channel>
</rss>

