<?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: Cell value in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cell-value-in-straight-table/m-p/44281#M7434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark the response as answered if this answered your question. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Apr 2018 04:55:19 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2018-04-06T04:55:19Z</dc:date>
    <item>
      <title>Cell value in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Cell-value-in-straight-table/m-p/44279#M7432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a raw data like below table and need below data, could you please show me how to do it. Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First,&amp;nbsp; top2 AMT from MAX(Date) =&amp;gt; 500000 and 70000&lt;/P&gt;&lt;P&gt;Second,&amp;nbsp; "Device Name" of top2 AMT =&amp;gt; TT and BB&lt;/P&gt;&lt;P&gt;Third,&amp;nbsp; difference AMT between MAX(Date) and MAX(Date)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be :&lt;/P&gt;&lt;P&gt;500000 ,&amp;nbsp;&amp;nbsp; TT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 493990 (500000-6010)&lt;/P&gt;&lt;P&gt;70000&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; BB&amp;nbsp;&amp;nbsp;&amp;nbsp; , 70000 (70000-0)&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198239_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 09:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cell-value-in-straight-table/m-p/44279#M7432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-03T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cell value in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Cell-value-in-straight-table/m-p/44280#M7433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="198319" alt="2018-04-03 19_13_22-#QC 2018-04-02 Cell value in straight table - My new sheet _ App overview - Qlik.png" class="jive-image image-1" src="/legacyfs/online/198319_2018-04-03 19_13_22-#QC 2018-04-02 Cell value in straight table - My new sheet _ App overview - Qlik.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for AMT is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;R#={"=Rank( Sum({&amp;lt;Date={'$(=Date(Max(Date)))'}&amp;gt;} AMT))&amp;lt;=2"}&amp;gt;} AMT )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: the R# is a field which is created in the load script in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;RowNo() AS R#,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Device Name",&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;......;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for AMT1-AMT2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Column(1)&lt;/STRONG&gt;- Sum( {1&amp;lt;Date={'$(=Date(Max(Date)-1))'},[Device Name]=P({&amp;lt;R#={"=Rank( Sum({&amp;lt;Date={'$(=Date(Max(Date)))'}&amp;gt;} AMT))&amp;lt;=2"}&amp;gt;})&amp;gt;} AMT )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( &lt;STRONG&gt;Column(1)&lt;/STRONG&gt; could be replace by the full expression for AMT or even replaced with just AMT )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 17:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cell-value-in-straight-table/m-p/44280#M7433</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-04-03T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cell value in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Cell-value-in-straight-table/m-p/44281#M7434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark the response as answered if this answered your question. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 04:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cell-value-in-straight-table/m-p/44281#M7434</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-04-06T04:55:19Z</dc:date>
    </item>
  </channel>
</rss>

