<?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: Set Analysis problem in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285479#M87497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to get it right. I had to use the sum on the quantity combined with PROPERTY and PROPERTY_VALUE to get the correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the end the Statement Looks like:&lt;/P&gt;&lt;P&gt;Sum(Aggr(If( (PROPERTY_VALUE &amp;gt;= ADAPTATION_DEFAULT_LL) And&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PROPERTY_VALUE &amp;lt;= ADAPTATION_DEFAULT_UL), Sum(QUANTITY) ), PROPERTY, PROPERTY_VALUE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's a lot for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2016 16:30:00 GMT</pubDate>
    <dc:creator>dirk_fischer</dc:creator>
    <dc:date>2016-11-22T16:30:00Z</dc:date>
    <item>
      <title>Set Analysis problem</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285473#M87491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling with a set analysis challenge again and hope, somebody can help me out. I have defined a table, where I have measurements for a product and the corresponding upper and lower limits, where the measurements have to be for the product to be a good product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In parallel, I have counted how often a specific value for the measurement occurs. Now I try find out how many products were in tolerance (good quality) and how many products were out of tolerance (bad Quality).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;PROPERTY_VALUE={"&amp;gt;=$(=Max(ADAPTATION_DEFAULT_LL)) &amp;lt;=$(=Max(ADAPTATION_DEFAULT_UL))"}&amp;gt;} QUANTITY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;PROPERTY_VALUE={"&amp;gt;=$(=Only(ADAPTATION_DEFAULT_LL)) &amp;lt;=$(=Only(ADAPTATION_DEFAULT_UL))"}&amp;gt;} QUANTITY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;should do the trick, but unfortunately it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use Only(ADAPTATION_DEFAULT_LL) in the same table, it shows the proper values for the lower limit of the corresponding measurement, but using it in the set Analysis does not come up with the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use something hardcoded like&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;PROPERTY_VALUE={"&amp;gt;=0 &amp;lt;=20"}&amp;gt;} QUANTITY&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everything is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have an idea, what's wrong with my statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already in advance, I want to thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285473#M87491</guid>
      <dc:creator>dirk_fischer</dc:creator>
      <dc:date>2016-11-21T15:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis problem</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285474#M87492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shouldn't it be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;PROPERTY_VALUE={"&amp;gt;=$(=Min(ADAPTATION_DEFAULT_LL)) &amp;lt;=$(=Max(ADAPTATION_DEFAULT_UL))"}&amp;gt;} QUANTITY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285474#M87492</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-11-21T15:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis problem</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285475#M87493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this in a text box object give you 0&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;STRONG&gt;=Max(ADAPTATION_DEFAULT_LL)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this gives you 20?&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;STRONG&gt;=Max(ADAPTATION_DEFAULT_UL)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285475#M87493</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T16:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis problem</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285476#M87494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get 0 for =Max(ADAPTATION_DEFAULT_LL) if I use it in the same table as additional key figuer and 20 for =Max(ADAPTATION_DEFAULT_UL) if I use it in the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a textbox, I get 50 as expected, because I have more than one measurement, if I don't select a specific measurement. But you're right, it's working correctly, if I select a measurement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, as long as nothing is selected, I want to display the results for all measurements with their default tolerances and then in a second step build up a selection panel for upper and lower tolerance, valid only for one measurement to allow playing around and doing some simulations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have only one "possible" combination of upper and lower Limit per measurement. Is there a way to use the P() function for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285476#M87494</guid>
      <dc:creator>dirk_fischer</dc:creator>
      <dc:date>2016-11-21T16:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis problem</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285477#M87495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it seems that you have limits which are dependent on your dimension. In this case, set analysis will not work because set analysis is evaluated once per chart. You will need to use Aggr() function with if statement to get this accomplished&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PROPERTY_VALUE = &amp;gt;= ADAPTATION_DEFAULT_LL and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PROPERTY_VALUE &amp;lt;= &lt;/SPAN&gt;ADAPTATION_DEFAULT_UL, QUANTITY&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;), &lt;SPAN style="color: #ff0000;"&gt;Dimensions&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what Dimensions you need here, but the general idea is to use Aggr() with if statement above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285477#M87495</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T16:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis problem</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285478#M87496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's the general setup. The (sensor) measurement is the dimension and has an upper and lower tolerance value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to figure out, what dimensions I have to use. But that's something for tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will let you know, if I found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, thank's a lot for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285478#M87496</guid>
      <dc:creator>dirk_fischer</dc:creator>
      <dc:date>2016-11-21T16:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis problem</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285479#M87497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to get it right. I had to use the sum on the quantity combined with PROPERTY and PROPERTY_VALUE to get the correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the end the Statement Looks like:&lt;/P&gt;&lt;P&gt;Sum(Aggr(If( (PROPERTY_VALUE &amp;gt;= ADAPTATION_DEFAULT_LL) And&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PROPERTY_VALUE &amp;lt;= ADAPTATION_DEFAULT_UL), Sum(QUANTITY) ), PROPERTY, PROPERTY_VALUE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's a lot for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 16:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Set-Analysis-problem/m-p/1285479#M87497</guid>
      <dc:creator>dirk_fischer</dc:creator>
      <dc:date>2016-11-22T16:30:00Z</dc:date>
    </item>
  </channel>
</rss>

