<?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: question on alternate states/addmonths in Year over Year calc in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305316#M406362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;So your object where your referring to the above expression has an alternate state ? if yes then it will be seeking the selection to be in the alternate state mode so this is the syntax&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #800000; font-size: 10.6667px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 16px; font-family: Calibri; color: #7f7f7f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Function({&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;[state_identifier1] &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: Calibri; color: #333333;"&gt;&amp;lt;field_name2= &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;[state_identifier2]::&lt;/SPAN&gt;field_name3&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Calibri;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Calibri;"&gt;field_name&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Calibri;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #333333; font-style: inherit; font-size: 16px; font-family: Calibri; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;in your expression I could not see the state 2 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;%Snapshot_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"$(=addmonths($::%Snapshot_Date,-12,1))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Headcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 May 2017 05:05:59 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2017-05-20T05:05:59Z</dc:date>
    <item>
      <title>question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305310#M406356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;having a problem with my syntax below.&lt;/P&gt;&lt;P&gt;My default state is where I have the most recent month selected - see image.&lt;/P&gt;&lt;P&gt;I'm trying to go back 12 months to&amp;nbsp; grab a value from a year ago from my default state.&lt;/P&gt;&lt;P&gt;I have the below expr linked to alternate state which is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%Snapshot_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=addmonths($::%Snapshot_Date,-12,1))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Headcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&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;What am I missing ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thankx !&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;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164113_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Gerry.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 02:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305310#M406356</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T02:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305311#M406357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you looking expression? Instead of that we have always one selected value right. You can go for Alternate state as mention&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 03:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305311#M406357</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-20T03:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305312#M406358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are not understanding the problem.&lt;/P&gt;&lt;P&gt;I'm trying to reference a date in default state going back 12 months,&amp;nbsp; in another alternate state.&lt;/P&gt;&lt;P&gt;It's a syntax issue I'm facing.&lt;/P&gt;&lt;P&gt;Gerry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 04:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305312#M406358</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T04:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305313#M406359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I apologizes for that, Can you share application to look&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 04:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305313#M406359</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-20T04:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305314#M406360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305314#M406360</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T05:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305315#M406361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the date to 4/30/16,&amp;nbsp; 4/30/17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164117_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305315#M406361</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T05:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305316#M406362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;So your object where your referring to the above expression has an alternate state ? if yes then it will be seeking the selection to be in the alternate state mode so this is the syntax&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #800000; font-size: 10.6667px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 16px; font-family: Calibri; color: #7f7f7f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Function({&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;[state_identifier1] &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: Calibri; color: #333333;"&gt;&amp;lt;field_name2= &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;[state_identifier2]::&lt;/SPAN&gt;field_name3&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Calibri;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Calibri;"&gt;field_name&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Calibri;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #333333; font-style: inherit; font-size: 16px; font-family: Calibri; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;in your expression I could not see the state 2 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;%Snapshot_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"$(=addmonths($::%Snapshot_Date,-12,1))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Headcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305316#M406362</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-05-20T05:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305317#M406363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164118_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305317#M406363</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-20T05:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305318#M406364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Anil:&lt;/P&gt;&lt;P&gt;my source state is the default state $.&lt;/P&gt;&lt;P&gt;I'm assigning this in text box which is my "to" state, isn't it implied ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164119_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305318#M406364</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T05:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305319#M406365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you follow the same Which Avinash provide the syntax in between the Operator &lt;STRONG&gt;&amp;lt;AlterNateState{&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305319#M406365</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-20T05:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305320#M406366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I follow it, but that's what I need help in, which is my syntax, when I use addmonths, something is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305320#M406366</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T05:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305321#M406367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what does the use of 1 with in between the AddMonths Parenthesis??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305321#M406367</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-20T05:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305322#M406368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;explicity specifying the function as you have it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;[State1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=addmonths([state2]::Date1,-12,1))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305322#M406368</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T05:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305323#M406369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;date1 = {"$(=Date(AddMonths(Only({$} date1), -12), 'MM/DD/YYYY'))"}&amp;gt;}sales) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164126_Capture.PNG" style="height: 112px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 11:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305323#M406369</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-20T11:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305324#M406370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this has worked beautifully !&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;A follow up I have is, how do I override the default set on a dimension, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;emptype&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'PT'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Date(AddMonths(Only({$} Date1), -12), 'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;where I'm overriding the 'FT'&amp;nbsp; to 'PT'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Gerry.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164135_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 15:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305324#M406370</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T15:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305325#M406371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView is case sensitive and you date field is called date1 and not Date1 (see the upper case D vs lower case d)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;emptype={'PT'}, &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;d&lt;/SPAN&gt;ate1 = {"$(=Date(AddMonths(Only({$} &lt;STRONG style=": ; color: #ff0000; font-size: 14pt;"&gt;d&lt;/STRONG&gt;ate1), -12), 'MM/DD/YYYY'))"}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas this didn't&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;emptype={'PT'}, &lt;STRONG style=": ; color: #ff0000; font-size: 14pt;"&gt;D&lt;/STRONG&gt;ate1 = {"$(=Date(AddMonths(Only({$} &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;D&lt;/SPAN&gt;ate1), -12), 'MM/DD/YYYY'))"}&amp;gt;}sales) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 15:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305325#M406371</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-20T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305326#M406372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, that worked well !&lt;/P&gt;&lt;P&gt;another follow up.&lt;/P&gt;&lt;P&gt;I'm doing something very similar in my real data set with something like this:&lt;/P&gt;&lt;P&gt;I'm reading the defaults from the current state, and overriding workertype ='Contingent worker'&lt;/P&gt;&lt;P&gt;- it doesn't like the worker_type construct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Worker_Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Contingent Worker'},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Location&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$::&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Location&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$::&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JobProfile&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$::&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JobProfile&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JobLevel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$::&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JobLevel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JobFamilyGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$::&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JobFamilyGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employee_Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$::&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employee_Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%Snapshot_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Date(AddMonths(Only({$} %Snapshot_Date),-12), 'MM/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Ending_Headcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 15:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305326#M406372</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T15:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305327#M406373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't see anything wrong here, are you sure it is Worker_Type and not worker_type or something else? Also, why do you think it doesn't like Worker_Type? Do you see any red wiggly line or something similar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 15:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305327#M406373</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-20T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305328#M406374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;was my syntax, I reduced it down to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Location=$::Location,&lt;BR /&gt; //Region=$::Region,&lt;BR /&gt; //JobProfile=$::JobProfile,&lt;BR /&gt; //JobLevel=$::JobLevel,&lt;BR /&gt; //JobFamilyGroup=$::JobFamilyGroup,&lt;BR /&gt; //Employee_Type=,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Worker_Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Contingent Worker'},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%Snapshot_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Date(AddMonths(Only({$} %Snapshot_Date),-12), 'MM/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Ending_Headcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and it seemed to work&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 16:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305328#M406374</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-05-20T16:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: question on alternate states/addmonths in Year over Year calc</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305329#M406375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So all working and good to go?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 21:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-alternate-states-addmonths-in-Year-over-Year-calc/m-p/1305329#M406375</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-20T21:48:29Z</dc:date>
    </item>
  </channel>
</rss>

