<?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: Pivot Table Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Question/m-p/721909#M542037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for the reply. Please do note that I still need to output letter C. It doesn't mean I have to remove it. It still there if I selected it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jun 2014 05:47:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-21T05:47:52Z</dc:date>
    <item>
      <title>Pivot Table Question</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Question/m-p/721907#M542035</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;&lt;/P&gt;&lt;P&gt;I have a question regarding using pivot table. I have a table here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 882px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Month&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Jan 2014(A)&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Feb 2014(B)&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Mar 2014(C)&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Mar 2014(D)&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Apr 2014(E)&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;May 2014(F)&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Jun 2014(G)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Desc&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt;Letter&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;Valid&lt;/TD&gt;&lt;TD class="xl69"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;150&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;200&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;250&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;300&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;400&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, on the table there are 2 Mar 2014. for C and D. I only want to show the latest one, which is (D).&lt;/P&gt;&lt;P&gt;How to determine latest? It's just base on alphabetical order (A&amp;lt;B&amp;lt;C&amp;lt;D&amp;lt;E..etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is, if the system detects a common month between the letters it should only show the latest letter. It should not show the previous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S this is not the actual table, this is just an example so I can get an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 04:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Question/m-p/721907#M542035</guid>
      <dc:creator />
      <dc:date>2014-06-21T04:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Question</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Question/m-p/721908#M542036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Something like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LastValue:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month&amp;amp;'('&amp;amp;Desc&amp;amp;')' as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Desc,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Valid;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(Month, '(',1) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; LastValue(Desc) as Desc,&lt;/P&gt;&lt;P&gt;&amp;nbsp; LastValue(Valid) as Valid&lt;/P&gt;&lt;P&gt;Group By SubField(Month, '(',1);&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Desc, Valid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan 2014(A), A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb 2014(B), B, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar 2014(C), C, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar 2014(D), D, 250&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr 2014(E), E, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May 2014(F), F, 400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun 2014(G), G, 500&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: You may have to use Order By clause in your actual table to align data in order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 05:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Question/m-p/721908#M542036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-21T05:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Question</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Question/m-p/721909#M542037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for the reply. Please do note that I still need to output letter C. It doesn't mean I have to remove it. It still there if I selected it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 05:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Question/m-p/721909#M542037</guid>
      <dc:creator />
      <dc:date>2014-06-21T05:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Question</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Question/m-p/721910#M542038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about creating last value flag by using mapping load. See below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LastValue:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month&amp;amp;'('&amp;amp;Desc&amp;amp;')' as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 as LastValueFlag;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(Month, '(',1) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; LastValue(Desc) as Desc&lt;/P&gt;&lt;P&gt;Group By SubField(Month, '(',1);&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Desc, Valid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan 2014(A), A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb 2014(B), B, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar 2014(C), C, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar 2014(D), D, 250&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr 2014(E), E, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May 2014(F), F, 400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun 2014(G), G, 500&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FactTable:&lt;/P&gt;&lt;P&gt;LOAD Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Desc,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Valid,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('LastValue', Month, 0) as LastValueFlag&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Desc, Valid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan 2014(A), A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb 2014(B), B, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar 2014(C), C, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar 2014(D), D, 250&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr 2014(E), E, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May 2014(F), F, 400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun 2014(G), G, 500&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the pivot table expression, use below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;LastValueFlag={1}&amp;gt;} Valid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;Satya &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 08:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Question/m-p/721910#M542038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-21T08:54:20Z</dc:date>
    </item>
  </channel>
</rss>

