<?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: Calculated dimensions and variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions-and-variables/m-p/1063994#M638337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it worked but l am now getting a bar that does not have any yearweek, the yearweek is a dash '-'. Do you know why l now getting this bar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2016 13:46:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-14T13:46:16Z</dc:date>
    <item>
      <title>Calculated dimensions and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions-and-variables/m-p/1063992#M638335</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>Mon, 14 Mar 2016 06:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions-and-variables/m-p/1063992#M638335</guid>
      <dc:creator />
      <dc:date>2016-03-14T06:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimensions and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions-and-variables/m-p/1063993#M638336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// In dimension &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;=if([Report Type]='Daily Report',[Carrier Alt Carrier Designator],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; if([Report Type]='Weekly Report' and [&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YearWeek]&amp;gt;=&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxPeriod_3 and &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YearWeek]&amp;lt;=&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxPeriod&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,[YearWeek], &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp; if([Report Type]='Monthly Report',[DropMonth],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Report Type]='Overall Summary',[Load Group]))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 09:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions-and-variables/m-p/1063993#M638336</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-03-14T09:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimensions and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions-and-variables/m-p/1063994#M638337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it worked but l am now getting a bar that does not have any yearweek, the yearweek is a dash '-'. Do you know why l now getting this bar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 13:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions-and-variables/m-p/1063994#M638337</guid>
      <dc:creator />
      <dc:date>2016-03-14T13:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimensions and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions-and-variables/m-p/1063995#M638338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This are the bars which are not satisfying the condition i.e. mark as null in the dimension tab &amp;gt;check suppress null option ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 05:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions-and-variables/m-p/1063995#M638338</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-03-15T05:34:09Z</dc:date>
    </item>
  </channel>
</rss>

