<?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 Variables and calculated dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-and-calculated-dimensions/m-p/1029493#M347731</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 have a bar graph with the following calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Report Type]='Daily Report',[Carrier Alt Carrier Designator], &lt;/P&gt;&lt;P&gt;&amp;nbsp; if([Report Type]='Weekly Report',[YearWeek],&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if([Report Type]='Monthly Report',[DropMonth], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Report Type]='Overall Summary',[Load Group]))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Round(sum(aggr(sum(DISTINCT if([Load Status] &amp;lt;&amp;gt;'Voided' and [Load Status]&amp;lt;&amp;gt;'Expired' ,[Weight (kg)])), [Lean ID])),1)/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If l select, report type 'Weekly report' , my dimension on the graph is [YearWeek] which is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also created 2 variables, vmaxPeriod (calculated as max(YearWeek)) and vmaxPeriod_3 (calculated as max(YearWeek)-3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want to limit dimensions displayed i.e. vMaxPeriod_3&amp;lt;=YearWeek&amp;lt;=vMaxPeriod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do l do this? Please assist.&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;Moses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2016 15:13:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-08T15:13:14Z</dc:date>
    <item>
      <title>Variables and calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-calculated-dimensions/m-p/1029493#M347731</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 have a bar graph with the following calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Report Type]='Daily Report',[Carrier Alt Carrier Designator], &lt;/P&gt;&lt;P&gt;&amp;nbsp; if([Report Type]='Weekly Report',[YearWeek],&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if([Report Type]='Monthly Report',[DropMonth], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Report Type]='Overall Summary',[Load Group]))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Round(sum(aggr(sum(DISTINCT if([Load Status] &amp;lt;&amp;gt;'Voided' and [Load Status]&amp;lt;&amp;gt;'Expired' ,[Weight (kg)])), [Lean ID])),1)/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If l select, report type 'Weekly report' , my dimension on the graph is [YearWeek] which is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also created 2 variables, vmaxPeriod (calculated as max(YearWeek)) and vmaxPeriod_3 (calculated as max(YearWeek)-3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want to limit dimensions displayed i.e. vMaxPeriod_3&amp;lt;=YearWeek&amp;lt;=vMaxPeriod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do l do this? Please assist.&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;Moses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-calculated-dimensions/m-p/1029493#M347731</guid>
      <dc:creator />
      <dc:date>2016-03-08T15:13:14Z</dc:date>
    </item>
  </channel>
</rss>

