<?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: Problem to filter two intervals of different dates with the same filter Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-to-filter-two-intervals-of-different-dates-with-the-same/m-p/1509189#M436519</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just uploaded a sample app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2018 16:13:07 GMT</pubDate>
    <dc:creator>ivan_revuelta</dc:creator>
    <dc:date>2018-11-19T16:13:07Z</dc:date>
    <item>
      <title>Problem to filter two intervals of different dates with the same filter Year</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-to-filter-two-intervals-of-different-dates-with-the-same/m-p/116414#M17918</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm a rookie at Qlik and I need help. Looking in the forum I have managed to load a script that allows me to see the courses that are active between two dates through the Year filter: (This part does it well)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/217797_Example.PNG" border="0" alt="Example.PNG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is that I need to filter also by the group in which the teachers were at that moment. That is, in addition to filter by Start date (Fecha inicio) and End date (Fecha fin), I also need to do so by the fields memberStartDate(miembroDesde) and memberEndDate(miembroHasta). I do not know how to do it...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is my script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[cursos]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; codigoCurso,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; curso,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#([fechaInicio], 'DD/MM/YYYY') ) AS [fechaInicio],&lt;/P&gt;&lt;P&gt;Date(Date#([fechaFin], 'DD/MM/YYYY') ) AS [fechaFin],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; profesor&lt;/P&gt;&lt;P&gt;FROM [lib://AttachedFiles/Cursos.csv]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(txt, codepage is 28591, embedded labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[profesores]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; profesor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Grupo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#([miembroDesde], 'DD/MM/YYYY') ) AS [miembroDesde],&lt;/P&gt;&lt;P&gt;Date(Date#([miembroHasta], 'DD/MM/YYYY') ) AS [miembroHasta]&lt;/P&gt;&lt;P&gt;FROM [lib://AttachedFiles/profesores.csv]&lt;/P&gt;&lt;P&gt;(txt, codepage is 28591, embedded labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; RangeMin(Min(fechaInicio),Min(fechaFin)) as MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; RangeMax(Max(fechaInicio),Max(fechaFin)) as MaxDate&lt;/P&gt;&lt;P&gt;Resident cursos;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let vMinDate = Num(Peek('MinDate',0,'MinMaxDate'));&lt;/P&gt;&lt;P&gt;Let vMaxDate = Num(Peek('MaxDate',0,'MinMaxDate'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop Table MinMaxDate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(TempDate) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(TempDate) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(TempDate) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(MonthStart(TempDate),'DD/MM/YYYY') as MonthYear;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMinDate)+IterNo()-1 as TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;P&gt;While $(vMinDate)+IterNo()-1 &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IntervalMatch(Date)&lt;/P&gt;&lt;P&gt;Load fechaInicio, fechaFin Resident cursos;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 10:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-to-filter-two-intervals-of-different-dates-with-the-same/m-p/116414#M17918</guid>
      <dc:creator>ivan_revuelta</dc:creator>
      <dc:date>2018-11-14T10:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to filter two intervals of different dates with the same filter Year</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-to-filter-two-intervals-of-different-dates-with-the-same/m-p/1506421#M436313</link>
      <description>&lt;P&gt;Hi Ivan&lt;/P&gt;&lt;P&gt;i believe you will need to use set analysis on your table&lt;/P&gt;&lt;P&gt;something like&amp;nbsp;&lt;SPAN&gt;miembroDesde ={"&amp;lt;=$(Max(Date))"},&amp;nbsp;miembroHasta={"&amp;lt;=$(Max(Date))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if you can share a sample app i can help further&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 15:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-to-filter-two-intervals-of-different-dates-with-the-same/m-p/1506421#M436313</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-14T15:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to filter two intervals of different dates with the same filter Year</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-to-filter-two-intervals-of-different-dates-with-the-same/m-p/1509189#M436519</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just uploaded a sample app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 16:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-to-filter-two-intervals-of-different-dates-with-the-same/m-p/1509189#M436519</guid>
      <dc:creator>ivan_revuelta</dc:creator>
      <dc:date>2018-11-19T16:13:07Z</dc:date>
    </item>
  </channel>
</rss>

