<?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: Depending Date Ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363477#M615440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply but in the meantime I found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum({&amp;lt;PostingYearMonth = P({$}PostingYearMonthVJ), UmsatzArt -= {'Plan'}, BusinessYear = &amp;gt;} Amount), '#.###,0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have adapted the generic formular found on this site &lt;A href="http://www.qliktips.com/2011/06/and-mode-in-set-analysis.html" title="http://www.qliktips.com/2011/06/and-mode-in-set-analysis.html"&gt;Qlik Tips: AND Mode in Set Analysis&lt;/A&gt; and calculated the field PostingYearMonthVJ in the load script with "PostingYearMonth - 100 AS PostingYearMonthVJ" and voila it works like a dream now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest I need to get more familiar with set analysis and operators like $,P,1,etc. in QlikView, it still confuses me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2017 15:17:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-14T15:17:12Z</dc:date>
    <item>
      <title>Depending Date Ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363471#M615434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another issue here, I have a table with values like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Business Year&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Posting Year Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;16 / 17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;201705&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;16 / 17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;201704&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;15 / 16&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;201605&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;15 / 16&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;201604&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;14 / 15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;201505&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;14 / 15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;201504&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one listbox what represents the business years and one for the posting months. Thanks to the forum here I have already a dependency between the date ranges, when I select one month of a certain business year I get the amount of the month from the previous business year summed up. What I would like to achieve now is the effect when users select more than one month in a business year the months from the previous year will automatically also be selected and the amounts get summed up as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a screenshot of the two listboxes, the amounts of these selections will be calculated in a table chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166727_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my current formular to sum the amount from the previous business year based of the selected month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum({&amp;lt;PostingYearMonth = {$(=(PostingYearMonth)-100)}, UmsatzArt -= {'Plan'}, BusinessYear = &amp;gt;} Amount), '#.###,0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With only one selected month it's working very well but with more then one i get only zero amounts. I already know the problem is this part {$(=(PostingYearMonth)-100)}, it subtracts 100 from the selected posting year month value but with two selection it does not work. Maybe there is a possibilty to alter my set analysis to get it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every idea is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 15:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363471#M615434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-13T15:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Depending Date Ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363472#M615435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;num(sum({&lt;SPAN style="font-size: 18.0pt; color: red;"&gt;$&lt;/SPAN&gt;&amp;lt;PostingYearMonth = {$(=(PostingYearMonth)-100)}, UmsatzArt -= {'Plan'}, BusinessYear = &amp;gt;} Amount), '#.###,0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 15:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363472#M615435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-13T15:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Depending Date Ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363473#M615436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alluraiah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for this quick reply. Unfortunatley it does not work, the behaviour ist like before. When I selected more as one month I get zero amounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 07:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363473#M615436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-14T07:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Depending Date Ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363474#M615437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would propose to use a field with rolling monthes, i.e.&lt;/P&gt;&lt;P&gt;YEAR(MyDate) * 12 + MONTH(MyDate)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS RollingMonth.&lt;/P&gt;&lt;P&gt;Doing so, you may bypass any formatting issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is clearly a number and you may refer to any Timespan (below will sum last 12 monthes, depending the selected period)&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt; RollingMonth = {"&amp;gt;= $(MAX(RollingMonth) -12)"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 10:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363474#M615437</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-06-14T10:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Depending Date Ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363475#M615438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually the field posting year month is already a calculated rolling month, it is coming from the orignal date of the invoice. When I use your suggestion I get the total for a business year but this is also only working when I only select one posting year month value in my list box. Somehow it must be possilbe to use a similar expression with e.g. two selected posting year month values, I think the problem is that only one selection will be recognized with the current expressions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 13:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363475#M615438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-14T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Depending Date Ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363476#M615439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum({&amp;lt;PostingYearMonth = {$(=concat(distinct PostingYearMonth-100, ','))}, UmsatzArt -= {'Plan'}, BusinessYear = &amp;gt;} Amount), '#.###,0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 15:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363476#M615439</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-06-14T15:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Depending Date Ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363477#M615440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply but in the meantime I found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum({&amp;lt;PostingYearMonth = P({$}PostingYearMonthVJ), UmsatzArt -= {'Plan'}, BusinessYear = &amp;gt;} Amount), '#.###,0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have adapted the generic formular found on this site &lt;A href="http://www.qliktips.com/2011/06/and-mode-in-set-analysis.html" title="http://www.qliktips.com/2011/06/and-mode-in-set-analysis.html"&gt;Qlik Tips: AND Mode in Set Analysis&lt;/A&gt; and calculated the field PostingYearMonthVJ in the load script with "PostingYearMonth - 100 AS PostingYearMonthVJ" and voila it works like a dream now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest I need to get more familiar with set analysis and operators like $,P,1,etc. in QlikView, it still confuses me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 15:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Depending-Date-Ranges/m-p/1363477#M615440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-14T15:17:12Z</dc:date>
    </item>
  </channel>
</rss>

