<?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 Set Expression for Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-for-Sales/m-p/1730157#M721958</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to find the Sales2 for my below dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For selections:&amp;nbsp;&lt;/P&gt;&lt;P&gt;End_Month Apr-20,Emp2 there are no APR-20 Sales1 values but Sales1 data is there for JAN-20,FEB-20,MAR-20.&lt;/P&gt;&lt;P&gt;End_Month Apr-20,Emp5 there are no APR-20 Sales1 values but Sales1 data is there for MAR-20&lt;/P&gt;&lt;P&gt;My requirement is to be shown as mentioned below:&lt;/P&gt;&lt;P&gt;For Emp2,End_Month values JAN-20,FEB-20,MAR-20,Sales2&lt;/P&gt;&lt;P&gt;For Emp5,End_Month values , MAR-20,Sales2&lt;/P&gt;&lt;P&gt;End_Month&lt;/P&gt;&lt;P&gt;I wrote this expression seems not working.&lt;/P&gt;&lt;P&gt;=Aggr(Only({&amp;lt;Start_Month=p(End_Month)&amp;gt;}End_Month), End_Month, EmpName)&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22678"&gt;@jagan&lt;/a&gt;&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-center" image-alt="Capture.JPG" style="width: 464px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37932i76F266260ED0BC45/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.JPG" style="width: 851px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37933i4A072C823C1F11DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>arethaking</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Set Expression for Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-for-Sales/m-p/1730157#M721958</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to find the Sales2 for my below dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For selections:&amp;nbsp;&lt;/P&gt;&lt;P&gt;End_Month Apr-20,Emp2 there are no APR-20 Sales1 values but Sales1 data is there for JAN-20,FEB-20,MAR-20.&lt;/P&gt;&lt;P&gt;End_Month Apr-20,Emp5 there are no APR-20 Sales1 values but Sales1 data is there for MAR-20&lt;/P&gt;&lt;P&gt;My requirement is to be shown as mentioned below:&lt;/P&gt;&lt;P&gt;For Emp2,End_Month values JAN-20,FEB-20,MAR-20,Sales2&lt;/P&gt;&lt;P&gt;For Emp5,End_Month values , MAR-20,Sales2&lt;/P&gt;&lt;P&gt;End_Month&lt;/P&gt;&lt;P&gt;I wrote this expression seems not working.&lt;/P&gt;&lt;P&gt;=Aggr(Only({&amp;lt;Start_Month=p(End_Month)&amp;gt;}End_Month), End_Month, EmpName)&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22678"&gt;@jagan&lt;/a&gt;&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-center" image-alt="Capture.JPG" style="width: 464px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37932i76F266260ED0BC45/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.JPG" style="width: 851px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37933i4A072C823C1F11DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-for-Sales/m-p/1730157#M721958</guid>
      <dc:creator>arethaking</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression for Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-for-Sales/m-p/1730198#M721959</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please update your script as below&lt;/P&gt;&lt;P&gt;LOAD *,&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;date(MonthEnd(End_Date),'MMM-YY') &amp;amp; '_' &amp;amp; EmpName as End_Key,&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;date(MonthEnd(Start_Date),'MMM-YY') &amp;amp; '_' &amp;amp; EmpName as Start_Key,&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;date(MonthEnd(End_Date),'MMM-YY') as End_Month,&lt;BR /&gt;date(MonthEnd(Start_Date),'MMM-YY') as Start_Month,&lt;BR /&gt;Year(Start_Date) as Start_Year,Year(End_Date) as End_Year;&lt;BR /&gt;LOAD End_Date,&lt;BR /&gt;Start_Date,&lt;BR /&gt;EmpName,&lt;BR /&gt;Sales1,&lt;BR /&gt;Sales2&lt;BR /&gt;FROM&lt;BR /&gt;Data - Copy.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Data);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And create chart as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimensions: EmpName, End_Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&amp;nbsp;sum({&amp;lt;End_Key=P({&amp;lt;End_Key=&amp;gt;}Start_Key)&amp;gt;}Sales2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 09:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-for-Sales/m-p/1730198#M721959</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2020-07-23T09:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression for Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-for-Sales/m-p/1730201#M721960</link>
      <description>&lt;P&gt;Try this it is working for End Month Selection&lt;/P&gt;&lt;P&gt;sum({&amp;lt;End_Month=, End_Key=P({&amp;lt;End_Month=, End_Key=&amp;gt;}Start_Key)&amp;gt;}Sales2)&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 09:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-for-Sales/m-p/1730201#M721960</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2020-07-23T09:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression for Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-for-Sales/m-p/1730203#M721961</link>
      <description>&lt;P&gt;Please find attached file for solution.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 09:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-for-Sales/m-p/1730203#M721961</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2020-07-23T09:38:08Z</dc:date>
    </item>
  </channel>
</rss>

