<?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: Search based on common value within a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951894#M327380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, the attached should do it. I cannot open what &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/ChiragPradhan"&gt;ChiragPradhan&lt;/A&gt;&lt;/STRONG&gt; attached. However, here is my solution:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97770_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2015 16:53:41 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2015-09-02T16:53:41Z</dc:date>
    <item>
      <title>Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951886#M327372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating a television programming tool in Qlikview for a movie channel, which has the broadcast rights to movies during certain time periods. These time periods are called "availability windows". In Qlikview, I've modeled the data to look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Availability Window&lt;/P&gt;&lt;P&gt;-----------------------&lt;/P&gt;&lt;P&gt;Window ID&lt;/P&gt;&lt;P&gt;Movie&lt;/P&gt;&lt;P&gt;Availability Start (MM/DD/YYYY format)&lt;/P&gt;&lt;P&gt;Availability End (MM/DD/YYYY format)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have 2 movies with 3 different availability windows each:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Movie&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Availability Start&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Availability End&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Fury&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03/31/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Fury&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05/15/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Fury&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;08/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/31/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jurassic World&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;04/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05/15/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jurassic World&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;09/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;09/15/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jurassic World&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/31/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;American Sniper&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/28/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;American Sniper&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;06/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;06/15/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;American Sniper&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/31/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the UI, I'll have a two date pickers tied to two variables: vDateStart, vDateEnd. I'll also have a listbox with two entries in it: "First time availability" and "Last time availability".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"First time availability" should search for movies with an availability window that overlaps the time within vDateStart and vDateEnd but also doesn't have any availability windows that end BEFORE vDateStart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Last time availability" should search for movies with an availability window that overlaps the time within vDateStart and vDateEnd but also doesn't have any availability windows AFTER vDateEnd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let's say the user selects vDateStart as 03/21/31 and vDateEnd as 06/21/31 and selects first time availability. Qlikview should display the availability windows with IDs 1 and 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects vDateStart as 09/01/2016 and vDateEnd as 09/31/2016 and selects last time availability, Qlikview should only display ID 3 since the last availability window for Fury expires within that date range. It won't show ID 5 because Jurassic World has an availability window after that time range between 12/1/2016 and 12/31/2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't even begin to think of the expression in Qlikview to get what I need. Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951886#M327372</guid>
      <dc:creator />
      <dc:date>2015-09-01T20:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951887#M327373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am getting closer to what you need:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97653_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Although, when I type 03/21/2016 and 06/21/2016 and choose "First Time Availability", I am pulling IDs 1,2, and 4:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/97654_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I placed the expression to pull IDs, but I did it quickly so I am not sure if it works for other scenarios:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/97655_Capture.PNG" style="height: 196px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching qvw in case it is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 21:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951887#M327373</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-01T21:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951888#M327374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, Sinan. I clicked on Last Availability and I wasn't getting any results. Did you make any changes after that screenshot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Also, I changed the vDateStart to 04/01/2016 and it should not have shown Fury 05/01/2016-05/15/2016 because there was a previous window for Fury between 03/01/2016 and 03/31/2016.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 21:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951888#M327374</guid>
      <dc:creator />
      <dc:date>2015-09-01T21:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951889#M327375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original qvw on my work pc so I won't be able to get to it till tomorrow. I will take a look at it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 21:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951889#M327375</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-01T21:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951890#M327376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can you give me some examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vDateStart = 04/01/2016 and vDateEnd = 06/21/2016, what movies should appear when first time availability and last time availability are chosen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 13:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951890#M327376</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-02T13:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951891#M327377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've added an additional movie to give you a better idea of the logic requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming vDateStart is 04/01/2016 and vDateEnd=06/21/2016:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If first time availability is chosen, ID 4 should selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If last time availability is chosen, no IDs should be selected because all 3 movies have an availability window past that date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let's assume vDateStart is 09/01/2016 and vDateEnd is 09/31/2016:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If first time availability is chosen, no IDs should be selected because all 3 movies have an availability window before that range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If last time availability is chosen, ID 3 should be selected because Fury doesn't have any availability window that begins beyond that date range while American Sniper and Jurassic world both have an availability window for December.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 14:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951891#M327377</guid>
      <dc:creator />
      <dc:date>2015-09-02T14:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951892#M327378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jay. Let me work on this and hopefully I will have an answer for you soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 14:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951892#M327378</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-02T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951893#M327379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find attached a a test qvw. See if it works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chirag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 15:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951893#M327379</guid>
      <dc:creator>ChiragPradhan</dc:creator>
      <dc:date>2015-09-02T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951894#M327380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, the attached should do it. I cannot open what &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/ChiragPradhan"&gt;ChiragPradhan&lt;/A&gt;&lt;/STRONG&gt; attached. However, here is my solution:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97770_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 16:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951894#M327380</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-02T16:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951895#M327381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I need. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 17:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951895#M327381</guid>
      <dc:creator />
      <dc:date>2015-09-02T17:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on common value within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951896#M327382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad it worked. Let me know if you need anything else with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 17:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-based-on-common-value-within-a-field/m-p/951896#M327382</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-02T17:33:44Z</dc:date>
    </item>
  </channel>
</rss>

