<?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: Issue with Calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257369#M397128</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've created the variable in Variable overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked when I used Today function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2017 09:02:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-20T09:02:49Z</dc:date>
    <item>
      <title>Issue with Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257366#M397125</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 facing an issue with my Line chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the expressions which I'm providing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Calculated Dimension&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(WeekStartDate&amp;gt;=$(v_StartRange) and WeekStartDate&amp;lt;$(v_EndRange),Week(WeekStartDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variables I've declared as below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;v_StartRange&lt;/STRONG&gt; = Date(Max(WeekStartDate)-112,'MM/DD/YYYY') // I want to show 16 weeks data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;v_EndRange&lt;/STRONG&gt;&lt;/SPAN&gt; = Date(Max(WeekStartDate),'MM/DD/YYYY')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me Allocated memory Exceeded, but when i explicitly &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Provides dates&lt;/STRONG&gt;-----(if(WeekStartDate&amp;gt;='09/12/2016'and WeekStartDate&amp;lt;='01/02/2017',Week(WeekStartDate))), it is showing me the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my &lt;STRONG&gt;Expression&lt;/STRONG&gt;: sum {&amp;lt;SN={'LS*'}&amp;gt;} Volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 07:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257366#M397125</guid>
      <dc:creator />
      <dc:date>2017-01-17T07:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257367#M397126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as your variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;v_StartRange&lt;/STRONG&gt; = Date(Max(&lt;STRONG style="color: #ff0000;"&gt;TOTAL&lt;/STRONG&gt; WeekStartDate)-112,'MM/DD/YYYY') // I want to show 16 weeks data&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;v_EndRange&lt;/STRONG&gt;&lt;/SPAN&gt; = Date(Max(&lt;STRONG style="color: #ff0000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TOTAL&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; &lt;/SPAN&gt;WeekStartDate),'MM/DD/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257367#M397126</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-17T12:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257368#M397127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your variables being calculated while declaring them? To check, if you create a text box with value =v_StartRange, do you see a date, or the text of the variable?&lt;/P&gt;&lt;P&gt;If you see the text, it would explain the issue. You can't use a max function in a dimension without a Total, as &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ suggested.&lt;/P&gt;&lt;P&gt;You can either change the variable with the TOTAL statement, or just add an equals sign at the beginning of your variable, so that the date is calculated before the variable is referenced. If it's declared in the script, see the differences between SET and LET - you'd want to use LET in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 16:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257368#M397127</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2017-01-17T16:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257369#M397128</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've created the variable in Variable overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked when I used Today function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 09:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257369#M397128</guid>
      <dc:creator />
      <dc:date>2017-01-20T09:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257370#M397129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked when I gave the expression as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(WeekStartDate&amp;gt;=Today()-126 and WeekStartDate&amp;lt;=Today(),Week(WeekStartDate)) in the dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as I gave a simple expression,while trying to handle at the dimension it self.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks All for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 09:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Calculated-Dimension/m-p/1257370#M397129</guid>
      <dc:creator />
      <dc:date>2017-01-20T09:04:47Z</dc:date>
    </item>
  </channel>
</rss>

