<?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: Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771486#M717924</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/86075"&gt;@bellesol&lt;/a&gt;&amp;nbsp;, please try this script, it takes your data, then separeted to assign a type of movement&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;EnterDate, MonthEnterDate, DateOUT,MonthDateOUT, TotalValue$&lt;BR /&gt;21/10/2020,10, 04/11/2020,4, 361&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, 687&lt;BR /&gt;28/10/2020,10, 16/11/2020,11, 397&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, "2,822"&lt;BR /&gt;28/10/2020,10, 16/11/2020,11, 577&lt;BR /&gt;05/08/2020,08, 04/11/2020,11, "1,151"&lt;BR /&gt;05/08/2020,08, 04/11/2020,11, 413&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, "3,962"&lt;BR /&gt;11/11/2020,11, 16/11/2020,11, 849&lt;BR /&gt;22/01/2020,01, 20/08/2020,08, 103&lt;BR /&gt;04/11/2020,11, 16/11/2020,11, 83&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, 163&lt;BR /&gt;08/01/2020,01, 19/01/2020,01, 56&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'In' as Mov,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;EnterDate as Date,&lt;BR /&gt;MonthEnterDate as Month,&lt;BR /&gt;TotalValue$&lt;BR /&gt;REsident Data;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'Out' as Mov,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;DateOUT as Date,&lt;BR /&gt;MonthDateOUT as Month,&lt;BR /&gt;TotalValue$&lt;BR /&gt;REsident Data;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;drop table Data;&lt;/P&gt;&lt;P&gt;Then i create a stacked bar&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_0-1609615754766.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46353i926745C7D1E12D66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_0-1609615754766.png" alt="QFabian_0-1609615754766.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check the qvw&lt;/P&gt;</description>
    <pubDate>Sat, 02 Jan 2021 19:30:40 GMT</pubDate>
    <dc:creator>QFabian</dc:creator>
    <dc:date>2021-01-02T19:30:40Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771418#M717922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would Like to create a graph that display - how much inventory was enter the storage and how much inventory was exit the storage - by months.&lt;/P&gt;&lt;P&gt;The dimension is month enter&lt;/P&gt;&lt;P&gt;so the first expression that calculate&amp;nbsp;how much inventory entered the storage - sum([Total Value $])&lt;/P&gt;&lt;P&gt;how do I calculate how much inventory was exit the storage?&lt;/P&gt;&lt;P&gt;I would like to display it in one graph,&lt;/P&gt;&lt;P&gt;I created dummy data and two graph that I would like to combine to one, I would like to add the expression of how much inventory was out of the storage to the first graph.:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Enter Date, Month Enter Date, Date OUT,Month Date OUT, Total Value $&lt;BR /&gt;21/10/2020,10, 04/11/2020,4, 361&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, 687&lt;BR /&gt;28/10/2020,10, 16/11/2020,11, 397&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, "2,822"&lt;BR /&gt;28/10/2020,10, 16/11/2020,11, 577&lt;BR /&gt;05/08/2020,08, 04/11/2020,11, "1,151"&lt;BR /&gt;05/08/2020,08, 04/11/2020,11, 413&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, "3,962"&lt;BR /&gt;11/11/2020,11, 16/11/2020,11, 849&lt;BR /&gt;22/01/2020,01, 20/08/2020,08, 103&lt;BR /&gt;04/11/2020,11, 16/11/2020,11, 83&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, 163&lt;BR /&gt;08/01/2020,01, 19/01/2020,01, 56&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46335i4C2DBB02C0E1AC4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do I combine this two graph into one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771418#M717922</guid>
      <dc:creator>bellesol</dc:creator>
      <dc:date>2024-11-15T23:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771484#M717923</link>
      <description>&lt;P&gt;Hi, can someone please help ?:)&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 18:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771484#M717923</guid>
      <dc:creator>bellesol</dc:creator>
      <dc:date>2021-01-02T18:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771486#M717924</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/86075"&gt;@bellesol&lt;/a&gt;&amp;nbsp;, please try this script, it takes your data, then separeted to assign a type of movement&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;EnterDate, MonthEnterDate, DateOUT,MonthDateOUT, TotalValue$&lt;BR /&gt;21/10/2020,10, 04/11/2020,4, 361&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, 687&lt;BR /&gt;28/10/2020,10, 16/11/2020,11, 397&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, "2,822"&lt;BR /&gt;28/10/2020,10, 16/11/2020,11, 577&lt;BR /&gt;05/08/2020,08, 04/11/2020,11, "1,151"&lt;BR /&gt;05/08/2020,08, 04/11/2020,11, 413&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, "3,962"&lt;BR /&gt;11/11/2020,11, 16/11/2020,11, 849&lt;BR /&gt;22/01/2020,01, 20/08/2020,08, 103&lt;BR /&gt;04/11/2020,11, 16/11/2020,11, 83&lt;BR /&gt;15/01/2020,01, 19/01/2020,01, 163&lt;BR /&gt;08/01/2020,01, 19/01/2020,01, 56&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'In' as Mov,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;EnterDate as Date,&lt;BR /&gt;MonthEnterDate as Month,&lt;BR /&gt;TotalValue$&lt;BR /&gt;REsident Data;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'Out' as Mov,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;DateOUT as Date,&lt;BR /&gt;MonthDateOUT as Month,&lt;BR /&gt;TotalValue$&lt;BR /&gt;REsident Data;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;drop table Data;&lt;/P&gt;&lt;P&gt;Then i create a stacked bar&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_0-1609615754766.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46353i926745C7D1E12D66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_0-1609615754766.png" alt="QFabian_0-1609615754766.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check the qvw&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 19:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771486#M717924</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-01-02T19:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771488#M717925</link>
      <description>&lt;P&gt;Set analysis might not be the best tool to fix this. You will need to create a common date/month-dimension. I suggest a calendar-link-dimension&amp;nbsp; connection to&amp;nbsp; a master calendar.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1609616812373.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46354i47FE6BBE8BD4E133/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vegar_0-1609616812373.png" alt="Vegar_0-1609616812373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;OBS: You need to have [Calendar] as a dimension or specified in a set like this :&amp;nbsp;sum({&amp;lt;Calendar={'OUT'}&amp;gt;}[Total Value $])&lt;/P&gt;&lt;P&gt;&amp;nbsp;See script sample below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Transactions:
LOAD 
	AutoNumberHash128([Enter Date], [Date OUT]) as %calendarlinkID,
	[Total Value $],
	[Enter Date],
	[Date OUT]
INLINE [
Enter Date, Month Enter Date, Date OUT,Month Date OUT, Total Value $
21/10/2020,10, 04/11/2020,4, 361
15/01/2020,01, 19/01/2020,01, 687
28/10/2020,10, 16/11/2020,11, 397
15/01/2020,01, 19/01/2020,01, "2,822"
28/10/2020,10, 16/11/2020,11, 577
05/08/2020,08, 04/11/2020,11, "1,151"
05/08/2020,08, 04/11/2020,11, 413
15/01/2020,01, 19/01/2020,01, "3,962"
11/11/2020,11, 16/11/2020,11, 849
22/01/2020,01, 20/08/2020,08, 103
04/11/2020,11, 16/11/2020,11, 83
15/01/2020,01, 19/01/2020,01, 163
08/01/2020,01, 19/01/2020,01, 56
];


CalendarLink:
LOAD 
	%calendarlinkID,
	[Enter Date] as %Date,
	'Enter' as Calendar
Resident Transactions;
LOAD 
	%calendarlinkID,
	[Date OUT] as %Date,
	'OUT' as Calendar
Resident Transactions;

DROP FIELD [Date OUT], [Enter Date]; //I no longer need these two date fields in the transaction table;

/**
Generate a master calendar for all %Date values in the Calendar Link table. 
*/
LET vEnd= '31/12/2020';
LET vStart = '01/01/2020';

MasterCalendar:
Load %Date, 
	Month(%Date) as Month,
	NUM(Month(%Date)) as MontNum;
Load Date('$(vStart)' + RecNo()) as %Date autogenerate '$(vEnd)' - '$(vStart)' ;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A good read&amp;nbsp; is HIC's old blog post about&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578" target="_self"&gt;Canonical Date&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 19:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771488#M717925</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-01-02T19:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771873#M717926</link>
      <description>&lt;P&gt;Thank you guys !&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 11:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1771873#M717926</guid>
      <dc:creator>bellesol</dc:creator>
      <dc:date>2021-01-05T11:00:18Z</dc:date>
    </item>
  </channel>
</rss>

