<?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 Disregarding a dimension in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Disregarding-a-dimension-in-expression/m-p/17380#M782675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post in the forum. I was asked a question in and interview and I'm still not able to figure out the answer. Here goes the question. A table has two fields - a &lt;STRONG&gt;year-month field&lt;/STRONG&gt; (for simplicity &amp;amp; testing, I have used a 'date' field with value as the first date of a month in place of 'year-month'. eg: 01-2015 will be 01/01/2015 in my file) and &lt;STRONG&gt;Sales&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same table, I want to display beside the Sales field, the sales for next month. This has to be done as a Chart expression and not in script. My fields are [Month-Year], [Sales1]. [MOnth-Year] has a date instead of MM-YYYY as mentioned above. My set expression for getting the next month sales is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15221510329977039" jivemacro_uid="_15221510329977039"&gt;
&lt;P&gt;sum(TOTAL{&amp;lt;[Month-Year]={"=$(=Date(AddMonths(Date(Date#([Month-Year],'DD/MM/YYYY'),'DD/MM/YYYY'),1),'DD/MM/YYYY'))"}&amp;gt;}Sales1)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;I have used the 'TOTAL' keyword in the expression hoping it would disregard the dimension selections across the rows.&lt;/P&gt;&lt;P&gt;This expression does not seem to fetch the next month sales and returns 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know your solutions for this question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>vidhyamurali</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Disregarding a dimension in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Disregarding-a-dimension-in-expression/m-p/17380#M782675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post in the forum. I was asked a question in and interview and I'm still not able to figure out the answer. Here goes the question. A table has two fields - a &lt;STRONG&gt;year-month field&lt;/STRONG&gt; (for simplicity &amp;amp; testing, I have used a 'date' field with value as the first date of a month in place of 'year-month'. eg: 01-2015 will be 01/01/2015 in my file) and &lt;STRONG&gt;Sales&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same table, I want to display beside the Sales field, the sales for next month. This has to be done as a Chart expression and not in script. My fields are [Month-Year], [Sales1]. [MOnth-Year] has a date instead of MM-YYYY as mentioned above. My set expression for getting the next month sales is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15221510329977039" jivemacro_uid="_15221510329977039"&gt;
&lt;P&gt;sum(TOTAL{&amp;lt;[Month-Year]={"=$(=Date(AddMonths(Date(Date#([Month-Year],'DD/MM/YYYY'),'DD/MM/YYYY'),1),'DD/MM/YYYY'))"}&amp;gt;}Sales1)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;I have used the 'TOTAL' keyword in the expression hoping it would disregard the dimension selections across the rows.&lt;/P&gt;&lt;P&gt;This expression does not seem to fetch the next month sales and returns 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know your solutions for this question.&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/Disregarding-a-dimension-in-expression/m-p/17380#M782675</guid>
      <dc:creator>vidhyamurali</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding a dimension in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Disregarding-a-dimension-in-expression/m-p/17381#M782676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above(Sum(Sales1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197642_Capture.PNG" style="height: 167px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, read here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8242"&gt;Missing Manual - Above() and Below()&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 13:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disregarding-a-dimension-in-expression/m-p/17381#M782676</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-27T13:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding a dimension in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Disregarding-a-dimension-in-expression/m-p/17382#M782677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. The detailed blog post about Above() and Below() functions were helpful too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an aside, is there a way to get this working using Set Analysis and disregard the dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 04:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disregarding-a-dimension-in-expression/m-p/17382#M782677</guid>
      <dc:creator>vidhyamurali</dc:creator>
      <dc:date>2018-03-28T04:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding a dimension in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Disregarding-a-dimension-in-expression/m-p/17383#M782678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis - No, but you can read about &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt; which might be able to optimize your calculations&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 13:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disregarding-a-dimension-in-expression/m-p/17383#M782678</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-28T13:56:32Z</dc:date>
    </item>
  </channel>
</rss>

