<?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: Scripting Issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Scripting-Issue/m-p/1854623#M70551</link>
    <description>&lt;P&gt;Hey, try this:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;temp_sellin:
LOAD * INLINE [
WeeKendDate,Sellin
02.10.2021,10
16.10.2021,200
23.10.2021,100
30.10.2021,50
06.11.2021,32
13.11.2021,45
20.11.2021,78
27.11.2021,10
];

temp_sellout:
LOAD * INLINE [
WeeKendDate,Sellout
09.10.2021,5
16.10.2021,77
23.10.2021,42
30.10.2021,12
06.11.2021,10
13.11.2021,4
27.11.2021,8
];

temp_final_table:
LOAD DISTINCT
WeeKendDate
RESIDENT temp_sellin;

CONCATENATE (temp_final_table)
LOAD DISTINCT
WeeKendDate
RESIDENT temp_sellout;

JOIN (temp_final_table)
LOAD
WeeKendDate,
SUM(Sellin) AS Sellin
RESIDENT temp_sellin
GROUP BY WeeKendDate;

DROP TABLE temp_sellin;

JOIN (temp_final_table)
LOAD
WeeKendDate,
SUM(Sellout) AS Sellout
RESIDENT temp_sellout
GROUP BY WeeKendDate;

DROP TABLE temp_sellout;

final_table:
NoConcatenate
LOAD
WeeKendDate,
RANGESUM(Sellin,0) AS Sellin,
RANGESUM(Sellout,0) AS Sellout
RESIDENT temp_final_table;

DROP TABLE temp_final_table;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 02 Nov 2021 11:52:24 GMT</pubDate>
    <dc:creator>RsQK</dc:creator>
    <dc:date>2021-11-02T11:52:24Z</dc:date>
    <item>
      <title>Scripting Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Scripting-Issue/m-p/1854470#M70534</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;i am having sellin and sellout with different dates.Issue show in below image&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue.PNG" style="width: 796px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65749i6724F31D569A3126/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue.PNG" alt="issue.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;some days dont have sellin and some dates dont have sellout values.But combinely i want a table with missed values as zero in both the cases&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Scripting-Issue/m-p/1854470#M70534</guid>
      <dc:creator>kmmqlick</dc:creator>
      <dc:date>2021-11-30T16:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Scripting-Issue/m-p/1854505#M70536</link>
      <description>&lt;P&gt;If the zeros are important then try something like this.&lt;/P&gt;
&lt;P&gt;TableAB:&lt;/P&gt;
&lt;P&gt;Load * tableA;&lt;/P&gt;
&lt;P&gt;Join Load * TableB;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;NoConcatenate Load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WeekKendDate,&lt;/P&gt;
&lt;P&gt;alt(Sellin,0) AS Sellin,&lt;/P&gt;
&lt;P&gt;alt(Sellout,0) AS Sellout&lt;/P&gt;
&lt;P&gt;Resident tableAB;&lt;/P&gt;
&lt;P&gt;Drop table tableAB;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 06:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Scripting-Issue/m-p/1854505#M70536</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-11-02T06:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Scripting-Issue/m-p/1854623#M70551</link>
      <description>&lt;P&gt;Hey, try this:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;temp_sellin:
LOAD * INLINE [
WeeKendDate,Sellin
02.10.2021,10
16.10.2021,200
23.10.2021,100
30.10.2021,50
06.11.2021,32
13.11.2021,45
20.11.2021,78
27.11.2021,10
];

temp_sellout:
LOAD * INLINE [
WeeKendDate,Sellout
09.10.2021,5
16.10.2021,77
23.10.2021,42
30.10.2021,12
06.11.2021,10
13.11.2021,4
27.11.2021,8
];

temp_final_table:
LOAD DISTINCT
WeeKendDate
RESIDENT temp_sellin;

CONCATENATE (temp_final_table)
LOAD DISTINCT
WeeKendDate
RESIDENT temp_sellout;

JOIN (temp_final_table)
LOAD
WeeKendDate,
SUM(Sellin) AS Sellin
RESIDENT temp_sellin
GROUP BY WeeKendDate;

DROP TABLE temp_sellin;

JOIN (temp_final_table)
LOAD
WeeKendDate,
SUM(Sellout) AS Sellout
RESIDENT temp_sellout
GROUP BY WeeKendDate;

DROP TABLE temp_sellout;

final_table:
NoConcatenate
LOAD
WeeKendDate,
RANGESUM(Sellin,0) AS Sellin,
RANGESUM(Sellout,0) AS Sellout
RESIDENT temp_final_table;

DROP TABLE temp_final_table;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Nov 2021 11:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Scripting-Issue/m-p/1854623#M70551</guid>
      <dc:creator>RsQK</dc:creator>
      <dc:date>2021-11-02T11:52:24Z</dc:date>
    </item>
  </channel>
</rss>

