<?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 SV:Set Analysis Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197209#M503108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not use set analysis to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would do something like this:&lt;/P&gt;&lt;P&gt;In the load script:&lt;/P&gt;&lt;P&gt;Use the Colaborador table to build a new table where each Employee has a record with a date interval specifying the salary for that period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use that new table to get the employees salary for a given date (performing an interval match)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Sep 2010 13:58:59 GMT</pubDate>
    <dc:creator>gandalfgray</dc:creator>
    <dc:date>2010-09-13T13:58:59Z</dc:date>
    <item>
      <title>Set Analysis Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197206#M503105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to find a way to retrieve a value in a table using set analysis.&lt;/P&gt;&lt;P&gt;In this table we have salary of a employee over the time, we have all the salary on each month.&lt;/P&gt;&lt;P&gt;In a graph we need to show the value of salary of the last salary change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.03.10.13/teste.qvw]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 15:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197206#M503105</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2010-09-10T15:18:36Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197207#M503106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A sample application is attached. Can anyone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 19:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197207#M503106</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2010-09-10T19:00:59Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197208#M503107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can post more examples if my question was confusing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 12:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197208#M503107</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2010-09-13T12:25:53Z</dc:date>
    </item>
    <item>
      <title>SV:Set Analysis Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197209#M503108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not use set analysis to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would do something like this:&lt;/P&gt;&lt;P&gt;In the load script:&lt;/P&gt;&lt;P&gt;Use the Colaborador table to build a new table where each Employee has a record with a date interval specifying the salary for that period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use that new table to get the employees salary for a given date (performing an interval match)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 13:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197209#M503108</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2010-09-13T13:58:59Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197210#M503109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Yuri.&lt;/P&gt;&lt;P&gt;by you TESTE.qvw, it seems you are Brazilian as well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have done a similar thing. But I did it on Load as suggested above:&lt;/P&gt;&lt;P&gt;// date range that the value was valid&lt;BR /&gt;PositionValues:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Position, INI_KEY_DATE,FIN_KEY_DATE, salary&lt;BR /&gt; 1, 200801, 201001, 6&lt;BR /&gt; 1, 201002, 999999, 8];&lt;/P&gt;&lt;P&gt;// activites done and their dates&lt;BR /&gt;Activities:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Employee, Position, Date_Activiry&lt;BR /&gt;Fulano1, 1, 2010001&lt;BR /&gt;Fulano1, 1, 2010007&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;// join both of them&lt;BR /&gt;XList_1:&lt;BR /&gt;Load Postiion, INI_KEY_DATE,FIN_KEY_DATE, salary&lt;BR /&gt;Resident PositionValues;&lt;BR /&gt;join&lt;BR /&gt;Load Employee, Position, Date_Activiry&lt;BR /&gt;Resident Activities;&lt;/P&gt;&lt;P&gt;// calculate wich ones are valid&lt;BR /&gt;Xlist_2:&lt;BR /&gt;NOCONCATENATE&lt;BR /&gt;LOAD *, if((Date_Activiry&amp;gt;=INI_KEY_DATE and Date_Activiry&amp;lt;=FIN_KEY_DATE), 1, -1) AS ValidLine&lt;BR /&gt;RESIDENT XList_1;&lt;/P&gt;&lt;P&gt;// The final Table&lt;BR /&gt;ActivitiesValue:&lt;BR /&gt;Load Employee, Position, Date_Activiry, salary&lt;BR /&gt;Resident Xlist_2&lt;BR /&gt;Where ValidLine = 1;&lt;/P&gt;&lt;P&gt;// get rid of the rest&lt;BR /&gt;drop table XList_1;&lt;BR /&gt;drop table XList_2;&lt;/P&gt;&lt;P&gt;Just made on the Notepad, so it may have some ; or : problem. But the idea is there.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Adriano&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 15:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197210#M503109</guid>
      <dc:creator />
      <dc:date>2010-09-13T15:39:07Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197211#M503110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I found another way to solve my problem by using the proper interval match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 21:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expressions/m-p/197211#M503110</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2010-09-16T21:35:17Z</dc:date>
    </item>
  </channel>
</rss>

