<?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 to latest month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214951#M871900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks for the help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only returns me the latest month.&amp;nbsp; I want a sum of all month's up to the latest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2016 12:41:39 GMT</pubDate>
    <dc:creator>alwayslearning</dc:creator>
    <dc:date>2016-11-23T12:41:39Z</dc:date>
    <item>
      <title>sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214947#M871896</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 a field named month which give me data in a dd/mm/yyyy format.&amp;nbsp; I then have a target column I want to just sum to latest month. i.e. if it is November there will be data for the full year but I want it to just show up to November.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other thing is that I don't want this figure to change no matter what selection is made by the user from the various Listboxes I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214947#M871896</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214948#M871897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you Don't have YearStart Field then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;CalendarDate = {"&amp;gt;=$(=Date(YearStart(Max(CalendarDate))))&amp;lt;=$(=Date(Max(CalendarDate)))"}&amp;gt;}Target)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;CalendarDate = {"&amp;gt;=$(=Date(Max(YearStart)))&amp;lt;=$(=Date(Max(CalendarDate)))"}&amp;gt;}Target)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 11:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214948#M871897</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2016-11-23T11:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214949#M871898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why can't simple set operator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you should have month field from script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(Datefield) as Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then try to use this from your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Month = {'$(=Max(Month))'}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 12:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214949#M871898</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-11-23T12:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214950#M871899</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;Both the above expressions return me the total year value and not up to the latest month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a year start value. I do have a year field but it is not a date format and just a string yyyy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 12:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214950#M871899</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2016-11-23T12:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214951#M871900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks for the help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only returns me the latest month.&amp;nbsp; I want a sum of all month's up to the latest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 12:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214951#M871900</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2016-11-23T12:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214952#M871901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then use something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum({&amp;lt;Month = {&amp;gt;=Month(YearStart(Today())) &amp;lt;= Max(Month)}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 13:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214952#M871901</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-11-23T13:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214953#M871902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the below in Master Calendar script&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If( Date &amp;gt; monthstart(addmonths(today(),-10)) and Date &amp;lt;= today(),1)&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;as [Rolling 11],&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in your expression use&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[Rolling 11]={1}, your dimension/measure&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Rolling 11 will only give you data only until Nov-2016.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214953#M871902</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-11-23T14:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214954#M871903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kwok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First convert that date into month like :- Date(DateField,'YYYY-MM')&lt;/P&gt;&lt;P&gt;now raise a flag like if(interval(date(today(),'YYYY-MM'),&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Date(DateField,'YYYY-MM'))=0,'CurrnetMonth','PreviousMonth') As MonthStatus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u can use this flag in your expression by giving filter MonthStatus='CurrentMonth' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 04:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214954#M871903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-24T04:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214955#M871904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expression will give you values from year start to till date&lt;/P&gt;&lt;P&gt;If max date in your calendar data is 21st November then that expression will give you data from 1st jan till 21st November.&lt;/P&gt;&lt;P&gt;When you say upto November what does it actually mean?&lt;/P&gt;&lt;P&gt;Also check what is max date in your calendar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 04:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214955#M871904</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2016-11-24T04:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214956#M871905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your calendar has future dates,then it will consider those dates also while calculating max date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 04:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214956#M871905</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2016-11-24T04:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214957#M871906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shraddha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well all the dates will be 1st of the months. As my data actually came from a string value of two separate columns of month and year, which I converted into a dd-mm-yyyy value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it is target value, there is data and dates going to end of the year. i.e. there is data in Dec but I would want the expression to sum to just the latest month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 12:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214957#M871906</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2016-11-25T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214958#M871907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arvind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a master calendar in my script for this dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I place this anywhere else in my script?&amp;nbsp; Or Can you show me a quick way to insert it as I am still fairly new to Qlik so I'm not to sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 12:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214958#M871907</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2016-11-28T12:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: sum to latest month</title>
      <link>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214959#M871908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pooja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you put this into context and a qlikview file for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I'm unsure how to raise a flag, or use a created field in the same load area in my script. As I'm still fairly new to Qlik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 12:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-to-latest-month/m-p/1214959#M871908</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2016-11-28T12:54:55Z</dc:date>
    </item>
  </channel>
</rss>

