<?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 Using several aggregations in one expression, need help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-several-aggregations-in-one-expression-need-help/m-p/1287025#M402885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue with an expression, maybe someone can help me with it.&lt;/P&gt;&lt;P&gt;My example data set consists of products, which have several series. First series is something I am interested in. In every series a product can have several colors. For each color there are some process steps that should be completed, every process step has a status.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="data set.jpg" class="image-5 jive-image" src="/legacyfs/online/145731_data set.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I need to define the minimum status for every process step. The calculation should be dynamic depending on what product color I select, though always be based on first series.&lt;/P&gt;&lt;P&gt;If we take a look at the product 273 &lt;STRONG&gt;without color selection&lt;/STRONG&gt;, then we have following set (step: min status)&lt;/P&gt;&lt;P&gt;200:3&lt;/P&gt;&lt;P&gt;205:3&lt;/P&gt;&lt;P&gt;210:3&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;390:4&lt;/P&gt;&lt;P&gt;395:4&lt;/P&gt;&lt;P&gt;400:5&lt;/P&gt;&lt;P&gt;405:5&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;490:6&lt;/P&gt;&lt;P&gt;500:6&lt;/P&gt;&lt;P&gt;In the expression I need to show the "&lt;STRONG&gt;jumps&lt;/STRONG&gt;" of the statuses, at what process step the status changes so to say. Thus my expression should give following result if no color is selected: &lt;STRONG&gt;3:200, 4:390, 5:400, 6:490&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expr to be no color.jpg" class="jive-image image-2" src="/legacyfs/online/145720_expr to be no color.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select &lt;STRONG&gt;blue&lt;/STRONG&gt;, then my set changes to 200: 4, 205: 4, ..400:5, 410:5, ..., 490:6, 500:6 and the "jumps" look like this &lt;STRONG&gt; 4:200, 5:400, 6:490&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example blue.jpg" class="jive-image image-1" src="/legacyfs/online/145719_example blue.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The same way the result will look like if I select &lt;STRONG&gt;red&lt;/STRONG&gt; color, since the process steps and status are identical with blue:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expr to be blue color.jpg" class="jive-image image-3" src="/legacyfs/online/145721_expr to be blue color.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is important, that dimension of the chart is only the product id, so that I have always one line per product.&lt;/P&gt;&lt;P&gt;That is why I use aggr() function, but unfortunately I can only get the minimum process step per each status which results 4:200 instead of the right 4:390. I also have a problem with nulls.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4 200 wrong.jpg" class="image-4 jive-image" src="/legacyfs/online/145730_4 200 wrong.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I thought on having an if clause for process step to be greater than the maximum process step of the previous status, but I get an "nested aggregation is not possible" error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an .qvw example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I could explain it so that everyone can understand what the result should look like. I look forward to your hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2016 10:31:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-06T10:31:34Z</dc:date>
    <item>
      <title>Using several aggregations in one expression, need help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-several-aggregations-in-one-expression-need-help/m-p/1287025#M402885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue with an expression, maybe someone can help me with it.&lt;/P&gt;&lt;P&gt;My example data set consists of products, which have several series. First series is something I am interested in. In every series a product can have several colors. For each color there are some process steps that should be completed, every process step has a status.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="data set.jpg" class="image-5 jive-image" src="/legacyfs/online/145731_data set.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I need to define the minimum status for every process step. The calculation should be dynamic depending on what product color I select, though always be based on first series.&lt;/P&gt;&lt;P&gt;If we take a look at the product 273 &lt;STRONG&gt;without color selection&lt;/STRONG&gt;, then we have following set (step: min status)&lt;/P&gt;&lt;P&gt;200:3&lt;/P&gt;&lt;P&gt;205:3&lt;/P&gt;&lt;P&gt;210:3&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;390:4&lt;/P&gt;&lt;P&gt;395:4&lt;/P&gt;&lt;P&gt;400:5&lt;/P&gt;&lt;P&gt;405:5&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;490:6&lt;/P&gt;&lt;P&gt;500:6&lt;/P&gt;&lt;P&gt;In the expression I need to show the "&lt;STRONG&gt;jumps&lt;/STRONG&gt;" of the statuses, at what process step the status changes so to say. Thus my expression should give following result if no color is selected: &lt;STRONG&gt;3:200, 4:390, 5:400, 6:490&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expr to be no color.jpg" class="jive-image image-2" src="/legacyfs/online/145720_expr to be no color.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select &lt;STRONG&gt;blue&lt;/STRONG&gt;, then my set changes to 200: 4, 205: 4, ..400:5, 410:5, ..., 490:6, 500:6 and the "jumps" look like this &lt;STRONG&gt; 4:200, 5:400, 6:490&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example blue.jpg" class="jive-image image-1" src="/legacyfs/online/145719_example blue.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The same way the result will look like if I select &lt;STRONG&gt;red&lt;/STRONG&gt; color, since the process steps and status are identical with blue:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expr to be blue color.jpg" class="jive-image image-3" src="/legacyfs/online/145721_expr to be blue color.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is important, that dimension of the chart is only the product id, so that I have always one line per product.&lt;/P&gt;&lt;P&gt;That is why I use aggr() function, but unfortunately I can only get the minimum process step per each status which results 4:200 instead of the right 4:390. I also have a problem with nulls.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4 200 wrong.jpg" class="image-4 jive-image" src="/legacyfs/online/145730_4 200 wrong.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I thought on having an if clause for process step to be greater than the maximum process step of the previous status, but I get an "nested aggregation is not possible" error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an .qvw example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I could explain it so that everyone can understand what the result should look like. I look forward to your hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 10:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-several-aggregations-in-one-expression-need-help/m-p/1287025#M402885</guid>
      <dc:creator />
      <dc:date>2016-12-06T10:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using several aggregations in one expression, need help</title>
      <link>https://community.qlik.com/t5/QlikView/Using-several-aggregations-in-one-expression-need-help/m-p/1287026#M402886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I fixed it on my own, got the minimum status for each process step and the worked with string functions looking for the first occurrence of each status &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-several-aggregations-in-one-expression-need-help/m-p/1287026#M402886</guid>
      <dc:creator />
      <dc:date>2016-12-12T12:05:56Z</dc:date>
    </item>
  </channel>
</rss>

