<?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 Best Practice for filtering reports by variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205733#M462201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable for Current Year and Previous Year.&amp;nbsp; I am creating some reports that have a lot of expressions in them that are dependent upon one or both of these variables.&amp;nbsp; I am trying to figure out what is the best way to filter a report by just Current Year.&amp;nbsp; Should I used a calculated dimension?&amp;nbsp; Should I put the variable in each expression?&amp;nbsp; I want to be consistent and utilize the best practice.&amp;nbsp; Can someone please explain what is the best practice here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2016 15:48:00 GMT</pubDate>
    <dc:creator>cliff_clayman</dc:creator>
    <dc:date>2016-10-06T15:48:00Z</dc:date>
    <item>
      <title>Best Practice for filtering reports by variable</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205733#M462201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable for Current Year and Previous Year.&amp;nbsp; I am creating some reports that have a lot of expressions in them that are dependent upon one or both of these variables.&amp;nbsp; I am trying to figure out what is the best way to filter a report by just Current Year.&amp;nbsp; Should I used a calculated dimension?&amp;nbsp; Should I put the variable in each expression?&amp;nbsp; I want to be consistent and utilize the best practice.&amp;nbsp; Can someone please explain what is the best practice here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 15:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205733#M462201</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2016-10-06T15:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practice for filtering reports by variable</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205734#M462202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an example of your documents? It is rather difficult to post a best practice for something that is highly context-dependent. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 15:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205734#M462202</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-10-06T15:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practice for filtering reports by variable</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205735#M462203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think a specific example will make much of a difference.&amp;nbsp; I'm just looking at it from an overall perspective.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="242"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="64"&gt;Store&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="89"&gt;Sales&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="89"&gt;Revenue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$1,000,000.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$500,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$2,000,000.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$1,000,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$3,000,000.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$1,500,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$4,000,000.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$2,000,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$5,000,000.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$2,500,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take something as simple as this.&amp;nbsp; This data includes values from all years.&amp;nbsp; I want to be able to limit it to only the Current Year.&amp;nbsp; Is it best to use a calculated dimension, define the variable in each expression, or some other way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 16:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205735#M462203</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2016-10-06T16:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practice for filtering reports by variable</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205736#M462204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMHO the easiest way to limit a chart to diplay just data for the current year is to use set analysis. But then again, I have no clue what the circumstances are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 16:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205736#M462204</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-10-06T16:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practice for filtering reports by variable</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205737#M462205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, using Set Analysis, I would always need to define the value for that field.&amp;nbsp; Something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #312e25; font-family: monospace; font-size: 11.44px; background-color: #f5f3e5;"&gt;Sum({$&amp;lt;Year={2016}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 16:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205737#M462205</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2016-10-06T16:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practice for filtering reports by variable</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205738#M462206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really. If you have a variable that defines "Current Year" in a numerical format (i.e. not as an expression) then you better use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Sum({$&amp;lt;Year = {$(vCurrentYear)}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This technique will perform a $-sign substitution before evaluating the expression. It allows you to change the value of the Current Year without changing any expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 16:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Practice-for-filtering-reports-by-variable/m-p/1205738#M462206</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-10-06T16:20:02Z</dc:date>
    </item>
  </channel>
</rss>

