<?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: lookup value from a different table that has no joins in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/lookup-value-from-a-different-table-that-has-no-joins/m-p/1368993#M30850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this(assuming Category is your dimension)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Max(Aggr(If(Sum(PositiveAnswer)/Count(AnswerId) &amp;gt;= Score, Percentile), Category, Score))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this (assuming Year is your dimension)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Max(Aggr(If(Sum(PositiveAnswer)/Count(AnswerId) &amp;gt;= Score, Percentile), Year, Score))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this (assuming Category and Year as dimensions)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Max(Aggr(If(Sum(PositiveAnswer)/Count(AnswerId) &amp;gt;= Score, Percentile), Category, Year, Score))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165418_Capture.PNG" style="height: 233px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2017 18:13:45 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-31T18:13:45Z</dc:date>
    <item>
      <title>lookup value from a different table that has no joins</title>
      <link>https://community.qlik.com/t5/App-Development/lookup-value-from-a-different-table-that-has-no-joins/m-p/1368992#M30849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a chart, I'm trying to find any way to either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) lookup the Percentile range where a calculated aggregate score falls in a table that has a list of Percentiles and the Scores to be compared to.&amp;nbsp; I want the max percentile where the calculated score is &amp;lt; the percentile score from the table.&amp;nbsp; See sample data below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or 2) since the calculated score is displayed in a bar chart is there any way to use for example the Above(&amp;lt;score formula&amp;gt;, 0) or something like the Column function in the formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary problem is when I have a working formula, the calculated score is only calculated once per chart rather than for each dimension.&amp;nbsp; Each dimension is already displaying the calculated score which is why I was hoping something like Above(&amp;lt;score formula&amp;gt;, 0) could work but I haven't had any success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some very simplified data.&amp;nbsp; As an example, the calculated score would be something like Sum(PositiveAnswer)/Count(AnswerId).&amp;nbsp; That measure would display in a bar chart and then we need another measure showing the Percentile it falls in.&amp;nbsp; So the calculated score needs to be compared to the Score in the Percentiles table to get the Max(Percentile) where the calculated score is less than the Percentile score.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been at this for days!&amp;nbsp; Any help or suggestions is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Percentiles]:&lt;BR /&gt;LOAD * Inline&lt;BR /&gt;[Percentile, Score&lt;BR /&gt;1,0.1&lt;BR /&gt;2,0.5&lt;BR /&gt;3,0.6&lt;BR /&gt;4,0.8&lt;BR /&gt;5,0.9];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Answers]:&lt;BR /&gt;LOAD * Inline&lt;BR /&gt;[AnswerId, PositiveAnswer, Year, Category&lt;BR /&gt;1,1,2016,A&lt;BR /&gt;2,0,2016,A&lt;BR /&gt;3,1,2016,A&lt;BR /&gt;4,1,2016,A&lt;BR /&gt;5,1,2016,A&lt;BR /&gt;6,1,2016,A&lt;BR /&gt;7,0,2016,A&lt;BR /&gt;8,0,2016,A&lt;BR /&gt;9,0,2016,A&lt;BR /&gt;10,1,2016,A&lt;BR /&gt;11,1,2016,A&lt;BR /&gt;12,0,2016,A&lt;BR /&gt;13,1,2016,A&lt;BR /&gt;14,1,2016,B&lt;BR /&gt;15,1,2016,B&lt;BR /&gt;16,1,2016,B&lt;BR /&gt;17,0,2016,B&lt;BR /&gt;18,0,2016,B&lt;BR /&gt;19,0,2016,B&lt;BR /&gt;20,1,2016,A&lt;BR /&gt;21,1,2017,A&lt;BR /&gt;22,0,2017,A&lt;BR /&gt;23,1,2017,A&lt;BR /&gt;24,1,2017,A&lt;BR /&gt;25,1,2017,A&lt;BR /&gt;26,1,2017,A&lt;BR /&gt;27,0,2017,A&lt;BR /&gt;28,0,2017,A&lt;BR /&gt;29,0,2017,A&lt;BR /&gt;30,1,2017,A&lt;BR /&gt;31,1,2017,A&lt;BR /&gt;32,0,2017,A&lt;BR /&gt;33,1,2017,A&lt;BR /&gt;34,1,2017,B&lt;BR /&gt;35,1,2017,B&lt;BR /&gt;36,1,2017,B&lt;BR /&gt;37,0,2017,B&lt;BR /&gt;38,0,2017,B&lt;BR /&gt;39,0,2017,B&lt;BR /&gt;40,1,2017,A];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 17:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/lookup-value-from-a-different-table-that-has-no-joins/m-p/1368992#M30849</guid>
      <dc:creator />
      <dc:date>2017-05-31T17:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: lookup value from a different table that has no joins</title>
      <link>https://community.qlik.com/t5/App-Development/lookup-value-from-a-different-table-that-has-no-joins/m-p/1368993#M30850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this(assuming Category is your dimension)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Max(Aggr(If(Sum(PositiveAnswer)/Count(AnswerId) &amp;gt;= Score, Percentile), Category, Score))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this (assuming Year is your dimension)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Max(Aggr(If(Sum(PositiveAnswer)/Count(AnswerId) &amp;gt;= Score, Percentile), Year, Score))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this (assuming Category and Year as dimensions)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Max(Aggr(If(Sum(PositiveAnswer)/Count(AnswerId) &amp;gt;= Score, Percentile), Category, Year, Score))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165418_Capture.PNG" style="height: 233px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 18:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/lookup-value-from-a-different-table-that-has-no-joins/m-p/1368993#M30850</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-31T18:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: lookup value from a different table that has no joins</title>
      <link>https://community.qlik.com/t5/App-Development/lookup-value-from-a-different-table-that-has-no-joins/m-p/1368994#M30851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.&amp;nbsp; That worked great.&amp;nbsp; I tried to use Aggr but couldn't figure out the proper way to use it.&amp;nbsp; Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 19:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/lookup-value-from-a-different-table-that-has-no-joins/m-p/1368994#M30851</guid>
      <dc:creator />
      <dc:date>2017-05-31T19:36:16Z</dc:date>
    </item>
  </channel>
</rss>

