<?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 anaylisis for Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-anaylisis-for-Pivot-Table/m-p/2034234#M85231</link>
    <description>&lt;P&gt;Hello to all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a list of cusomer with quantity, date, region, sub region and Sales responsible. I woul like to do a pivot table&amp;nbsp; with region, sub region and Sales reps in row and column of month. The data to be displayed are the sum of quantities realized in 2023 for the customer that did not had any sales during the last to years (Q= 0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have tried the follong formula bu it does not work at all&lt;/P&gt;
&lt;P&gt;=if(aggr(sum({&amp;lt; YEAR= {"&amp;lt;=$(Vannee-1)"},NO_CUST=,MONTH=&amp;gt;}Q),NO_CUST&amp;lt;=0,&lt;BR /&gt;sum({&amp;lt; YEAR= {"$(Vannee)"}, NO_CUST=, MONTH=&amp;gt;}&lt;BR /&gt;Q),0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added in excel cause it shows in the pivot what i want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance....&lt;/P&gt;</description>
    <pubDate>Sun, 05 Feb 2023 20:12:41 GMT</pubDate>
    <dc:creator>Nikomotte</dc:creator>
    <dc:date>2023-02-05T20:12:41Z</dc:date>
    <item>
      <title>Set anaylisis for Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-anaylisis-for-Pivot-Table/m-p/2034234#M85231</link>
      <description>&lt;P&gt;Hello to all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a list of cusomer with quantity, date, region, sub region and Sales responsible. I woul like to do a pivot table&amp;nbsp; with region, sub region and Sales reps in row and column of month. The data to be displayed are the sum of quantities realized in 2023 for the customer that did not had any sales during the last to years (Q= 0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have tried the follong formula bu it does not work at all&lt;/P&gt;
&lt;P&gt;=if(aggr(sum({&amp;lt; YEAR= {"&amp;lt;=$(Vannee-1)"},NO_CUST=,MONTH=&amp;gt;}Q),NO_CUST&amp;lt;=0,&lt;BR /&gt;sum({&amp;lt; YEAR= {"$(Vannee)"}, NO_CUST=, MONTH=&amp;gt;}&lt;BR /&gt;Q),0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added in excel cause it shows in the pivot what i want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance....&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 20:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-anaylisis-for-Pivot-Table/m-p/2034234#M85231</guid>
      <dc:creator>Nikomotte</dc:creator>
      <dc:date>2023-02-05T20:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set anaylisis for Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-anaylisis-for-Pivot-Table/m-p/2034645#M85269</link>
      <description>&lt;P&gt;If the &lt;EM&gt;not active previous years condition&lt;/EM&gt; does not need to be dynamic, I would use the load script to calculate that.&amp;nbsp; Could something like the following work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Left keep(DATA)
Load 
  NO_CUST,
  if(sum(if(YEAR&amp;lt;=2022,Q,0))&amp;gt;0, 1,0) as [Active previous year flg]
resident DATA 
Group By NO_CUST; &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;with measure:&lt;/P&gt;
&lt;P&gt;sum({$&amp;lt;[Active previous year flg]={0}, YEAR={'2023}&amp;gt;} Q).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 21:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-anaylisis-for-Pivot-Table/m-p/2034645#M85269</guid>
      <dc:creator>E_Røse</dc:creator>
      <dc:date>2023-02-06T21:06:51Z</dc:date>
    </item>
  </channel>
</rss>

