<?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 How to generate dateflags? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-generate-dateflags/m-p/174797#M43481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;What do you want really? add a field on load script comparing the date fields agains the today date? or make a calculated dimension based in the condition?&lt;/P&gt;&lt;P&gt;I need more information for helping you.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Dec 2009 15:30:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-04T15:30:34Z</dc:date>
    <item>
      <title>How to generate dateflags?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-dateflags/m-p/174796#M43480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a table with three columns. Name, Startdate and Enddate. Now i wish to generate flags in my date-modell for all rows in my table. For example i have this table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 144pt;" width="192"&gt;&lt;COL span="3" style="width: 48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; width: 48pt;" width="64"&gt;Name&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;StartDate&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;CurrH&lt;/TD&gt;&lt;TD align="right"&gt;20090631&lt;/TD&gt;&lt;TD align="right"&gt;20091231&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;NextH&lt;/TD&gt;&lt;TD align="right"&gt;20100531&lt;/TD&gt;&lt;TD align="right"&gt;2010127&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;PrevH&lt;/TD&gt;&lt;TD align="right"&gt;20080414&lt;/TD&gt;&lt;TD align="right"&gt;20090117&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I want to do something like this&lt;/P&gt;&lt;P&gt;if(StartDate&amp;lt;Date and EndDate&amp;gt;=Date, 1) as Name,&lt;/P&gt;&lt;P&gt;But i want to do it for all rows without any hardcoding.&lt;/P&gt;&lt;P&gt;Any ideas how to do this? (something with loop i quess)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 23:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-dateflags/m-p/174796#M43480</guid>
      <dc:creator />
      <dc:date>2009-12-03T23:46:04Z</dc:date>
    </item>
    <item>
      <title>How to generate dateflags?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-dateflags/m-p/174797#M43481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;What do you want really? add a field on load script comparing the date fields agains the today date? or make a calculated dimension based in the condition?&lt;/P&gt;&lt;P&gt;I need more information for helping you.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 15:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-dateflags/m-p/174797#M43481</guid>
      <dc:creator />
      <dc:date>2009-12-04T15:30:34Z</dc:date>
    </item>
    <item>
      <title>How to generate dateflags?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-dateflags/m-p/174798#M43482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;What I want to do is to generate flags automaticly.I have created a date-table with all dates two years back. I have some flags ie YTD, LYTD, MTD and so on.&lt;BR /&gt;&lt;BR /&gt;Now i want to add more flags (in the script) that is defined in an xls-table. The table consists of 20-30 different dateintervalls that can be changed by a superuser. I dont want to hardcode start/stop dates for each flag. So I want to generate flags in the scipts named after the row in the table and intervall between StartDate and EndDate. (the first row should look something like this if(20090631&amp;lt;Date and 20091231&amp;gt;=Date, 1) as CurrH, and so on....&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 15:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-dateflags/m-p/174798#M43482</guid>
      <dc:creator />
      <dc:date>2009-12-04T15:49:05Z</dc:date>
    </item>
    <item>
      <title>How to generate dateflags?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-dateflags/m-p/174799#M43483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use "IntervalMatch". See help for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Dec 2009 07:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-dateflags/m-p/174799#M43483</guid>
      <dc:creator />
      <dc:date>2009-12-06T07:25:21Z</dc:date>
    </item>
  </channel>
</rss>

