<?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: Show previous value in table line item in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036963#M349471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would need to use &lt;STRONG&gt;Above/Below&lt;/STRONG&gt; function (based on sorting of your straight table) to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Feb 2016 18:48:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-26T18:48:09Z</dc:date>
    <item>
      <title>Show previous value in table line item</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036962#M349470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon, all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table for data quality analysis that shows me any suspect values from my source data. In the following example, any field1 value that is negative indicates suspect data. Subsequently, I have a table in qlikview that shows me all such values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimensions of the table are:&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Serial Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;field1={"&amp;lt;$(=0)"}&amp;gt;} field1) -- to only show the suspect values&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;field1={"&amp;lt;$(=0)"}&amp;gt;} field2) -- to show the source value (value2 is used in the script to derive value1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wanting an additional expression to see what the value for field2 was in the previous month, so I assume I need a function similar to the following&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;=Sum({$&amp;lt;field1={"&amp;lt;$(=0)"}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Date = {"$(=addmonths(Date), -1)"}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&amp;gt;} field2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;however this just resolves to '0' on every line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how I can show the previous month's value for the same dimensions, relative to the specific date of the suspect data?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 12:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036962#M349470</guid>
      <dc:creator />
      <dc:date>2016-02-26T12:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous value in table line item</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036963#M349471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would need to use &lt;STRONG&gt;Above/Below&lt;/STRONG&gt; function (based on sorting of your straight table) to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036963#M349471</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-26T18:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous value in table line item</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036964#M349472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk dis&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8342"&gt;How To /Missing Manual (24 articles)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 06:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036964#M349472</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-02-29T06:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous value in table line item</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036965#M349473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be using Month field like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({$&amp;lt;field1={'&amp;lt;0'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;= {"$(=Month(addmonths(Max(Date), -1))"}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;} field2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 06:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036965#M349473</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-02-29T06:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous value in table line item</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036966#M349474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions, but unfortunately none of these answers were appropriate. I decided in the end to add the expression value in the load script using the Lookup() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-value-in-table-line-item/m-p/1036966#M349474</guid>
      <dc:creator />
      <dc:date>2016-03-08T15:39:54Z</dc:date>
    </item>
  </channel>
</rss>

