<?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  conditional join script should be to store inflated data in qvd ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658510#M448517</link>
    <description>&lt;P&gt;Thank You Sunny . It worked , but actually in real data&amp;nbsp;Zone_List consist of many distinct values , and this approach requires hard coding&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="d8.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25662i4B9136F2A0FC3468/image-size/large?v=v2&amp;amp;px=999" role="button" title="d8.PNG" alt="d8.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any way alternate to avoid this ? I tried with Cartesian join but due to limited expertisee not able to get desired result .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 13:27:00 GMT</pubDate>
    <dc:creator>prahlad_infy</dc:creator>
    <dc:date>2019-12-17T13:27:00Z</dc:date>
    <item>
      <title>How  conditional join script should be to store inflated data in qvd ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658165#M448488</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;I have a unique list of Zone with four distinct Values&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Unique Zone List&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;NORTH&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SOUTH&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;EAST&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WEST&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want this to be conditionally joined to the source data in such a way that if for given company&amp;nbsp; a particular Zone does not exist&amp;nbsp; then it should be added to source data with measure (Profit) as 0 and stored in qvd .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="d6.PNG" style="width: 782px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25605i162EE73FB41A0C01/image-size/large?v=v2&amp;amp;px=999" role="button" title="d6.PNG" alt="d6.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data :&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Company, Zone, Profit&lt;BR /&gt;A, NORTH, 200&lt;BR /&gt;A, SOUTH, 100&lt;BR /&gt;B, EAST, 50&lt;BR /&gt;B, SOUTH, 75&lt;BR /&gt;C, NORTH, 20&lt;BR /&gt;C, SOUTH, 40&lt;BR /&gt;C, EAST, 20&lt;BR /&gt;C, WEST, 30&lt;BR /&gt;D, EAST, 70&lt;BR /&gt;&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you .&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 17:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658165#M448488</guid>
      <dc:creator>prahlad_infy</dc:creator>
      <dc:date>2019-12-16T17:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: How  conditional join script should be to store inflated data in qvd ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658389#M448509</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; ...&lt;BR /&gt;&lt;BR /&gt;How to do conditional join , where i intentionally want data to inflate ..&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 09:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658389#M448509</guid>
      <dc:creator>prahlad_infy</dc:creator>
      <dc:date>2019-12-17T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How  conditional join script should be to store inflated data in qvd ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658454#M448513</link>
      <description>&lt;P&gt;Here is one option&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Data:
LOAD * INLINE [
    Company, Zone, Profit
    A, NORTH, 200
    A, SOUTH, 100
    B, EAST, 50
    B, SOUTH, 75
    C, NORTH, 20
    C, SOUTH, 40
    C, EAST, 20
    C, WEST, 30
    D, EAST, 70
];

Concatenate(Data)
LOAD Company,
	 Zone,
	 Profit
Where Len(Trim(Zone)) &amp;gt; 0;
LOAD Company,
	 If(SubStringCount(Zone_List, SubField('NORTH,SOUTH,EAST,WEST', ',', IterNo())) = 1, Null(), SubField('NORTH,SOUTH,EAST,WEST', ',', IterNo())) as Zone,
	 0 as Profit
While IterNo() &amp;lt;= 4;
LOAD Company,
	 Concat(DISTINCT Zone, ',') as Zone_List,
	 4-Count(DISTINCT Zone) as Count
Resident Data
Group By Company;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Dec 2019 12:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658454#M448513</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-17T12:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How  conditional join script should be to store inflated data in qvd ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658510#M448517</link>
      <description>&lt;P&gt;Thank You Sunny . It worked , but actually in real data&amp;nbsp;Zone_List consist of many distinct values , and this approach requires hard coding&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="d8.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25662i4B9136F2A0FC3468/image-size/large?v=v2&amp;amp;px=999" role="button" title="d8.PNG" alt="d8.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any way alternate to avoid this ? I tried with Cartesian join but due to limited expertisee not able to get desired result .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 13:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658510#M448517</guid>
      <dc:creator>prahlad_infy</dc:creator>
      <dc:date>2019-12-17T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How  conditional join script should be to store inflated data in qvd ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658513#M448518</link>
      <description>&lt;P&gt;Without hard-coding&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Data:
LOAD * INLINE [
    Company, Zone, Profit
    A, NORTH, 200
    A, SOUTH, 100
    B, EAST, 50
    B, SOUTH, 75
    C, NORTH, 20
    C, SOUTH, 40
    C, EAST, 20
    C, WEST, 30
    D, EAST, 70
];

AllZones:
LOAD Concat(DISTINCT Zone, ',') as AllZones
Resident Data;

LET vAllZones = Peek('AllZones');
DROP Table AllZones;

Concatenate(Data)
LOAD Company,
	 Zone,
	 Profit
Where Len(Trim(Zone)) &amp;gt; 0;
LOAD Company,
	 If(SubStringCount(Zone_List, SubField('$(vAllZones)', ',', IterNo())) = 1, Null(), SubField('$(vAllZones)', ',', IterNo())) as Zone,
	 0 as Profit
While IterNo() &amp;lt;= FieldValueCount('Zone');
LOAD Company,
	 Concat(DISTINCT Zone, ',') as Zone_List,
	 4-Count(DISTINCT Zone) as Count
Resident Data
Group By Company;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Dec 2019 13:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-conditional-join-script-should-be-to-store-inflated-data-in/m-p/1658513#M448518</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-17T13:33:31Z</dc:date>
    </item>
  </channel>
</rss>

