<?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: Help with TTM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547727#M1143349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still having trouble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression works great&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ReloadTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-3)))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It gives me the correct date of Jun 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I want to use that in this expression, but it doesn't want to work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenMonthAndYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=MonthName(MonthStart(AddMonths(Floor(ReloadTime()),-3))))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)*-1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am trying to get qlikview give me the previous months sales in a pivot table.&amp;nbsp; So in the example above I want it to give me sales for Jun 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am very much a beginner and not sure where I am going wrong.&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&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Sep 2013 13:33:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-20T13:33:16Z</dc:date>
    <item>
      <title>Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547724#M1143346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenMonthAndYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sept2013]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; seems to work great, but if I want the modifier to be based on todays month - 1 how can I do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I want the formula to automatically put in last month, I am having trouble with that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 13:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547724#M1143346</guid>
      <dc:creator />
      <dc:date>2013-09-20T13:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547725#M1143347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenMonthAndYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(=Date(today(),'MMMYYYY))'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;To make this work, your MonthNames system variable (check your load script, at the top) should have the same format as your Month names in your field.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 13:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547725#M1143347</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-20T13:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547726#M1143348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPrevMonth = MonthName(addmonths(today(),-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The you can use that variable in the set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenMonthAndYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;$(vPrevMonth)&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 13:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547726#M1143348</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-09-20T13:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547727#M1143349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still having trouble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression works great&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ReloadTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-3)))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It gives me the correct date of Jun 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I want to use that in this expression, but it doesn't want to work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenMonthAndYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=MonthName(MonthStart(AddMonths(Floor(ReloadTime()),-3))))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)*-1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am trying to get qlikview give me the previous months sales in a pivot table.&amp;nbsp; So in the example above I want it to give me sales for Jun 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am very much a beginner and not sure where I am going wrong.&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&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 13:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547727#M1143349</guid>
      <dc:creator />
      <dc:date>2013-09-20T13:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547728#M1143350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have to assign this to a variable and then use that variable in your expression as mentioned in my previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add a variable,&lt;/P&gt;&lt;P&gt;Settings -&amp;gt; Variable Overview -&amp;gt; Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 13:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547728#M1143350</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-09-20T13:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547729#M1143351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not want to work with the Month Year, when I replace the variable to be a year 2012, then the formula works, but when I make it MonthandYear - Aug 2013 it gives me a blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lance H. James, CPA&lt;/P&gt;&lt;P&gt;Director of Finance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Aspen Brands Company&lt;/P&gt;&lt;P&gt;Kate Aspen • Baby Aspen&lt;/P&gt;&lt;P&gt;www.kateaspen.com&amp;lt;http://www.kateaspen.com&amp;gt; • www.babyaspen.com&amp;lt;http://www.babyaspen.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T: 678.282.0053 ext. 777&lt;/P&gt;&lt;P&gt;2400 Chattahoochee Drive&lt;/P&gt;&lt;P&gt;Duluth, GA  30097&lt;/P&gt;&lt;P&gt;2013, 2012 &amp;amp; 2011 Top Places to Work - Atlanta Journal Constitution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow us on Facebook and Twitter!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 13:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547729#M1143351</guid>
      <dc:creator />
      <dc:date>2013-09-20T13:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547730#M1143352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CalendarWrittenMonthAndYear={$(vPrevMonth)}&amp;gt;} SalesAmount)&lt;/P&gt;&lt;P&gt;But this does work&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CalendarWrittenYear={$(vYear)}&amp;gt;} SalesAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lance H. James, CPA&lt;/P&gt;&lt;P&gt;Director of Finance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Aspen Brands Company&lt;/P&gt;&lt;P&gt;Kate Aspen • Baby Aspen&lt;/P&gt;&lt;P&gt;www.kateaspen.com&amp;lt;http://www.kateaspen.com&amp;gt; • www.babyaspen.com&amp;lt;http://www.babyaspen.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T: 678.282.0053 ext. 777&lt;/P&gt;&lt;P&gt;2400 Chattahoochee Drive&lt;/P&gt;&lt;P&gt;Duluth, GA  30097&lt;/P&gt;&lt;P&gt;2013, 2012 &amp;amp; 2011 Top Places to Work - Atlanta Journal Constitution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow us on Facebook and Twitter!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 14:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547730#M1143352</guid>
      <dc:creator />
      <dc:date>2013-09-20T14:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547731#M1143353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your issue is probably just about correct value matching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your expression gives you something like 'Jun 2013', this must exactely match the text representation of a value in your field CalendarWrittenMonthAndYear. If, for example, your value is slightly different (having for example 4 character month name and no space like in 'Sept2013' shown in your original post), there will be no match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 14:08:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547731#M1143353</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-20T14:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547732#M1143354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the reason your expression isn't work is because it returns only the text and not the text surrounded by quotes.&lt;/P&gt;&lt;P&gt;i.e. in your dollar sign expansion you are getting&lt;/P&gt;&lt;P&gt;Jun 2013&lt;/P&gt;&lt;P&gt;when you need&lt;/P&gt;&lt;P&gt;'Jun 2013'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chr(39) will return a single quote in an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenMonthAndYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=chr(39) &amp;amp; MonthName(MonthStart(AddMonths(Floor(ReloadTime()),-3))) &amp;amp; chr(39) )&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)*-1 &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 18:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547732#M1143354</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2013-09-20T18:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with TTM</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547733#M1143355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for this, I learned a lot and it is now working!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 12:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-TTM/m-p/547733#M1143355</guid>
      <dc:creator />
      <dc:date>2013-09-23T12:15:09Z</dc:date>
    </item>
  </channel>
</rss>

