<?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: Need Set Analysis help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781727#M276894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well your disconnected fiscal_calendar (a data island / date island) probably contribute to your performance problems. You can have multiple calenders in your data model. You can even have a master calendar og what Henric Cronström calls a canonical calendar in addition to multiple specific calendars. Have a look at his excellent explanation of this approach in the QlikView Design Blog: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One Canoncial calendar&lt;/LI&gt;&lt;LI&gt;One WorkLoad Calendar&lt;/LI&gt;&lt;LI&gt;One WorkingHours Calendar&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You will get the maxium flexiblity to achieve your necessary selections for differnt kinds of calculations and analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henric Cronström's blog article explain the necessary steps to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2015 14:53:31 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-01-30T14:53:31Z</dc:date>
    <item>
      <title>Need Set Analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781722#M276889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following table structure.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="302" src="https://community.qlik.com/legacyfs/online/76492_pastedImage_6.png" style="width: 743.016px; height: 302px;" width="743" /&gt;&lt;/P&gt;&lt;P&gt;I want to summarize the "Working Hours" where Calender Date = Working Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried with;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;sum({$&amp;lt;[Working Day]={"=[Calender Date]"}&amp;gt;}[Working Hours])&lt;/LI&gt;&lt;LI&gt;sum({$&amp;lt;counter={"=[Working Day]=[Calender Date]"}&amp;gt;}[Working Hours])&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the correct syntax for this using Set Analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 16:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781722#M276889</guid>
      <dc:creator />
      <dc:date>2015-01-28T16:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need Set Analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781723#M276890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not enough information.&lt;/P&gt;&lt;P&gt;If you want to use it in a chart, probably the correct syntax for this is to not use Set Analysis.&amp;nbsp; Can you upload the application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 18:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781723#M276890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-28T18:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Set Analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781724#M276891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although the documentation of QlikView says that you can write a valid Set Expressions the way you do it doesn't calculate... A bug it seems that Qlik hasn't bothered to fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luckily there is a way of calculating it by writing it this way:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-01-28 20_25_07-Greenshot.png" class="image-1 jive-image" src="/legacyfs/online/76511_2015-01-28 20_25_07-Greenshot.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;You will need to have a field in the same table as the field you are summing over which is a unique row ID.&lt;/P&gt;&lt;P&gt;I have called this &lt;STRONG&gt;ID&lt;/STRONG&gt; and put it in the working_hours table. Then you can do a search comparing Date with [Working Day]. It is important that you have this ID however to get QlikView to calculate. It can be autogenerated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a "raw hack" of a QlikView App that show it with a real example - if you need a working example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 19:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781724#M276891</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-01-28T19:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need Set Analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781725#M276892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUM({$&amp;lt;PrimaryKey={"=(Date)=[Working Days]"}&amp;gt;}[Working Hours])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 19:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781725#M276892</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-01-28T19:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Set Analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781726#M276893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got your example to work in my original application but it doesn't give me the result I was looking for. It summarizes the Working Hours but only when selected one specific date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76724_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Let me explain in more detail what I'm trying to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 contains [Workload Hours] per [Workload Required Date]&lt;/P&gt;&lt;P&gt;Table 2 contains [Capacity Hours] per [Capacity Day]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show in a diagram [Workload Hours] and [Capacity Hours] per day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76725_pastedImage_7.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(Blue line at the bottom is capacity but for some reason not working wright now).&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be accomplished by the following IF expression but this takes a long time to execute;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if([Calender Date]=[Workload Required Date], [Workload Hours])&lt;/P&gt;&lt;P&gt;sum(if([Calender Date]=[Capacity Day], [Capacity Hours])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I solve this using set analysis or have a approached the problem the wrong way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 14:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781726#M276893</guid>
      <dc:creator />
      <dc:date>2015-01-30T14:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need Set Analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781727#M276894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well your disconnected fiscal_calendar (a data island / date island) probably contribute to your performance problems. You can have multiple calenders in your data model. You can even have a master calendar og what Henric Cronström calls a canonical calendar in addition to multiple specific calendars. Have a look at his excellent explanation of this approach in the QlikView Design Blog: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One Canoncial calendar&lt;/LI&gt;&lt;LI&gt;One WorkLoad Calendar&lt;/LI&gt;&lt;LI&gt;One WorkingHours Calendar&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You will get the maxium flexiblity to achieve your necessary selections for differnt kinds of calculations and analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henric Cronström's blog article explain the necessary steps to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 14:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Set-Analysis-help/m-p/781727#M276894</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-01-30T14:53:31Z</dc:date>
    </item>
  </channel>
</rss>

