<?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 Previous month expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-month-expression/m-p/1588033#M456657</link>
    <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;in my model i have a straight table ,&lt;/P&gt;&lt;P&gt;i want to present dims and expression that will respond to user selection and one expression that will calculate previous month value based on current selection .&lt;/P&gt;&lt;P&gt;created a field in script as below :&lt;/P&gt;&lt;P&gt;AddMonths((MakeDate(xyear,xmonth,01)),-2) as the_prev_date,&lt;/P&gt;&lt;P&gt;and in the table expression :&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;the_date=p(the_prev_date),xyear=,xmonth=&amp;gt;}amount)&lt;/P&gt;&lt;P&gt;it retrieves the correct value , but it changes all the dims and expressions to the previous month disregarding selections ..&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;P&gt;advanced thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 10:29:59 GMT</pubDate>
    <dc:creator>ilanbaruch</dc:creator>
    <dc:date>2019-06-04T10:29:59Z</dc:date>
    <item>
      <title>Previous month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-expression/m-p/1588033#M456657</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;in my model i have a straight table ,&lt;/P&gt;&lt;P&gt;i want to present dims and expression that will respond to user selection and one expression that will calculate previous month value based on current selection .&lt;/P&gt;&lt;P&gt;created a field in script as below :&lt;/P&gt;&lt;P&gt;AddMonths((MakeDate(xyear,xmonth,01)),-2) as the_prev_date,&lt;/P&gt;&lt;P&gt;and in the table expression :&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;the_date=p(the_prev_date),xyear=,xmonth=&amp;gt;}amount)&lt;/P&gt;&lt;P&gt;it retrieves the correct value , but it changes all the dims and expressions to the previous month disregarding selections ..&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;P&gt;advanced thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 10:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-expression/m-p/1588033#M456657</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2019-06-04T10:29:59Z</dc:date>
    </item>
  </channel>
</rss>

