<?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 HELP in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617561#M735540</link>
    <description>&lt;P&gt;Not able to completely understand the problem without seeing it. Are you able to share an example where we can see the issue?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2019 11:06:51 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-08-28T11:06:51Z</dc:date>
    <item>
      <title>SET ANALYSIS HELP</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617240#M735533</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to add a condition using set analysis to take into account only last 7 days.&lt;/P&gt;&lt;P&gt;This is the formula I'm using to calculate the "utilization" of our shops (and it's working fine):&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#0000ff"&gt;MAX&lt;/FONT&gt;&lt;FONT size="4"&gt;(&lt;/FONT&gt;&lt;FONT size="4" color="#0000ff"&gt;AGGR&lt;/FONT&gt;&lt;FONT size="4"&gt;(&lt;/FONT&gt;&lt;FONT size="4" color="#0000ff"&gt;SUM&lt;/FONT&gt;&lt;FONT size="4"&gt;(&lt;/FONT&gt;&lt;FONT size="4" color="#800000"&gt;CUSTOMERS&lt;/FONT&gt;&lt;FONT size="4"&gt;),&lt;/FONT&gt;&lt;FONT size="4" color="#800000"&gt;PERIOD&lt;/FONT&gt;&lt;FONT size="4"&gt;, &lt;/FONT&gt;&lt;FONT size="4" color="#800000"&gt;SHOP&lt;/FONT&gt;&lt;FONT size="4"&gt;))&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;BR /&gt;/&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="4" color="#0000ff"&gt;FirstSortedValue&lt;/FONT&gt;&lt;FONT size="4"&gt;(&lt;/FONT&gt;&lt;FONT size="4" color="#800000"&gt;EMPLOYEES&lt;/FONT&gt;&lt;FONT size="4"&gt;, -&lt;/FONT&gt;&lt;FONT size="4" color="#0000ff"&gt;Aggr&lt;/FONT&gt;&lt;FONT size="4"&gt;(&lt;/FONT&gt;&lt;FONT size="4" color="#0000ff"&gt;SUM&lt;/FONT&gt;&lt;FONT size="4"&gt;(&lt;/FONT&gt;&lt;FONT size="4" color="#800000"&gt;CUSTOMERS&lt;/FONT&gt;&lt;FONT size="4"&gt;),&lt;/FONT&gt;&lt;FONT size="4" color="#800000"&gt;PERIOD&lt;/FONT&gt;&lt;FONT size="4"&gt;, &lt;/FONT&gt;&lt;FONT size="4" color="#800000"&gt;SHOP&lt;/FONT&gt;&lt;FONT size="4"&gt;))&lt;BR /&gt;/&lt;BR /&gt;15&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Period is a time dimension in the format: 'DD/MM/YYYY hh:mm:ss' (data are refreshed every 15 minutes)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I already defined a DATE dimension (DD/MM/YYYY) in the loading script.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Please can you guide me how to use set analysis to consider only last 7 days?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Thank you&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617240#M735533</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2024-11-16T02:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS HELP</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617250#M735534</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Max({&amp;lt;DATE = {"&amp;gt;=$(=Date(Today(1)-7, 'DD/MM/YYYY'))"}&amp;gt;} Aggr(Sum({&amp;lt;DATE = {"&amp;gt;=$(=Date(Today(1)-7, 'DD/MM/YYYY'))"}&amp;gt;} CUSTOMERS), PERIOD, SHOP))
/
FirstSortedValue({&amp;lt;DATE = {"&amp;gt;=$(=Date(Today(1)-7, 'DD/MM/YYYY'))"}&amp;gt;} EMPLOYEES, -Aggr(Sum({&amp;lt;DATE = {"&amp;gt;=$(=Date(Today(1)-7, 'DD/MM/YYYY'))"}&amp;gt;}CUSTOMERS), PERIOD, SHOP))
/
15&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 17:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617250#M735534</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-27T17:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS HELP</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617360#M735536</link>
      <description>&lt;P&gt;Hi Sunny, that's unfortunately not working.&lt;/P&gt;&lt;P&gt;I tried with a similar structure (but using max(DATE) as function to define the date), and doesn't work either.&lt;/P&gt;&lt;P&gt;Probably I shouldn't put the sets both in inner and outer aggregation, but can't find a combination that's working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 06:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617360#M735536</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2019-08-28T06:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS HELP</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617475#M735538</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I solved using&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;{&amp;lt;&lt;/FONT&gt;&lt;FONT size="4" color="#800000"&gt;DATE&lt;/FONT&gt;&lt;FONT size="4"&gt;={&lt;/FONT&gt;&lt;FONT size="4" color="#800000"&gt;"&amp;gt;=$(=Date(max(DATE)-7,'DD/MM/YYYY'))"&lt;/FONT&gt;&lt;FONT size="4"&gt;}&amp;gt;} &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;probably just an issue with the spacing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;The issue I have now is regarding the shops which closed -&amp;gt; eg in the last week I don't have any data for a specific shop, so I would expect to have 0% utilization, while I get the utilization for the last 7 days available (meaning 2 weeks ago).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;How could&amp;nbsp;I fix this?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Thank you again&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 09:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617475#M735538</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2019-08-28T09:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS HELP</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617561#M735540</link>
      <description>&lt;P&gt;Not able to completely understand the problem without seeing it. Are you able to share an example where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 11:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617561#M735540</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-28T11:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS HELP</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617597#M735542</link>
      <description>&lt;P&gt;okay, let's assume the last data load happened on June 16th.&lt;/P&gt;&lt;P&gt;the set we put in the function, limits the data to the last 7 days available --&amp;gt; june 10th till june 16th.&lt;/P&gt;&lt;P&gt;Shops A, B and C were regularly open in this period --&amp;gt; the formula works fine, taking into account the period june 10-16.&lt;/P&gt;&lt;P&gt;Shop C was closed in these dates, meaning that I didn't get any record from our database --&amp;gt; formula takes into account the period june 4th till june 10th, showing me the result for this period instead of 0 as I would expect.&lt;/P&gt;&lt;P&gt;Hope is clear now, otherwise will try to fake the data &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 11:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-HELP/m-p/1617597#M735542</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2019-08-28T11:56:53Z</dc:date>
    </item>
  </channel>
</rss>

