<?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: Ask for Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136395#M754122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you want to see the result? text object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2018 03:54:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-05T03:54:30Z</dc:date>
    <item>
      <title>Ask for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136394#M754120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 466px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="64"&gt;ITEM_ID&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;PART_ID&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none; text-align: right;" width="124"&gt;DATE&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;AVG_RH&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="150"&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="150"&gt;Calculation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;12-Feb-2018&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;7288.21&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;9505.7 - 7288.21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;14-Feb-2018&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;7288.21&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;9505.7 - 7288.21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;06-Jun-2018&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;8726.46&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;9505.7 - 7288.21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;13-Aug-2018&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;9505.7&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;9505.7 - 7288.21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;05-Jan-2018&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;6732.4&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;"&gt;7288.21-6732.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;22-Jan-2018&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;7060.95&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;7288.21-6732.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;29-Jan-2018&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;7162.55&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;7288.21-6732.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;05-Feb-2018&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;7267.1&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;7288.21-6732.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;12-Feb-2018&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;7288.21&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;7288.21-6732.4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get AVG_RH value in max(DATE) and Min(DATE) for each ITEM_ID and PART_ID.&lt;/P&gt;&lt;P&gt;For example ITEM_ID = P and PART_ID = P1&lt;/P&gt;&lt;P&gt;I want to get AVG RH in MAX DATE (13-Aug-2018) and MIN DATE(12-FEB-2018) so the result must be in Calculation column above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136394#M754120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ask for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136395#M754122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you want to see the result? text object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 03:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136395#M754122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-05T03:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ask for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136396#M754125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is avg rh coming&amp;nbsp; from back end or you are calculating it at front end???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 05:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136396#M754125</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2018-10-05T05:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ask for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136397#M754126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way? Not tested - But this may work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(DATE=Max(TOTAL &amp;lt;PART_ID&amp;gt; DATE), Sum(TOTAL &amp;lt;DATE,PART_ID&amp;gt; AVG_RH)) &amp;amp; '-' &amp;amp; FirstSortedValue(TOTAL &amp;lt;PART_ID&amp;gt; AVG_RH, Aggr(Sum(AVG_RH), PART_ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(DATE=Max(TOTAL &amp;lt;PART_ID&amp;gt; DATE), Sum(TOTAL &amp;lt;DATE,PART_ID&amp;gt; AVG_RH), Sum({&amp;lt;DATE={"$(=Max(DATE))"}&amp;gt;} AVG_RH)) &amp;amp; '-' &amp;amp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(TOTAL &amp;lt;PART_ID&amp;gt; AVG_RH, Aggr(Sum(AVG_RH), PART_ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;FirstSortedValue(TOTAL &amp;lt;PART_ID&amp;gt; AVG_RH, -Aggr(Sum(AVG_RH), PART_ID))-&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;FirstSortedValue(TOTAL &amp;lt;PART_ID&amp;gt; AVG_RH, Aggr(Sum(AVG_RH), PART_ID))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 05:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136397#M754126</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-05T05:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ask for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136398#M754127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your solution, it solved my problem perfectly !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 03:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136398#M754127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-08T03:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ask for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136399#M754128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it worked, Which one worked for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 13:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ask-for-Expression/m-p/136399#M754128</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-08T13:46:38Z</dc:date>
    </item>
  </channel>
</rss>

