<?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: Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111610#M462683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rudolf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two Charts (one showing CM and the other showing PM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so on the current month chart(there's data from the first of this month until today),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and on the previous month chart(there's data from the first of the previous month until month end (20160731)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I want to compare 30th of this month and the 30th of the pm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 10:22:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-30T10:22:43Z</dc:date>
    <item>
      <title>Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111607#M462680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create an expression to look at the the sameday on Current month and previous month, for instance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CM = 20160801 to 20160830&lt;/P&gt;&lt;P&gt;PM = 20160701 to 20160730&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Treasure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 09:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111607#M462680</guid>
      <dc:creator />
      <dc:date>2016-08-30T09:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111608#M462681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the inmonth() function is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/inmonth.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/inmonth.htm"&gt;inmonth ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 09:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111608#M462681</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-08-30T09:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111609#M462682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try addmonths(CM,-1)&lt;/P&gt;&lt;P&gt;how your Expression would look like to Combine sameday value of CM and PM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 09:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111609#M462682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111610#M462683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rudolf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two Charts (one showing CM and the other showing PM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so on the current month chart(there's data from the first of this month until today),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and on the previous month chart(there's data from the first of the previous month until month end (20160731)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I want to compare 30th of this month and the 30th of the pm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111610#M462683</guid>
      <dc:creator />
      <dc:date>2016-08-30T10:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111611#M462684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you may use the Expression with addmonths in your Chart with PM&lt;/P&gt;&lt;P&gt;do you show each day of month in the Chart?&lt;/P&gt;&lt;P&gt;can you post sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111611#M462684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T10:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111612#M462685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Create two variables&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1. vCurrentMonth&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Max(Month)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and make ur expression like:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Year = {$(#vCurrentMonth)}&amp;gt;} Sales &lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2. vLastMonth&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Max(Month-1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Year = {$(#vLastMonth)}&amp;gt;} Sales &lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 12pt; font-family: 'Times New Roman', serif;"&gt;For Current Month Sales:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: maroon;"&gt;CalendarYear&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: gray;"&gt;$(=max(CalendarYear))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: maroon;"&gt;CalendarMonthName&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: gray;"&gt;$(=Month(Max(&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt;"&gt;InvDate&lt;/EM&gt;&lt;/STRONG&gt;)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: Arial; color: #737373;"&gt;INVC_ITEM_AMT&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 12pt; font-family: 'Times New Roman', serif;"&gt;For Last Month Sales:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: blue;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: maroon;"&gt;CalendarYear&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: gray;"&gt;$(=max(CalendarYear))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: maroon;"&gt;CalendarMonthName&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: gray;"&gt;$(=month(addmonths((max(InvDate)),-1)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: Arial; color: #737373;"&gt;INVC_ITEM_AMT&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111612#M462685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T10:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111613#M462686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this as well??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/188833"&gt;Set Analysis Current Month vs Previous Month&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111613#M462686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T10:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111614#M462687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="VS.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135969_VS.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 11:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111614#M462687</guid>
      <dc:creator />
      <dc:date>2016-08-30T11:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111615#M462688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you wrote that you want to compare the sameday from current month and previous month&lt;/P&gt;&lt;P&gt;but you want to compare the current month vs previous month? or do you select the day by a selection box?&lt;/P&gt;&lt;P&gt;anyway: if you define the Expression for PM like&lt;/P&gt;&lt;P&gt;sum({&amp;lt;yourdatefield={'$(=addmonths(max/(yourdatefield),-1)'}&amp;gt;}value)&lt;/P&gt;&lt;P&gt;you select month: you get months value&lt;/P&gt;&lt;P&gt;you select day and month: you get value of this month/day &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111615#M462688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T12:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111616#M462689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rudie, It worked(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;sum({&amp;lt;yourdatefield={'$(=addmonths(max/(yourdatefield),-1)'}&amp;gt;}value)&lt;/SPAN&gt;), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK you so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111616#M462689</guid>
      <dc:creator />
      <dc:date>2016-08-30T12:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1111617#M462690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post) and Helpful Answers (found under the Actions menu under every post).&lt;/P&gt;&lt;P&gt;If not, please make clear what part of this topic you still need help with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1111617#M462690</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-08-30T12:50:26Z</dc:date>
    </item>
  </channel>
</rss>

