<?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 Dimension depencence in expresions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375462#M492467</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'm trying to do an expresion that calculates the cuantity of something in this month divided by the Average of the three last month for every month.&lt;/P&gt;&lt;P&gt;I put the month as dimension (&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Calendarmonth&lt;/SPAN&gt;) and that expresion : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #376092;"&gt;count(lines)&lt;/SPAN&gt;/&lt;SPAN style="color: #77933c;"&gt;((count(&amp;lt;{Calendarmonth={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #77933c; font-size: 9pt;"&gt; "&amp;gt;=$(=AddMonths(MonthStart(max(Calendardate)),-3))&amp;lt;=$(=AddMonths(monthend(Max(Calendardate)),-1))"}lines)/3). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333; font-size: 9pt;"&gt;The problem is that if I put this expresion in a text field, the results are the expeted ones, but when I put the expresion in&amp;nbsp; graph, the results are not the expected cause the data I'm trying to count in the second part of the division is being affected by the dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333; font-size: 9pt;"&gt;There is any way to avoid that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333; font-size: 9pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2012 08:32:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-02T08:32:56Z</dc:date>
    <item>
      <title>Dimension depencence in expresions</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375462#M492467</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'm trying to do an expresion that calculates the cuantity of something in this month divided by the Average of the three last month for every month.&lt;/P&gt;&lt;P&gt;I put the month as dimension (&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Calendarmonth&lt;/SPAN&gt;) and that expresion : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #376092;"&gt;count(lines)&lt;/SPAN&gt;/&lt;SPAN style="color: #77933c;"&gt;((count(&amp;lt;{Calendarmonth={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #77933c; font-size: 9pt;"&gt; "&amp;gt;=$(=AddMonths(MonthStart(max(Calendardate)),-3))&amp;lt;=$(=AddMonths(monthend(Max(Calendardate)),-1))"}lines)/3). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333; font-size: 9pt;"&gt;The problem is that if I put this expresion in a text field, the results are the expeted ones, but when I put the expresion in&amp;nbsp; graph, the results are not the expected cause the data I'm trying to count in the second part of the division is being affected by the dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333; font-size: 9pt;"&gt;There is any way to avoid that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #333333; font-size: 9pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 08:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375462#M492467</guid>
      <dc:creator />
      <dc:date>2012-07-02T08:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension depencence in expresions</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375463#M492468</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;you can ignore dimensions in set analysis by adding 'yourdimension='. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 08:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375463#M492468</guid>
      <dc:creator>jjfabian</dc:creator>
      <dc:date>2012-07-02T08:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension depencence in expresions</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375464#M492469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot add it cause the dimension is CalendarMonth and I cannot set it to nothing cause it have to be the three last months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 08:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375464#M492469</guid>
      <dc:creator />
      <dc:date>2012-07-02T08:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension depencence in expresions</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375465#M492470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A solution would be to remove your dimension and add three separate expressions with a set analysis for each month - not pretty, but that would work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 09:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375465#M492470</guid>
      <dc:creator>jjfabian</dc:creator>
      <dc:date>2012-07-02T09:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension depencence in expresions</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375466#M492471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I didn't explain well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have, for each month, the division between the actual value divided by the average of the three previous month, so I need the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; May = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; So the value of the expression in Jun will be : 1 / ((3+5+1)/3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understand me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 09:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375466#M492471</guid>
      <dc:creator />
      <dc:date>2012-07-02T09:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension depencence in expresions</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375467#M492472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you try to use the ABOVE function ? &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Rangeavg(above(count(lines),1,3))&lt;/SPAN&gt; will return the average of your expression evaluated on the 3 previous months (if the month is your dimension).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 09:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-depencence-in-expresions/m-p/375467#M492472</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2012-07-02T09:45:02Z</dc:date>
    </item>
  </channel>
</rss>

