<?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: how can I split a field into two? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898285#M653856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can split it like this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left(Fiscal_Period, 4) as FiscalYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Fiscal_Period, 1) as FiscalQuarter&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 13:07:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-07-07T13:07:47Z</dc:date>
    <item>
      <title>how can I split a field into two?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898283#M653854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;GEO&amp;amp;'.'&amp;amp;[Operating Area]&amp;amp;'.'&amp;amp;[Sales_Region]&amp;amp;'.'&amp;amp;Territory&amp;amp;'|'&amp;amp;upper(ACCOUNT_SEGMENT)&amp;amp;'|'&amp;amp;[NCV_Type]&amp;amp;'.'&amp;amp;[Hyperion Budget Unit]&amp;amp;'.'&amp;amp;SCBU&amp;amp;'|'&amp;amp;left(Fiscal_Period,4)&amp;amp;'-Q'&amp;amp;Right(Fiscal_Period,1)&lt;/P&gt;&lt;P&gt;as [~MasterKey],&lt;/P&gt;&lt;P&gt;Pipe,&lt;/P&gt;&lt;P&gt;'PNCV' AS [NCV_Type]&lt;/P&gt;&lt;P&gt; FROm&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Data);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code , but the fiscal period is in the image below,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="fiscal.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92098_fiscal.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;i want this to be like 2016 as Fiscal Year and 1 as Q1, Q2,.. as Fiscal quarter.&lt;/LI&gt;&lt;LI&gt;I want this to be scripted in the script above in the master key.&lt;/LI&gt;&lt;LI&gt;But the data which I am getting it only has Fiscal period column, I want to split it as fiscal year and fiscal quarter and add that into the master key script.&lt;/LI&gt;&lt;LI&gt;How can this be achieved?&lt;/LI&gt;&lt;LI&gt;Thanks in advance.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898283#M653854</guid>
      <dc:creator />
      <dc:date>2015-07-07T13:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: how can I split a field into two?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898284#M653855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Left(Fiscal_Period, 4) as fiscal_year,&lt;/P&gt;&lt;P&gt;Right(Fiscal_Period, 1) as Fiscal_Quarter,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898284#M653855</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-07-07T13:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: how can I split a field into two?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898285#M653856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can split it like this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left(Fiscal_Period, 4) as FiscalYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Fiscal_Period, 1) as FiscalQuarter&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898285#M653856</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-07T13:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: how can I split a field into two?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898286#M653857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;subfield(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Fiscal_period,' ',1) as &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Fiscal_Year,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'Q'&amp;amp;subfield(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Fiscal_period,' ',2) as &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Fiscal_Quater&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;table ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898286#M653857</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-07-07T13:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: how can I split a field into two?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898287#M653858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that you want 'Q' in fiscal quarter, so&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; right(Fiscal_Period, 1) as Fiscal_Quarter,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898287#M653858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-07T13:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: how can I split a field into two?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898288#M653859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My answer was even correct ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 14:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-I-split-a-field-into-two/m-p/898288#M653859</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-07-07T14:24:25Z</dc:date>
    </item>
  </channel>
</rss>

