<?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 compare if one variable is between two field objects in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263414#M865912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! Thank you first for taking the time to read this, and hope that you will be able to help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a dashboard where I have a variable the variable for dates of purchase and delivery.&amp;nbsp; I separate the 365 days of the year into 52 week segments, and so I would like to see which week segement the date falls into.&amp;nbsp; If you have any ideas on how I can compare one variable to two fields, I would greatly appreciate it! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>compare if one variable is between two field objects</title>
      <link>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263414#M865912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! Thank you first for taking the time to read this, and hope that you will be able to help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a dashboard where I have a variable the variable for dates of purchase and delivery.&amp;nbsp; I separate the 365 days of the year into 52 week segments, and so I would like to see which week segement the date falls into.&amp;nbsp; If you have any ideas on how I can compare one variable to two fields, I would greatly appreciate it! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263414#M865912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: compare if one variable is between two field objects</title>
      <link>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263415#M865913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you want to achieve with this?&lt;/P&gt;&lt;P&gt;use the same logic you used to create the week numbers and compare with week numbers of those dates&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Purchasedate = Week($(datevariable1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Deliverydate = Week($(datevariable1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 18:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263415#M865913</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-14T18:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: compare if one variable is between two field objects</title>
      <link>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263416#M865914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vineeth for your response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think that there is any way I could make this work using the trigger function?&amp;nbsp; I would like to be able to plug in into a input box, the week number (or a specific day of the month) and then it only shows me the furniture bought inbtw in that period.&amp;nbsp; The period will be dictated by pre-set definitions of what week is what period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 10:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263416#M865914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-15T10:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: compare if one variable is between two field objects</title>
      <link>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263417#M865915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide sample app / data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 10:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263417#M865915</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-15T10:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: compare if one variable is between two field objects</title>
      <link>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263418#M865916</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;one solution without the need for variables or triggers might be:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_243392_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146814_QlikCommunity_Thread_243392_Pic1.JPG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_243392_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/146815_QlikCommunity_Thread_243392_Pic2.JPG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_243392_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/146819_QlikCommunity_Thread_243392_Pic3.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_243392_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/146820_QlikCommunity_Thread_243392_Pic4.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14818402412137224" jivemacro_uid="_14818402412137224"&gt;
&lt;P&gt;//creation of sample data&lt;/P&gt;
&lt;P&gt;tabSales:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(PurchaseDate+Pow(Rand(),3)*100) as DeliveryDate;&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(YearStart(Today())+Rand()*265) as PurchaseDate&lt;/P&gt;
&lt;P&gt;AutoGenerate 20;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabCalendar: &lt;/P&gt;
&lt;P&gt;LOAD *, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(Date) as Day, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay(Date) as WeekDay, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(Date) as Week, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekName(Date) as WeekName, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date) as Month, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date) as MonthName, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q'&amp;amp;Ceil(Month(Date)/3),Ceil(Month(Date)/3)) as Quarter, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterName(Date) as QuarterName, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date) as Year, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekYear(Date) as WeekYear;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD Date(MinDate+IterNo()-1) as Date &lt;/P&gt;
&lt;P&gt;While MinDate+IterNo()-1 &amp;lt;= MaxDate; &lt;/P&gt;
&lt;P&gt;LOAD Min(PurchaseDate) as MinDate, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(DeliveryDate) as MaxDate &lt;/P&gt;
&lt;P&gt;Resident tabSales;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabLink:&lt;/P&gt;
&lt;P&gt;IntervalMatch (Date)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PurchaseDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DeliveryDate&lt;/P&gt;
&lt;P&gt;Resident tabSales;&lt;/P&gt;
&lt;/PRE&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>Thu, 15 Dec 2016 22:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263418#M865916</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-12-15T22:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: compare if one variable is between two field objects</title>
      <link>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263419#M865917</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; Can you share sample documents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 11:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-if-one-variable-is-between-two-field-objects/m-p/1263419#M865917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-16T11:11:40Z</dc:date>
    </item>
  </channel>
</rss>

