<?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: Dynamical Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89412#M758538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris. I got it following your exporession.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2018 02:04:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-04T02:04:03Z</dc:date>
    <item>
      <title>Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89404#M758529</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 have a pivot table in which I want to get the sum by month and then do the total from the beginning until the time of selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: if I select 2016_Aug =&amp;gt; all the expression from 2015_Jan to 2016_Aug will pop up. Simultaneously the column Total to date will show the accumulation accordingly. (Transpose approach to turn Time into dimension is not relevant as it will affect multiple parameters later)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to explore if it is possible and how to do the Total by Set Analysis. There is something wrong with my expression as it doesn't return correct result.&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1535996745680274 jive_text_macro" jivemacro_uid="_1535996745680274"&gt;
&lt;P&gt;sum({&amp;lt;Year_month={"&amp;lt;$(maxstring(Date#(Year_month,YYYY_MMM)))"}&amp;gt;}Rev)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very new to Qlik and would like to collect tips from you.&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/Dynamical-Expression/m-p/89404#M758529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89405#M758530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌mmay be try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iin your expression just before your maxstring give = &lt;/P&gt;&lt;P&gt;i mean like “&amp;lt;$(=maxstring(Date(year_month,’YYYY_MMM’)))”&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 18:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89405#M758530</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-03T18:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89406#M758531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vish, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tested. It doesn't work. Wonder if it might be related to the format date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 18:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89406#M758531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T18:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89407#M758532</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;Is your field Year_Month being stored as a date? Or is it interpreting as text?&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;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 19:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89407#M758532</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-09-03T19:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89408#M758533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a created field, stored in format 'YYYY_MMM', as in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 19:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89408#M758533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T19:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89409#M758534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the issue is your script is storing as text, rather than a date formatted YYYY_MMM, but I can't open your QVW, so I cannot see. Is the script showing Date([name of the date field],'YYYY_MMM') AS Year_month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A solution that might work if you cannot change the formatting (although not sure will work exactly how you expect, as maybe I misunderstand what you mean by 'selection' ...) is;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year_month=&amp;gt;}If(Date#(Year_month,'YYYY_MMM')&amp;lt;=Date#(GetFieldSelections(Year_month),'YYYY_MMM'),Rev,0)).&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;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 19:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89409#M758534</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-09-03T19:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89410#M758535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt; Year_month = {"&amp;lt;$(=Date#(Max(Year_month),YYYY_MMM))"} &amp;gt;} Rev)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 20:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89410#M758535</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-03T20:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89411#M758536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vishwarth. Only a small adjustment. Otherwise it only return until the previous month:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;= Sum({&amp;lt; Year_month = {"&amp;lt;&lt;STRONG style="color: #3366ff;"&gt;=&lt;/STRONG&gt;$(=Date#(Max(Year_month),YYYY_MMM))"} &amp;gt;} Rev)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 02:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89411#M758536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T02:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89412#M758538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris. I got it following your exporession.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 02:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89412#M758538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T02:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamical Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89413#M758541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishwarath, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case I want to calculate for the same period of previous year, can you suggest how I can leverage on your expression? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like, if I choose 2016_Aug, I will have output of 2 expressions: &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;From Jan to Aug 2016: Sum({&amp;lt; Year_month = {"&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3366ff;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(=Date#(Max(Year_month),YYYY_MMM))"} &amp;gt;} Rev)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;From Jan to Aug 2015:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think addyears(-1) may help but don't know how to nest it into the expression correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 05:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamical-Expression/m-p/89413#M758541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T05:01:33Z</dc:date>
    </item>
  </channel>
</rss>

