<?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: Sum if on Date Island - With AND additional Expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761634#M270884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with such a small volume of data, just about anything would fly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet, you can solve the problem of showing dates when there is no production can be solved with the traditional Master Calendar table that is linked to your Production Dates. Just make sure to include all the dates between the first Production Date and the last Production Date in the Master Calendar, and then you can easily show dates with or without production activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2015 21:45:04 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2015-03-20T21:45:04Z</dc:date>
    <item>
      <title>Sum if on Date Island - With AND additional Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761630#M270880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get the the following statement correct. I have the first version which work ok , but when I try to add a second part to the if statement it calls it invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Syntax that is OK. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Delivered2]&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;, (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;NewUnits&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;TimePer&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;)/60)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Syntax that is an invalid Expression. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;[Delivered2]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;[Date]&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;and sum(Capacity)-sum((NewUnits*TimePer)/60)&amp;lt;0&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, (&lt;/SPAN&gt;NewUnits&lt;SPAN class="s2"&gt;*&lt;/SPAN&gt;TimePer&lt;SPAN class="s2"&gt;)/60)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;So if I add the underlined element it calls it an invalid expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;Any help thankfully received. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 16:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761630#M270880</guid>
      <dc:creator />
      <dc:date>2015-03-20T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if on Date Island - With AND additional Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761631#M270881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(if( ... sum(...) ...)). You're nesting sums. Over which dimensions should sum(Capacity) be calculated? You should use the aggr function to specify these dimensions: sum(if( ... and&lt;STRONG&gt; aggr(sum(Capacity),MyDim1,MyDim2))&lt;/STRONG&gt; ...&amp;lt;0). ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 17:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761631#M270881</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-20T17:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if on Date Island - With AND additional Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761632#M270882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me add that this formula could only work on a tiny data set. It will be extremely slow even on mid-size data sets. On a large data set, it will take forever to get calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that when you use a data island in a calculation like this one, QlikView will have to build a Cartesian Join between your Fact table and the Date island, i.e. link &lt;STRONG&gt;all&lt;/STRONG&gt; transactions to &lt;STRONG&gt;all&lt;/STRONG&gt; dates. Just to visualize the problem - if your Fact table contains a modest 1 mil. rows, and your Date table covers 3 years (approx. 1,000 dates), the Cartesian Join table will contain 1 Billion rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend to look for a better data model than using Date Islands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.masterssummit.com/"&gt;www.masterssummit.com&lt;/A&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 17:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761632#M270882</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-03-20T17:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if on Date Island - With AND additional Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761633#M270883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info, very useful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a planning tools for production off the back of sales orders, the application has an avg 11k lines and we only look forward for 40 days maximum to view the capacity of the factory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key to date island is display days when there is no production which has given me the biggest headache. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So any further help would be great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 18:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761633#M270883</guid>
      <dc:creator />
      <dc:date>2015-03-20T18:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if on Date Island - With AND additional Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761634#M270884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with such a small volume of data, just about anything would fly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet, you can solve the problem of showing dates when there is no production can be solved with the traditional Master Calendar table that is linked to your Production Dates. Just make sure to include all the dates between the first Production Date and the last Production Date in the Master Calendar, and then you can easily show dates with or without production activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 21:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-on-Date-Island-With-AND-additional-Expression/m-p/761634#M270884</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-03-20T21:45:04Z</dc:date>
    </item>
  </channel>
</rss>

