<?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 Advanced set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Advanced-set-analysis/m-p/1882133#M72643</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;I analyze sales on ebay auctions. I have an auction list and a sale on them (by days [SalesDate]). Each auction has a start and end date (AuctionEndDate). I want to count auctions completed in a month that had sales in the last 7 days before the end.&lt;/P&gt;
&lt;P&gt;I want to get a simple table with two columns:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;month([AuctionEndDate]) and it is ok&lt;/LI&gt;
&lt;LI&gt;count of auctions with sales in last 7 days&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I tried with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count(DISTINCT {&amp;lt;[AuctionID] = {"=Sum({&amp;lt;[SalesDate]={"&amp;gt;$(=date([AuctionEndDate]-7))"}&amp;gt;}[Sales])&amp;gt;'0' "}&amp;gt;} [AuctionID])&lt;/P&gt;
&lt;P&gt;... but without success.&lt;/P&gt;
&lt;P&gt;Please help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 07:53:10 GMT</pubDate>
    <dc:creator>PapaJapa</dc:creator>
    <dc:date>2022-01-18T07:53:10Z</dc:date>
    <item>
      <title>Advanced set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Advanced-set-analysis/m-p/1882133#M72643</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;I analyze sales on ebay auctions. I have an auction list and a sale on them (by days [SalesDate]). Each auction has a start and end date (AuctionEndDate). I want to count auctions completed in a month that had sales in the last 7 days before the end.&lt;/P&gt;
&lt;P&gt;I want to get a simple table with two columns:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;month([AuctionEndDate]) and it is ok&lt;/LI&gt;
&lt;LI&gt;count of auctions with sales in last 7 days&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I tried with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count(DISTINCT {&amp;lt;[AuctionID] = {"=Sum({&amp;lt;[SalesDate]={"&amp;gt;$(=date([AuctionEndDate]-7))"}&amp;gt;}[Sales])&amp;gt;'0' "}&amp;gt;} [AuctionID])&lt;/P&gt;
&lt;P&gt;... but without success.&lt;/P&gt;
&lt;P&gt;Please help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 07:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Advanced-set-analysis/m-p/1882133#M72643</guid>
      <dc:creator>PapaJapa</dc:creator>
      <dc:date>2022-01-18T07:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Advanced-set-analysis/m-p/1882824#M72680</link>
      <description>&lt;P&gt;May i suggest to shift this problem into the script:&lt;/P&gt;
&lt;P&gt;Just create a new Fields:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If(AuctionEndDate&amp;gt;=Date(Today()-7),1,0) as last7Days_Flag&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;then you can transform your Set-Analysis: Count(distinct {&amp;lt;last7Days_Flag={1},Sales={"&amp;gt;0"}&amp;gt;} AuctionID)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Advanced-set-analysis/m-p/1882824#M72680</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-01-19T13:22:19Z</dc:date>
    </item>
  </channel>
</rss>

