<?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 with Conditions and Filter Panel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512415#M749398</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you can, without resorting to a function per month, but I wonder if it will show you what you are expecting if you continue with these functions rather than rethinking what it should show.&lt;/P&gt;&lt;P&gt;So your first record from your initial post (6/27/2016) - would you want that to show in every subsequent month as it is still open?&lt;/P&gt;&lt;P&gt;Similarly, something that was open for a couple of months, but now closed, you do need to show that in your line chart for each month, or just its initial month?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 16:47:13 GMT</pubDate>
    <dc:creator>chrismarlow</dc:creator>
    <dc:date>2018-11-26T16:47:13Z</dc:date>
    <item>
      <title>Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1511122#M749391</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am struggling with the following issue:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to calculate two measures. The first one is called "total too late" which is the sum of all delivery items which have been delivered with delay for specific a period. The second one is called "Overdue" which is the sum of all delivery items which have not been delivered but do not belong to the period selected. Both measures make up the measure called “Total Delivery Items Not on Time”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the image below, the period selected is 2017-05 and the total number of delivery items are 3, two of them are "Overdue " and one is "Too late".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was able to calculate in Qlik the one called "Total Too Late" with the following formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Sum({&amp;lt;DOT_STATUS={'Too Late'}&amp;gt;}YCOUNT)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I could not to calculate the second measure "Overdue" which has to sum the total delivery items that do not belong to the current period selected but has the flag “Too Late”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="overdue example.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/845i42120AE0234FCD8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="overdue example.PNG" alt="overdue example.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is important to mention that&amp;nbsp;I have in my Dashboard in Qlik a Panel Filter for year and month. Then, the measure should take into account the month and year selected in the Filter Panel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any Idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1511122#M749391</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1511633#M749392</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There will be other ways to do this, but you could try something like in the attached.&lt;/P&gt;&lt;P&gt;Key parts;&lt;/P&gt;&lt;P&gt;1) Adding YearMonth to your data to make it easy to select the records before (as that seems to be where the 2 comes from ...) - (Year*100)+ Month as YearMonth&lt;/P&gt;&lt;P&gt;2) Setting vSelectedMonthYear as variable =(Year*100) + Month means the set analysis will be cleaner&lt;/P&gt;&lt;P&gt;3) Set analysis to cancel selections on Year/Month &amp;amp; apply &amp;lt; selection to YearMonth&amp;nbsp;=Sum({&amp;lt;DOT_STATUS={'Too Late'},Year=,Month=,YearMonth={'&amp;lt;$(=vSelectedYearMonth)'}&amp;gt;}Ycount), showing in the lower text object&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="365407.png" style="width: 644px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/905iFF6095748579D8E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="365407.png" alt="365407.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1511633#M749392</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-23T15:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512179#M749393</link>
      <description>&lt;P&gt;Hi Chris&lt;/P&gt;&lt;P&gt;Thank you for your contribution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have created a new field called "YearMonth" in the Master Calendar:&lt;/P&gt;&lt;P&gt;Date#((Date(monthstart(TempDate), 'YYYYMM')),'YYYYMM') As YearMonth&lt;/P&gt;&lt;P&gt;2. I used this field as Filter Pane in my Dashboard.&lt;/P&gt;&lt;P&gt;3. I tried to calculate the total number of delivery items with the flag "Too Late" for a specific period. The formula does not have any mistake, however it overestimated the total number of delivery items.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth={"&amp;lt;=$(=YearMonth)"},NotDeliveredYet={1}&amp;gt;}YCOUNT) //Overdue&lt;/P&gt;&lt;P&gt;+Sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth={$(=YearMonth)}&amp;gt;}YCOUNT)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Too Late for month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. I did not get completely your idea with the variable. I do not now know if just putting the field "YearMonth" in the formula it will work when the user select specific period.&lt;/P&gt;&lt;P&gt;Best regards and thank again,&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 12:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512179#M749393</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-11-26T12:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512232#M749394</link>
      <description>&lt;P&gt;Edi,&lt;/P&gt;&lt;P&gt;Adding to the master calendar and using that to filter, rather than use both month &amp;amp; year &amp;amp; bolt together, is a better solution than mine.&lt;/P&gt;&lt;P&gt;I think two tweaks and you are there;&lt;/P&gt;&lt;P&gt;1) I think you need &amp;lt; not &amp;lt;= in your set as you otherwise might double count in current month?&lt;/P&gt;&lt;P&gt;2) Although YearMonth is formatted YYYYMM it is still a date, so in the set analysis from (1) you need to format as a date, so;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth={"&amp;lt;$(=Date(YearMonth))"},NotDeliveredYet={1}&amp;gt;}YCOUNT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is confusing as it works for the second piece of set analysis, but then it is just looking for a match.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does that give you the right numbers?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chris.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 13:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512232#M749394</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-26T13:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512264#M749395</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your fast reply. I really appreciate that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, the number looks more appropriate, however I still need to make some tests &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have an additional question.&amp;nbsp; In the following formula, the part with bold font, should I also add the Date function?&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth={"&amp;lt;$(=Date(YearMonth))"},NotDeliveredYet={1}&amp;gt;}YCOUNT) //Overdue&lt;/P&gt;&lt;P&gt;+Sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth=&lt;FONT face="arial black,avant garde"&gt;{$(=YearMonth)}&lt;/FONT&gt;&amp;gt;}YCOUNT) //Too Late for month selected&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 13:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512264#M749395</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-11-26T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512299#M749396</link>
      <description>&lt;P&gt;Edi,&lt;/P&gt;&lt;P&gt;I don't think you need to, at least in what I am seeing it works without (although as you say you need to test more, I find dates &amp;amp; set analysis/QlikView&amp;nbsp;generally fiddly, although I am sure there is ultimately logic to it);&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20181126_1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/984i7EB9A2F1AA379ACB/image-size/large?v=v2&amp;amp;px=999" role="button" title="20181126_1.png" alt="20181126_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 13:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512299#M749396</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-26T13:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512311#M749397</link>
      <description>&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;I have an additional question. Now I am struggling in creating the evolution of those measures. I would like to do a Line Graph.&lt;/P&gt;&lt;P&gt;As the overdue measure "Not on Time"&amp;nbsp; calculates the number of delivered items with the flag "Too Late" or "Too Early" for a specific period of time, how can I do a Line Graph to see the evolution?&lt;/P&gt;&lt;P&gt;Should I create a measure by each month? I know it is not an efficient solution, but how to implement the "Overdue" logic..&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 14:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512311#M749397</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-11-26T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512415#M749398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you can, without resorting to a function per month, but I wonder if it will show you what you are expecting if you continue with these functions rather than rethinking what it should show.&lt;/P&gt;&lt;P&gt;So your first record from your initial post (6/27/2016) - would you want that to show in every subsequent month as it is still open?&lt;/P&gt;&lt;P&gt;Similarly, something that was open for a couple of months, but now closed, you do need to show that in your line chart for each month, or just its initial month?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 16:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512415#M749398</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-26T16:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512814#M749399</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically what I want to to do is sth like this:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableMeasures.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1073iD2D78E152BFBD39C/image-size/large?v=v2&amp;amp;px=999" role="button" title="TableMeasures.PNG" alt="TableMeasures.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;when the user select the YearMonth in the filter, automatically the cells should be populated. If the user selected 201501, the cell Month-12 should calculate the measure for the period 201401 (12 months before) and so on...&lt;/P&gt;&lt;P&gt;I think I should create a measure by month....but it will involve many measures....&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 12:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1512814#M749399</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-11-27T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1513009#M749400</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You shouldn't need different measures by date. So you would either use your existing date field as a dimension (&amp;amp; change your formulae), or create a calendar table (and again change your formulae), or you could use a ValueLoop to create a synthetic dimension &amp;amp; use that (&lt;SPAN&gt;and again change your formulae&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;Which is best depends on how each record that is tagged appears in the measures (in your time series view I am not sure you want to show the same record in more than one month - in which case I think you just use your existing date field).&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 15:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1513009#M749400</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-27T15:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1514287#M749401</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following formula is not working:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*---------------------------------------------------------------------------------------------------*&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DOT_STATUS={'Too Late'},PlannedGoodsMov={"&amp;lt;$(=Date(YearMonth))"},NotDeliveredYet={1}&amp;gt;}YCOUNT)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;+Sum({&amp;lt;DOT_STATUS={'Too Late'},PlannedGoodsMov={"&amp;lt;$(=Date(YearMonth))"},NotDeliveredYet={0},ActualGoodsMov={"&amp;gt;$(=Date(YearMonth))"}&amp;gt;}YCOUNT)&amp;nbsp;&lt;/P&gt;&lt;P&gt;*---------------------------------------------------------------------------------------------------*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first part should sum all delivered items which were placed late and for a period lower than the selected one (i.e. it is determined by YearMonth field).&lt;/P&gt;&lt;P&gt;The second one it is the same but with an additional condition ActualGoodsMov={"&amp;gt;$(=Date(YearMonth))"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fields ActualGoodsMov and PlannedGoodsMov were created as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*---------------------------------------------------------------------------------------------------*&lt;/P&gt;&lt;P&gt;Date(Date#(YWADAT, 'YYYYMMDD'),&amp;nbsp; 'DD.MM.YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; as PlannedGoodsMov,&lt;/P&gt;&lt;P&gt;Date(Date#("0DATE",'YYYYMMDD'),&amp;nbsp; 'DD.MM.YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; as ActualGoodsMov,&lt;/P&gt;&lt;P&gt;Date(Date#(YWADAT, 'YYYYMMDD'),&amp;nbsp; 'DD.MM.YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as DateKey;&lt;/P&gt;&lt;P&gt;*---------------------------------------------------------------------------------------------------*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Master Calendar the YearMonth was created as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*---------------------------------------------------------------------------------------------------*&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;TempDate AS DateKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;week(TempDate) As Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Year(TempDate) As Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Month(TempDate) As Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Day(TempDate) As Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear,&lt;/P&gt;&lt;P&gt;Date(monthstart(TempDate), 'YYYYMM') As YearMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;WeekDay(TempDate) as WeekDay;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;date(mindate + IterNo()) AS TempDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;,maxdate // Used in InYearToDate() above, but not kept&lt;/P&gt;&lt;P&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;min(FieldValue('DateKey', recno()))-1 as mindate,&lt;/P&gt;&lt;P&gt;//&amp;nbsp; '01.01.2012' as mindate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;max(FieldValue('DateKey', recno())) as maxdate&lt;/P&gt;&lt;P&gt;//&amp;nbsp; '01.01.2025' as maxdate&lt;/P&gt;&lt;P&gt;AUTOGENERATE FieldValueCount('DateKey');&lt;/P&gt;&lt;P&gt;*---------------------------------------------------------------------------------------------------*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here goes an example of items that for the period 201507 should be included in the second part of the formula, but it does not work:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The item should has been delivered on 23.12.2014&lt;/LI&gt;&lt;LI&gt;The item was delivered 09.09.2015&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Considering we select the period 201507, this items should be calculated in the second part of the formula as the PlannedGodsMov is lower than the period selected 201507 and the ActualGoodsMov is higher than the period selected 201507. The items met those conditions, but the formula does not work. See image attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hint?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 13:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1514287#M749401</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-11-29T13:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1514990#M749402</link>
      <description>&lt;P&gt;Hi Edi,&lt;/P&gt;&lt;P&gt;Because you are making a selection on YearMonth, and &lt;SPAN&gt;DateKey&lt;/SPAN&gt; associates/joins your calendar to your fact table, you would need to cancel it to not have that reduce the set, you can do that by adding YearMonth= to the set analysis (or possibly starting with 1, i.e. working from&amp;nbsp; the full population) or breaking the association (i.e. change the &lt;SPAN&gt;DateKey&lt;/SPAN&gt;&amp;nbsp; field name in one or the other and the calendar becomes a data island).&lt;/P&gt;&lt;P&gt;Which way you go depends on the rest of what you want to model.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 15:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1514990#M749402</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-30T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1515008#M749403</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;Thanks a lot. I broke the association between the fact table and the calendar and it works..&lt;/P&gt;&lt;P&gt;However, I am wondering how Qlik sense works.. Because usually, for example in Power Pivot, you need too link your fact table to your calendar (i.e. a tables which contains time dimensions like month, year, quarter, so on..).&lt;/P&gt;&lt;P&gt;Here, I have disconnected the calendar from the fact table and if I created a new sheet with YearMonth as Filter Pane and created a simple table on this sheet. The data on this table will be affected by the Filter Pane...but the Filter pane it is based on a field which is not connected to the model....so how it works??&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 16:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1515008#M749403</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-11-30T16:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Conditions and Filter Panel</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1515023#M749404</link>
      <description>&lt;P&gt;Hi Edi,&lt;/P&gt;&lt;P&gt;I am not sure I follow. In the formulae you have you are in effect creating a link in the set analysis between the disconnected parts of the model. If your second set of visualisations (on same model) does not use similar then I don't understand, you would need to put up some detail.&lt;/P&gt;&lt;P&gt;My experience of QlikView is that generally you are trying to create a walled garden slightly bigger than the set of questions you have been tasked to dashboard, the benefit then being the associative behaviour/connectivity (which is reduced a bit when you do things like create data islands). Having done a bit of Power Query I suspect for your questions on this set of data you would end up with a number of more loosely connected queries that processed the data further, i.e. the modelling would be in those queries, rather than in the pivot table/charts (or Power Pivot), vs. Qlik, where you are doing more in the visualisations themselves.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 16:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Conditions-and-Filter-Panel/m-p/1515023#M749404</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-30T16:36:31Z</dc:date>
    </item>
  </channel>
</rss>

