<?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: Using Dimension as filter in Expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904036#M314359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; cant post Data. But let provide u a clearer picture.&lt;/P&gt;&lt;P&gt;I want something like attached screenshot. Expression should solve the purpose as shown in screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating dimension by individually calculating 3 Dates and concatenating them.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Like&amp;nbsp; :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;If(Date = $(vLastQuarDate),Date) &amp;amp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;If(Date = $(vLastToLastQuarDate),Date) &amp;amp; &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;If(Date = $(vMaxDate),Date).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If you can give another way of creating required dimension&amp;nbsp; I don't mind. But it should Solve the purpose.Let me know if you require anything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2015 17:25:02 GMT</pubDate>
    <dc:creator>timanshu</dc:creator>
    <dc:date>2015-04-24T17:25:02Z</dc:date>
    <item>
      <title>Using Dimension as filter in Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904032#M314355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario where I want to create a bar chart where expression requires time duration in set analysis. But Dimension is also a time duration. How to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is Complete Scenario:&lt;/P&gt;&lt;P&gt;I have a Date field. Max Date is Maximum of that date.&amp;nbsp; I want a dimension which always have has 3&amp;nbsp; values -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Maximum date available(Month end of last month in Quarter) in last quarter of Max date.&lt;/P&gt;&lt;P&gt;2.&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Maximum date available&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(Month end of last month in Quarter)&lt;/SPAN&gt; in last to last quarter of Max date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3.Max Date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Calculating these is not a problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Now I want Sum of Sales corresponding to three dates in Dimension.Sum of sales corresponding to less that the available dates in dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;expression to understand can be sum( {&amp;lt;Date={'&amp;lt;=$(=Date)'}&amp;gt;} Sales) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;How to make this possible.?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904032#M314355</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-04-24T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dimension as filter in Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904033#M314356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd create three variables with the expressions to calculate the three dates. Then use these three variables in a set analysis expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={ $(vMaxDate), $(vMaxDateOfQuarter), $(vMaxDateOfLastQuarter) }&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904033#M314356</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-24T16:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dimension as filter in Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904034#M314357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert ,&lt;/P&gt;&lt;P&gt;I didn't get you. What will be the dimension then? to show 3 dates. And I want sales of all dates previous to dates in dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904034#M314357</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-04-24T16:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dimension as filter in Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904035#M314358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm probably misunderstanding what you're trying to achieve. Can you post an example with source data and the result table or graphic that should be shown?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904035#M314358</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-24T16:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dimension as filter in Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904036#M314359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; cant post Data. But let provide u a clearer picture.&lt;/P&gt;&lt;P&gt;I want something like attached screenshot. Expression should solve the purpose as shown in screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating dimension by individually calculating 3 Dates and concatenating them.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Like&amp;nbsp; :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;If(Date = $(vLastQuarDate),Date) &amp;amp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;If(Date = $(vLastToLastQuarDate),Date) &amp;amp; &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;If(Date = $(vMaxDate),Date).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If you can give another way of creating required dimension&amp;nbsp; I don't mind. But it should Solve the purpose.Let me know if you require anything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 17:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dimension-as-filter-in-Expression/m-p/904036#M314359</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-04-24T17:25:02Z</dc:date>
    </item>
  </channel>
</rss>

