<?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 Expression that will show Cost only when it changed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-that-will-show-Cost-only-when-it-changed/m-p/35245#M785728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this script, that works, to pull the new cost everytime it changes and the old price, as well as the change.&amp;nbsp; However, my client wants me to do this in an expression, not a script.&amp;nbsp; How can I do this in an expression.&amp;nbsp; Here is my script, so you can see what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(HHSCSAR &amp;lt;&amp;gt; Previous(HHSCSAR), HHSCSAR, 0) as [New Cost],&lt;/P&gt;&lt;P&gt;if(HHSCSAR &amp;lt;&amp;gt; Previous(HHSCSAR), Previous(HHSCSAR), 0) as [Old Cost],&lt;/P&gt;&lt;P&gt;if(HHSCSAR &amp;lt;&amp;gt; Previous(HHSCSAR), HHSCSAR - Previous(HHSCSAR), 0) as [Cost Change],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course the [Cost Change] is just the subtraction of the other 2 fields, I am just showing it for completeness. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>djbloiss</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Expression that will show Cost only when it changed</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-that-will-show-Cost-only-when-it-changed/m-p/35245#M785728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this script, that works, to pull the new cost everytime it changes and the old price, as well as the change.&amp;nbsp; However, my client wants me to do this in an expression, not a script.&amp;nbsp; How can I do this in an expression.&amp;nbsp; Here is my script, so you can see what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(HHSCSAR &amp;lt;&amp;gt; Previous(HHSCSAR), HHSCSAR, 0) as [New Cost],&lt;/P&gt;&lt;P&gt;if(HHSCSAR &amp;lt;&amp;gt; Previous(HHSCSAR), Previous(HHSCSAR), 0) as [Old Cost],&lt;/P&gt;&lt;P&gt;if(HHSCSAR &amp;lt;&amp;gt; Previous(HHSCSAR), HHSCSAR - Previous(HHSCSAR), 0) as [Cost Change],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course the [Cost Change] is just the subtraction of the other 2 fields, I am just showing it for completeness. &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/Expression-that-will-show-Cost-only-when-it-changed/m-p/35245#M785728</guid>
      <dc:creator>djbloiss</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

