<?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: Reassign Accounts in one Month to Another Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389961#M696793</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;Are you want to change the date field for december to "20121130" or exactly one month back? for ex: 20121202 goes to 20121102 or 20121130?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: Arial; background-color: #ffffff;"&gt;IF(Tier = 'Quint' and MonthName(DATE_FIELD)&lt;/SPAN&gt; = 'Dec 2012',AddMonths(&lt;SPAN style="color: #993300; font-family: Arial; background-color: #ffffff;"&gt;DATE_FIELD&lt;/SPAN&gt;,-1), &lt;SPAN style="color: #993300; font-family: Arial; background-color: #ffffff;"&gt;DATE_FIELD&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//if your date format is not in standard format , use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(AddMonths(Date(Date#(&lt;SPAN style="color: #993300; font-family: Arial; background-color: #ffffff;"&gt;DATE_FIELD&lt;/SPAN&gt;,'YYYYMMDD'),'MM/DD/YYYY'),-1),'YYYYMMDD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2013 18:56:07 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2013-02-27T18:56:07Z</dc:date>
    <item>
      <title>Reassign data in one Month to Another</title>
      <link>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389960#M696792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help me out QV Community, I have some accounts that were placed with us at the beginning of say December that were Supposed to be placed in November. I don't want to manipulate the database because we want to actually know the placed date, yet I want them reported for November. Would I just have to do some sort of renaming of the Month in the script? How would I do this with multiple field criteria like below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically if the field TIER is "Quint" and then DATE_FIELD is "20121201", I want all those December dates to show up as November dates in the DATE_FIELD, but only for that month if it is that TIER. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I was thinking of using but not sure it is what I need&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;IF(Tier = 'Quint' and DATE_FIELD='20121201',20121130,DATE_FIELD) as DATE_FIELD&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 18:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389960#M696792</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-02-27T18:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Accounts in one Month to Another Month</title>
      <link>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389961#M696793</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;Are you want to change the date field for december to "20121130" or exactly one month back? for ex: 20121202 goes to 20121102 or 20121130?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: Arial; background-color: #ffffff;"&gt;IF(Tier = 'Quint' and MonthName(DATE_FIELD)&lt;/SPAN&gt; = 'Dec 2012',AddMonths(&lt;SPAN style="color: #993300; font-family: Arial; background-color: #ffffff;"&gt;DATE_FIELD&lt;/SPAN&gt;,-1), &lt;SPAN style="color: #993300; font-family: Arial; background-color: #ffffff;"&gt;DATE_FIELD&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//if your date format is not in standard format , use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(AddMonths(Date(Date#(&lt;SPAN style="color: #993300; font-family: Arial; background-color: #ffffff;"&gt;DATE_FIELD&lt;/SPAN&gt;,'YYYYMMDD'),'MM/DD/YYYY'),-1),'YYYYMMDD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 18:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389961#M696793</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-02-27T18:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Accounts in one Month to Another Month</title>
      <link>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389962#M696794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at my attachment from the original post, the accounts and data are showing under June, I would like to move them to May (I used Nov and Dec as an example). Basically some sort of IF statement to manipulate my data when I select it. As my question header says, I need to reassign anything under once month/year, under that "Tier" to be categorized into another month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone have any experience with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 20:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389962#M696794</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-02-28T20:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign data in one Month to Another</title>
      <link>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389963#M696795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do a case-when statement in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;case &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when tier='quint' and date_field = 'may 2012' then 'june 2012',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else date_field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as date_field2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/P&gt;&lt;P&gt;from ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not a sql expert, so you might want to look up the syntax to see where the commas go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 21:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389963#M696795</guid>
      <dc:creator />
      <dc:date>2013-02-28T21:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign data in one Month to Another</title>
      <link>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389964#M696796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but I would like to keep the script in Qlikview language, as all the script written already is. I pull from various created qvds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 14:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reassign-data-in-one-Month-to-Another/m-p/389964#M696796</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-03-01T14:51:59Z</dc:date>
    </item>
  </channel>
</rss>

