<?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: Merge four fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991787#M337895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've now got an added requirement that I've to also display the December data of previous year and the year before that for comparison purposes as asked by client. How do I do that. Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2015 07:29:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-07T07:29:12Z</dc:date>
    <item>
      <title>Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991777#M337885</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;I'm new to qlikview and I've got this requirement in which I have four fields YTD_AC, YTD_BU, MNT_AC and MNT_BU coming straight from table and I want to merge them for the current year i.e. 2015 and all the months. Refer image for better understanding. How to implement that? Please help!&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102179_Untitled.png" style="height: auto;" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 05:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991777#M337885</guid>
      <dc:creator />
      <dc:date>2015-10-16T05:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991778#M337886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess we need more info on this.&lt;/P&gt;&lt;P&gt;could you please post a demo document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991778#M337886</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-10-16T13:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991779#M337887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one Expression should do it:&lt;/P&gt;&lt;P&gt;sum( YTD_AC)+sum(YTD_BU)+sum(MNT_AC)+sum(MNT_BU)&lt;/P&gt;&lt;P&gt;Dimension still is yearmonth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991779#M337887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-16T13:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991780#M337888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harshit,&lt;/P&gt;&lt;P&gt;First u need to create Inline Load for those 4 fileds&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;id&lt;/P&gt;&lt;P&gt;ACTYTD&lt;/P&gt;&lt;P&gt;BUDMTH&lt;/P&gt;&lt;P&gt;BUDYTD&lt;/P&gt;&lt;P&gt;ACTMTH&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;WHEN U ARE WRITING expression u need to calculate&amp;nbsp; like&lt;/P&gt;&lt;P&gt;if(id='',&lt;/P&gt;&lt;P&gt;sum(),&lt;/P&gt;&lt;P&gt;if(id='',&lt;/P&gt;&lt;P&gt;sum(),....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991780#M337888</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2015-10-16T13:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991781#M337889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you say merge, do you mean add the fields together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991781#M337889</guid>
      <dc:creator />
      <dc:date>2015-10-16T13:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991782#M337890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102367_Untitled.png" style="width: 620px; height: 26px;" /&gt;&lt;/P&gt;&lt;P&gt;Here is the thing......the zone name, kpi name, kpi code, Unit, YTD_AC, YTD_BU, MTH_AC and MTH_BU, Month and year, all these values are coming from table. Now for a selected year and month I've to display the above report format....If I selected only year and not month then it should display the data of all the months for a given year as displayed above....and if I selected both a year and month...it should display data for only that year and month....What should I do..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 05:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991782#M337890</guid>
      <dc:creator />
      <dc:date>2015-10-19T05:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991783#M337891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is typically what you can make with a Pivot Table in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should have a field for:&lt;/P&gt;&lt;P&gt;- Zone Name&lt;/P&gt;&lt;P&gt;- KPI Name&lt;/P&gt;&lt;P&gt;- KPI code&lt;/P&gt;&lt;P&gt;- Unit .... not sure if that is really necessary as a field... is it the % sign here?&lt;/P&gt;&lt;P&gt;- YearMonth&lt;/P&gt;&lt;P&gt;- MetricType: YTD_AC .... etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First three should be dimensions on the left side as row labels&lt;/P&gt;&lt;P&gt;The last two should be dimensions that you drag up into column labels &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 15:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991783#M337891</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-19T15:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991784#M337892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample on how to do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-10-19 #1.PNG" class="jive-image image-1" src="/legacyfs/online/102456_2015-10-19 #1.PNG" style="height: 125px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 16:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991784#M337892</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-19T16:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991785#M337893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, Peter this is the exact format I need it for my report, how do I implement the YearMonth because year and month are two different dimensions here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991785#M337893</guid>
      <dc:creator />
      <dc:date>2015-10-20T06:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991786#M337894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You either have to create this field in you load script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Year( theDate ) &amp;amp; Num( Month( theDate ) , '00' ) AS YearMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create a calculated dimension using the same logic - the dimension should be called YearMonth and expression is: &lt;SPAN style="font-size: 13.3333px;"&gt;Year( theDate ) &amp;amp; Num( Month( theDate ) , '00' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Here I presume that you have a date field called theDate ... if it is two separate fields already you have:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;theYear &amp;amp; Num( theMonth , '00' ) &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 11:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991786#M337894</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-28T11:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merge four fields</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991787#M337895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've now got an added requirement that I've to also display the December data of previous year and the year before that for comparison purposes as asked by client. How do I do that. Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 07:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-four-fields/m-p/991787#M337895</guid>
      <dc:creator />
      <dc:date>2015-12-07T07:29:12Z</dc:date>
    </item>
  </channel>
</rss>

