<?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: Select different date ranges depending within dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705227#M254257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason for this behaviour might be that a selection in your multi box actually selects ANY corresponding values in both the Date and ID field. Any combination of these selected Dates and IDs therefore will be present in your straight table.&lt;/P&gt;&lt;P&gt;A solution could be to create a combined field that contains both the Date and ID values. The multi box expression then could be changed to select only in this combined field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One implementation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your mutli box selection:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_128121_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63638_QlikCommunity_Thread_128121_Pic2.JPG.jpg" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modification:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_128121_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63639_QlikCommunity_Thread_128121_Pic1.JPG.jpg" style="width: 620px; height: 386px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(SubField(Date_ID, '@', 2)=69 AND Date#(SubField(Date_ID, '@', 1),'MM/DD/YYYY') &amp;gt; Date#('7/19/2014','MM/DD/YYYY') OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Date_ID, '@', 2)=207 AND Date#(SubField(Date_ID, '@', 1),'MM/DD/YYYY') &amp;gt; Date#('7/16/2014','MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'Test2')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;creation of the combined selector field in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Date&amp;amp;'@'&amp;amp;ID as Date_ID &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date, Country, ID, Traffic, Signups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/15/2014, ZM, 207, 1, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/15/2014, YT, 69, 1, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/15/2014, VN, 34, 1, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 00:45:06 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2014-08-04T00:45:06Z</dc:date>
    <item>
      <title>Select different date ranges depending within dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705222#M254252</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 table with date, id and traffic. I need to create a filter that will allow me to select a specific id and date range as well as another id with a different date range. For instance, in the table below I need to select ID 207 where date's &amp;gt; 7/16 and ID 69 where date's &amp;gt; 7/19:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2014-08-03 at 12.19.04.png" class="jive-image" height="244" src="/legacyfs/online/63626_Screen Shot 2014-08-03 at 12.19.04.png" style="width: 255px; height: 244.1311475409836px;" width="255" /&gt;&lt;/P&gt;&lt;P&gt;I need this selection as a filter and have been trying to do so in a multibox with the following expression, however, it returns a selection from 7/16 forward and does not return correct dates for id 69:&lt;/P&gt;&lt;P&gt;=&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Match&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;ID&lt;/SPAN&gt;, 69)&amp;gt;0 &lt;SPAN class="s1"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt; &amp;gt; '7/19/2014' &lt;SPAN class="s1"&gt;OR&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Match&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;ID&lt;/SPAN&gt;, 207)&amp;gt;0 &lt;SPAN class="s1"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt; &amp;gt; '7/16/2014' , 'Test2') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a sample app. If anyone can't point me in the right direction it would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 16:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705222#M254252</guid>
      <dc:creator />
      <dc:date>2014-08-03T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select different date ranges depending within dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705223#M254253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ID='207',sum({&amp;lt;Date={"=Date&amp;gt;'7/16/2014'"} &amp;gt;}Traffic),&lt;/P&gt;&lt;P&gt;if(ID='69',sum({&amp;lt;Date={"=Date&amp;gt;'7/19/2014'"} &amp;gt;}Traffic)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, see the Attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 16:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705223#M254253</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-08-03T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select different date ranges depending within dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705224#M254254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aviral,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually need it as a filter that I can select. There will also be other fields that need to filter on the selection, so I don't want to sum traffic in the expression, but rather select specific IDs and date ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you think of a way to incorporate this into a filter, as I was trying to do with the if/match in the mutlibox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 17:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705224#M254254</guid>
      <dc:creator />
      <dc:date>2014-08-03T17:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select different date ranges depending within dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705225#M254255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think u can make use of variables here to store the date values and further make use of them in expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 17:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705225#M254255</guid>
      <dc:creator />
      <dc:date>2014-08-03T17:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Select different date ranges depending within dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705226#M254256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 19:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705226#M254256</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-08-03T19:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select different date ranges depending within dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705227#M254257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason for this behaviour might be that a selection in your multi box actually selects ANY corresponding values in both the Date and ID field. Any combination of these selected Dates and IDs therefore will be present in your straight table.&lt;/P&gt;&lt;P&gt;A solution could be to create a combined field that contains both the Date and ID values. The multi box expression then could be changed to select only in this combined field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One implementation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your mutli box selection:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_128121_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63638_QlikCommunity_Thread_128121_Pic2.JPG.jpg" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modification:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_128121_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63639_QlikCommunity_Thread_128121_Pic1.JPG.jpg" style="width: 620px; height: 386px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(SubField(Date_ID, '@', 2)=69 AND Date#(SubField(Date_ID, '@', 1),'MM/DD/YYYY') &amp;gt; Date#('7/19/2014','MM/DD/YYYY') OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Date_ID, '@', 2)=207 AND Date#(SubField(Date_ID, '@', 1),'MM/DD/YYYY') &amp;gt; Date#('7/16/2014','MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'Test2')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;creation of the combined selector field in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Date&amp;amp;'@'&amp;amp;ID as Date_ID &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date, Country, ID, Traffic, Signups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/15/2014, ZM, 207, 1, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/15/2014, YT, 69, 1, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/15/2014, VN, 34, 1, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 00:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705227#M254257</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-04T00:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select different date ranges depending within dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705228#M254258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the help Marco. This looks promising but for now I've implemented an approach similar to Nag's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 17:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-date-ranges-depending-within-dimension/m-p/705228#M254258</guid>
      <dc:creator />
      <dc:date>2014-08-04T17:57:06Z</dc:date>
    </item>
  </channel>
</rss>

