<?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 and Setanalysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163548#M501313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I am dealing with something two difficult or too easy that I did not get answer. Hope somebody who is good in Setanalysis helps..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2011 17:14:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-21T17:14:38Z</dc:date>
    <item>
      <title>Aggr and Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163543#M501308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;After struggling for sometime and could not found the way to write the Expression with setanalysis and aggr function, I am posting this here in Forum. May be someone can help me with the Expression described in the Excel sheet attched&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.49.52/Problem-with-aggr.xls]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 10:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163543#M501308</guid>
      <dc:creator />
      <dc:date>2011-03-16T10:14:45Z</dc:date>
    </item>
    <item>
      <title>Aggr and Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163544#M501309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one is going to be difficult to troubleshoot with just that Excel sheet. Complicated Set Analysis/Aggr functions are very dependent on the data structure, so troubleshooting expressions without sample data is difficult.&lt;/P&gt;&lt;P&gt;Looking at what you have, I think you have too many Aggr functions. All of your Aggrs are on the same field MachineDefinitionId. You should be able to get rid of at least one.&lt;/P&gt;&lt;P&gt;I would try:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=sum(&lt;BR /&gt; aggr(&lt;BR /&gt; (&lt;BR /&gt; ([set (pcs/sec)]*&lt;BR /&gt; sum({&amp;lt;ProductCategory ={'G'} &amp;gt;} ActivityDuration)) -&lt;BR /&gt; sum(Output)&lt;BR /&gt; ) * StandardValueAddedTime ,&lt;BR /&gt; MachineDefinitionId)&lt;BR /&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;There are also two fields which are not within aggregate functions. Since Aggr is something like a Group By in SQL, I think you may need all other fields to be within aggregate functions. If there is only one value per MachineDefinitionId, you could use Only (otherwise, Max may be the best choice.&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=sum(&lt;BR /&gt; aggr(&lt;BR /&gt; (&lt;BR /&gt; (Only([set (pcs/sec)]) *&lt;BR /&gt; sum({&amp;lt;ProductCategory ={'G'} &amp;gt;} ActivityDuration)) -&lt;BR /&gt; sum(Output)&lt;BR /&gt; ) * Only(StandardValueAddedTime) ,&lt;BR /&gt; MachineDefinitionId)&lt;BR /&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Those are just some ideas based on your sample. What is your current expression returning? All Nulls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 14:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163544#M501309</guid>
      <dc:creator />
      <dc:date>2011-03-16T14:07:13Z</dc:date>
    </item>
    <item>
      <title>Aggr and Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163545#M501310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miller,&lt;/P&gt;&lt;P&gt;Thanks for your response. Yes I get '0' as answer, which is wrong. The main Problem lies on the following fieldvalues. If they are all same the answer is correct as in case1&lt;/P&gt;&lt;P&gt;StandardValueAddedTime, SetValueAddedTime, Std(pcs/sec) and set(pcs/sec)&lt;/P&gt;&lt;P&gt;In the first case they are same and in the second case, they are not. In firstcase, I can aggregate with the ProductCatgory= G as all the above fieldvalues are same. Hence the formula works.&lt;/P&gt;&lt;P&gt;In the second case expression, I have to aggregate with two fields according to my understanding. These are by ActivityCategory= P and also CycleActivityId to get the "Group By" as you said. I dont know how to write this in Expression.&lt;/P&gt;&lt;P&gt;If you still need Eqample, I will make an example and attach for few shifts.&lt;/P&gt;&lt;P&gt;Thanks once again&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;P&gt;Edit: The Expressions you attached did not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 15:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163545#M501310</guid>
      <dc:creator />
      <dc:date>2011-03-16T15:34:25Z</dc:date>
    </item>
    <item>
      <title>Aggr and Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163546#M501311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone Help??&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 07:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163546#M501311</guid>
      <dc:creator />
      <dc:date>2011-03-17T07:03:16Z</dc:date>
    </item>
    <item>
      <title>Aggr and Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163547#M501312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.49.52/ForumproblemCalc.qvw]&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.49.52/QlikViewConnectorForum.xlsx]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I made an example in Qlikview and also attached is the excelsheet, where the correct figures are present.&lt;/P&gt;&lt;P&gt;For shifts 20, 3173, 3176 the Minor stops and Performance calculation based on Minorstops is wrong. I need correct values for these to be equal to the excelsheet attached.&lt;/P&gt;&lt;P&gt;I need a common formula which satisfies all the shifts.&lt;/P&gt;&lt;P&gt;Hope someone has an Idea.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2011 13:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163547#M501312</guid>
      <dc:creator />
      <dc:date>2011-03-19T13:52:13Z</dc:date>
    </item>
    <item>
      <title>Aggr and Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163548#M501313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I am dealing with something two difficult or too easy that I did not get answer. Hope somebody who is good in Setanalysis helps..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 17:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Setanalysis/m-p/163548#M501313</guid>
      <dc:creator />
      <dc:date>2011-03-21T17:14:38Z</dc:date>
    </item>
  </channel>
</rss>

