<?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: Merging data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-data/m-p/968225#M959690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;I need to merge data in pivot table, for example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Grade "A" + Grade "CYA" = A+&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Grade "B" + Grade "CYB" = B+&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Create a new field in the script that links the original grades to your new grades:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grades:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ReportGrade, Grade&lt;/P&gt;&lt;P&gt;A+, A&lt;/P&gt;&lt;P&gt;A+, CYA&lt;/P&gt;&lt;P&gt;B+, B&lt;/P&gt;&lt;P&gt;B+, CYB&lt;/P&gt;&lt;P&gt;...etc&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the new field ReportGrade as dimension in your bar chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 06:40:00 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-10-27T06:40:00Z</dc:date>
    <item>
      <title>Merging data</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-data/m-p/968224#M959689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I need to merge data in pivot table, for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Grade "A" + Grade "CYA" = A+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Grade "B" + Grade "CYB" = B+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;i want to merge all value in one expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt; &lt;SPAN style="color: #575757;"&gt;i use this expression: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=if(Grade = 'A', 'A+',if(Grade='CYA','A+',if(Grade &amp;lt;&amp;gt; '', PurgeChar (Grade,''))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;to merge only one value A + CYA = A+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="testd.png" class="jive-image image-1" height="245" src="https://community.qlik.com/legacyfs/online/103114_testd.png" style="height: 244.459px; width: 793px;" width="793" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 06:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-data/m-p/968224#M959689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-27T06:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging data</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-data/m-p/968225#M959690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;I need to merge data in pivot table, for example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Grade "A" + Grade "CYA" = A+&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Grade "B" + Grade "CYB" = B+&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Create a new field in the script that links the original grades to your new grades:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grades:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ReportGrade, Grade&lt;/P&gt;&lt;P&gt;A+, A&lt;/P&gt;&lt;P&gt;A+, CYA&lt;/P&gt;&lt;P&gt;B+, B&lt;/P&gt;&lt;P&gt;B+, CYB&lt;/P&gt;&lt;P&gt;...etc&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the new field ReportGrade as dimension in your bar chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 06:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-data/m-p/968225#M959690</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-27T06:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Merging data</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-data/m-p/968226#M959691</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;Change you script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;*,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;if(Grade = 'A', OR Grade='CYA','A+',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Grade = '&lt;STRONG&gt;A&lt;/STRONG&gt;', OR Grade='CYB','D+', &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt; Grade)) AS New_Grade&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;FROM DataSource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;Now use the new column &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;New_Grade in dimension, this will merge the data as you expected.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 07:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-data/m-p/968226#M959691</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-10-27T07:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Merging data</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-data/m-p/968227#M959692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write condition on Dimension like that for all grade&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Grade = 'A' or Grade='CYA','A+',&lt;/P&gt;&lt;P&gt;if(Grade = 'A-' or Grade='CYA-','A-',&lt;/P&gt;&lt;P&gt;if(Grade = 'B-' or Grade='CYB-','B-',&lt;/P&gt;&lt;P&gt;if(Grade = 'B' or Grade='CYB','B',&lt;/P&gt;&lt;P&gt;if(Grade = 'B+' or Grade='CYB+','B+',&lt;/P&gt;&lt;P&gt;if(Grade = 'C' or Grade='CYC','C',Grade&lt;/P&gt;&lt;P&gt;))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i implemented on qvw file also&lt;/P&gt;&lt;P&gt;hope these help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 07:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-data/m-p/968227#M959692</guid>
      <dc:creator>ahmar811</dc:creator>
      <dc:date>2015-10-27T07:47:49Z</dc:date>
    </item>
  </channel>
</rss>

