<?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: Prior Month value using a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689490#M455768</link>
    <description>&lt;P&gt;Here is a sample data file with just 2 months of data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 14:19:03 GMT</pubDate>
    <dc:creator>HeatherC</dc:creator>
    <dc:date>2020-03-31T14:19:03Z</dc:date>
    <item>
      <title>Prior Month value using a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689476#M455766</link>
      <description>&lt;P&gt;I've read numerous postings on this topic, but just can't get it to work.&amp;nbsp; I have a table where I need to post the sum(Denominator) for the current and prior month.&lt;/P&gt;&lt;P&gt;I have a variable defined in my load script&lt;/P&gt;&lt;P&gt;vPriorMonthDate=monthend(addmonths(max(Date),-1))&lt;/P&gt;&lt;P&gt;I checked the value of vPriorMonthDate using an InputBox and it evaluate properly to 1/31/2020 when the Date selected is 2/29/2020.&lt;/P&gt;&lt;P&gt;In the table expression, I'm using the following:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Date={"$(=$(vPriorMonthDate))"}&amp;gt;}Denominator) and it evaluates to 0.&lt;/P&gt;&lt;P&gt;I can't figure out what I'm missing.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689476#M455766</guid>
      <dc:creator>HeatherC</dc:creator>
      <dc:date>2024-11-16T18:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month value using a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689481#M455767</link>
      <description>&lt;P&gt;can you provide&amp;nbsp; sample data file&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 13:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689481#M455767</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-03-31T13:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month value using a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689490#M455768</link>
      <description>&lt;P&gt;Here is a sample data file with just 2 months of data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 14:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689490#M455768</guid>
      <dc:creator>HeatherC</dc:creator>
      <dc:date>2020-03-31T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month value using a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689496#M455769</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;your expression is looking good&amp;nbsp;&lt;/P&gt;&lt;P&gt;don't create variable in load script&amp;nbsp;&lt;/P&gt;&lt;P&gt;need to create manually (got to setting select variable overview and create variable)&lt;/P&gt;&lt;P&gt;then it is working ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 14:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689496#M455769</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-03-31T14:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month value using a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689506#M455770</link>
      <description>&lt;P&gt;I've tried creating the variable in the variable overview (although our qlikview administrator said to only create them in the load script) and the expression did not work.&lt;/P&gt;&lt;P&gt;Why would it matter where the variable was created?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 15:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689506#M455770</guid>
      <dc:creator>HeatherC</dc:creator>
      <dc:date>2020-03-31T15:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month value using a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689517#M455771</link>
      <description>&lt;P&gt;&lt;U&gt;hi&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;try below&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BACKEND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD Team,&lt;BR /&gt;MEASURE,&lt;BR /&gt;Division,&lt;BR /&gt;PROVIDER,&lt;BR /&gt;NUM,&lt;BR /&gt;DEN,&lt;BR /&gt;Date,&lt;BR /&gt;Target,&lt;BR /&gt;Population&lt;BR /&gt;FROM&lt;BR /&gt;SampleData.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is SampleData);&lt;/P&gt;&lt;P&gt;Set&amp;nbsp; vPriorMonthDate=monthend(addmonths(max(Date),-1));&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //set variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Expression&lt;/U&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Date={'$(=$(vPriorMonthDate))'}&amp;gt;}Denominator)&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 15:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689517#M455771</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-03-31T15:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month value using a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689540#M455772</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I started a fresh qvw, used my real data file and your formulas and it works just fine.&amp;nbsp; I try it in my existing qvw and it doesn't work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I add&amp;nbsp;&amp;nbsp;=$(vPriorMonthDate)&amp;nbsp; to my table, it evaluates the the last day of the previous month.&lt;/P&gt;&lt;P&gt;If I add&amp;nbsp;&amp;nbsp;=Sum({$&amp;lt;Date={'$(=$(vPriorMonthDate))'}&amp;gt;}Denominator) it evaluates to 0&lt;/P&gt;&lt;P&gt;Could something in our calendar be messing this up (but why would&amp;nbsp;=$(vPriorMonthDate)&amp;nbsp; evaluate properly?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 16:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1689540#M455772</guid>
      <dc:creator>HeatherC</dc:creator>
      <dc:date>2020-03-31T16:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month value using a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1695915#M455773</link>
      <description>&lt;P&gt;Have a look at the following Design Blog post, might give you some ideas as to what is going wrong:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you want to search further in the Design Blog area for other posts, use the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 20:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Month-value-using-a-variable/m-p/1695915#M455773</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-22T20:56:42Z</dc:date>
    </item>
  </channel>
</rss>

