<?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: Script Help for Consolidate the 2 country in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Help-for-Consolidate-the-2-country/m-p/1554041#M440514</link>
    <description>&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;tmpData:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD ID, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Month_Year, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Country, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOB, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Numerator&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;[Country Consolidation.xlsx]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is [SRI LANKA]);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD ID, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Month_Year, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Country, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOB, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Numerator&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;[Country Consolidation.xlsx]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is MALDIVES);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;ID, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Month_Year, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;If(Match(Country, 'MALDIVES', 'SRI LANKA'), 'Sri Lanka &amp;amp; Maldives', Country) AS Country,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOB,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;MinString(Numerator) AS Numerator&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Resident tmpData&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Group By ID, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Month_Year, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;If(Match(Country, 'MALDIVES', 'SRI LANKA'), 'Sri Lanka &amp;amp; Maldives', Country),&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOB;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;DROP TABLE tmpData;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 09:20:02 GMT</pubDate>
    <dc:creator>rahulpawarb</dc:creator>
    <dc:date>2019-03-08T09:20:02Z</dc:date>
    <item>
      <title>Script Help for Consolidate the 2 country</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help-for-Consolidate-the-2-country/m-p/1553811#M440489</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have a scenenrio, Like This --&amp;gt; In a table I have 2 country data with different ID, Month, LOB and Numerator (Value). Now I have to consolidate the data through script.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sri Lanka Data + Maladive Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; If ID = KPI 18 and Month_Year = 201806 and Country = Sri Lanka and LOB = XLOB and Numerator = 1&lt;/P&gt;&lt;P&gt;and If ID = KPI 18 and Month_Year = 201806 and Country = Maldives and LOB = XLOB and Numerator = PD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then Output =&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ID = KPI 18 and Month_Years = 201806 and Country - Sri Lanka &amp;amp; Maldives and LOB = XLOB and Numerator = 1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; If ID = KPI 18 and Month_Year = 201806 and Country = Sri Lanka and LOB = XLOB and Numerator = PD&lt;/P&gt;&lt;P&gt;and If ID = KPI 18 and Month_Year = 201806 and Country = Maldives and LOB = XLOB and Numerator = PD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then Output =&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ID = KPI 18 and Month_Years = 201806 and Country - Sri Lanka &amp;amp; Maldives and LOB = XLOB and Numerator = PD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; If ID = KPI 18 and Month_Year = 201806 and Country = Sri Lanka and LOB = XLOB and Numerator = PD&lt;/P&gt;&lt;P&gt;and If ID = KPI 18 and Month_Year = 201806 and Country = Maldives and LOB = XLOB and Numerator = ND&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then Output =&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ID = KPI 18 and Month_Years = 201806 and Country - Sri Lanka &amp;amp; Maldives and LOB = XLOB and Numerator = ND&lt;/P&gt;&lt;P&gt;For more ref. Please find the attached xls.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please look into this and help me to solve the same.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have kept in xls 2 ID, Suppose if it works for 18 and tomorrow if requirement change by ID, Like KPI 18 to KPI 21 then in this scenario what to do, I have to change by code by code or any other solution is there. You can check by KPI 18&lt;/P&gt;&lt;P&gt;Lots of thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 19:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help-for-Consolidate-the-2-country/m-p/1553811#M440489</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2019-03-07T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help for Consolidate the 2 country</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help-for-Consolidate-the-2-country/m-p/1554041#M440514</link>
      <description>&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;tmpData:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD ID, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Month_Year, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Country, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOB, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Numerator&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;[Country Consolidation.xlsx]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is [SRI LANKA]);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD ID, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Month_Year, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Country, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOB, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Numerator&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;[Country Consolidation.xlsx]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is MALDIVES);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;ID, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Month_Year, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;If(Match(Country, 'MALDIVES', 'SRI LANKA'), 'Sri Lanka &amp;amp; Maldives', Country) AS Country,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOB,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;MinString(Numerator) AS Numerator&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Resident tmpData&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Group By ID, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;Month_Year, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;If(Match(Country, 'MALDIVES', 'SRI LANKA'), 'Sri Lanka &amp;amp; Maldives', Country),&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;LOB;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;STRONG&gt;DROP TABLE tmpData;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 09:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help-for-Consolidate-the-2-country/m-p/1554041#M440514</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2019-03-08T09:20:02Z</dc:date>
    </item>
  </channel>
</rss>

