<?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 Set analysis in Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Straight-Table/m-p/498923#M554501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am trying to pull a value into a straight table based on certain criteria.&amp;nbsp; In the expression tab, I have the following statement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style=": ; font-size: 1;"&gt;&lt;P&gt;=&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Metric_Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=MetricFlag = Metric_Num"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt; * &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Start_Size&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(Size) &amp;gt;= [Start_Size]"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;*&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;End_Size&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(Size) &amp;lt;= [End_Size]"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Percentile - 25th]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The values are coming from three separate tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;P&gt;Profit Center #&lt;/P&gt;&lt;P&gt;Size_Num&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B:&lt;/P&gt;&lt;P&gt;MetricID&lt;/P&gt;&lt;P&gt;MetricName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table C:&lt;/P&gt;&lt;P&gt;Metric_Num&lt;/P&gt;&lt;P&gt;Start_Size&lt;/P&gt;&lt;P&gt;End_Size&lt;/P&gt;&lt;P&gt;Percentile-25th&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using some variables in the set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MetricFlag: = MetricID that the user selected&lt;/P&gt;&lt;P&gt;Size: Avg(SizeNum) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement is supposed to pull the value from the Percentile-25th column (in table C) where:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Metric_Num = MetricID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Size &amp;gt;= Start_Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Size &amp;lt;= End_Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select one profit center only, I get the correct result.&amp;nbsp; When I don't have a specific profit center selected, all of the lines in the straight table show the same value in this field.&amp;nbsp; How do I get the straight table to look at the profit centers separately when computing this field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Aug 2013 23:07:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-15T23:07:46Z</dc:date>
    <item>
      <title>Set analysis in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Straight-Table/m-p/498923#M554501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am trying to pull a value into a straight table based on certain criteria.&amp;nbsp; In the expression tab, I have the following statement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style=": ; font-size: 1;"&gt;&lt;P&gt;=&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Metric_Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=MetricFlag = Metric_Num"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt; * &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Start_Size&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(Size) &amp;gt;= [Start_Size]"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;*&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;End_Size&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(Size) &amp;lt;= [End_Size]"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Percentile - 25th]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The values are coming from three separate tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;P&gt;Profit Center #&lt;/P&gt;&lt;P&gt;Size_Num&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B:&lt;/P&gt;&lt;P&gt;MetricID&lt;/P&gt;&lt;P&gt;MetricName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table C:&lt;/P&gt;&lt;P&gt;Metric_Num&lt;/P&gt;&lt;P&gt;Start_Size&lt;/P&gt;&lt;P&gt;End_Size&lt;/P&gt;&lt;P&gt;Percentile-25th&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using some variables in the set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MetricFlag: = MetricID that the user selected&lt;/P&gt;&lt;P&gt;Size: Avg(SizeNum) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement is supposed to pull the value from the Percentile-25th column (in table C) where:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Metric_Num = MetricID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Size &amp;gt;= Start_Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Size &amp;lt;= End_Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select one profit center only, I get the correct result.&amp;nbsp; When I don't have a specific profit center selected, all of the lines in the straight table show the same value in this field.&amp;nbsp; How do I get the straight table to look at the profit centers separately when computing this field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 23:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-Straight-Table/m-p/498923#M554501</guid>
      <dc:creator />
      <dc:date>2013-08-15T23:07:46Z</dc:date>
    </item>
  </channel>
</rss>

