<?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: Need help with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045464#M635865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly! &lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 13:36:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-03T13:36:09Z</dc:date>
    <item>
      <title>Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045460#M635860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;Here is my problem: I have two dimensions, A and B, and I have data C: C=AxB (there is C value for each pair (A,B)). Also, I have a formula: KPI=A*1000/(C*10*B). So, I have to get A-values, for which KPI, calcuted with grouping by B field, is MAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to calculate MAX KPI grouping by B field:&lt;/P&gt;&lt;P&gt;=aggr(max(aggr(A*1000/(C*9.81*B),A,B)),B),&lt;/P&gt;&lt;P&gt;but how to get B value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 08:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045460#M635860</guid>
      <dc:creator />
      <dc:date>2016-04-29T08:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045461#M635861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some sample data with expected output to try out what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 17:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045461#M635861</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-29T17:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045462#M635862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sunny T!&lt;/P&gt;&lt;P&gt;Thak you for your attention!&lt;/P&gt;&lt;P&gt;First thing I have to edit my question: " &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;but how to get &lt;STRONG style="text-decoration: underline;"&gt;A&lt;/STRONG&gt; value?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the data to load:&lt;/P&gt;&lt;P&gt;LOAD A, B, C,&lt;/P&gt;&lt;P&gt;A*1000/(C*9.81*B) as KPI&lt;/P&gt;&lt;P&gt;INLINE&lt;/P&gt;&lt;P&gt;[A, B, C&lt;/P&gt;&lt;P&gt;20, 8, 312&lt;/P&gt;&lt;P&gt;20.5, 8, 321&lt;/P&gt;&lt;P&gt;21, 8, 330&lt;/P&gt;&lt;P&gt;20, 8.5, 294&lt;/P&gt;&lt;P&gt;20.5, 8.5, 300.5&lt;/P&gt;&lt;P&gt;21, 8.5, 307&lt;/P&gt;&lt;P&gt;20, 9, 275&lt;/P&gt;&lt;P&gt;20.5, 9, 282&lt;/P&gt;&lt;P&gt;21, 9, 289]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided to calculated KPI already in script.&lt;/P&gt;&lt;P&gt;So here is what we have (pivot table for better understanding). I want to get something like this:&lt;/P&gt;&lt;P&gt;newA newB&lt;/P&gt;&lt;P&gt;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8,5&lt;/P&gt;&lt;P&gt;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&lt;/P&gt;&lt;P&gt;I need newA and newB for my linear diagram.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123392_test.png" style="height: 308px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 11:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045462#M635862</guid>
      <dc:creator />
      <dc:date>2016-05-03T11:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045463#M635863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking for this?&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/123410_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;STRONG&gt;Max(TOTAL &amp;lt;B&amp;gt; KPI)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 12:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045463#M635863</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-03T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045464#M635865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly! &lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 13:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045464#M635865</guid>
      <dc:creator />
      <dc:date>2016-05-03T13:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045465#M635867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the Correct Answer and possible Helpful Answers.&lt;/P&gt;&lt;P&gt;If not, please make clear what part of this topic you still want discussion on &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 14:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045465#M635867</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-05-03T14:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045466#M635868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thanks for help once more:) But I still can't build what I want..&lt;/P&gt;&lt;P&gt;My purpose is a linear diagram: horizontal axis(dimension) - B, and expression should return optimal A (A, where we have max(KPI) grouping by B). &lt;/P&gt;&lt;P&gt;Output for sample data I gave above mentioned to be like this (in numeric view): &lt;/P&gt;&lt;P&gt;B - 8, A - 20 &lt;/P&gt;&lt;P&gt;B - 8.5, A - 21&lt;/P&gt;&lt;P&gt;B - 9, A - 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 14:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045466#M635868</guid>
      <dc:creator />
      <dc:date>2016-05-04T14:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045467#M635869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&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/123560_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: B&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;=FirstSortedValue(A, -KPI)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;=Max(KPI)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 16:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045467#M635869</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-04T16:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045468#M635870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! Now it works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 10:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/1045468#M635870</guid>
      <dc:creator />
      <dc:date>2016-05-05T10:45:53Z</dc:date>
    </item>
  </channel>
</rss>

