<?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: Creating Date Range flags in the data load editor in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-Date-Range-flags-in-the-data-load-editor/m-p/1667007#M50264</link>
    <description>&lt;P&gt;Thank you this worked.&amp;nbsp; I thought I had tried this but must have missed something the first time.&amp;nbsp; I did have to make a small change to the variable to get it to work properly '$(vCurrentDateCutoff)'.&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jan 2020 15:07:14 GMT</pubDate>
    <dc:creator>MHarrell</dc:creator>
    <dc:date>2020-01-18T15:07:14Z</dc:date>
    <item>
      <title>Creating Date Range flags in the data load editor</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-Date-Range-flags-in-the-data-load-editor/m-p/1666769#M50224</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How would I use the inmonth or inquarter function within the data load editor to flag patients that came in to our hospitals.&amp;nbsp; I use them regularly in set analysis but I can't figure out how to do the same function with an if() statement to create a yes or no flag.&amp;nbsp; Here's an example of my set analysis.&amp;nbsp; In this case I'm getting total visits from two months prior than my variable date.&amp;nbsp; Is there a better way to do this than the inmonth or inquarter functions?&amp;nbsp; I need it all to be dynamic based on the date that's being pulled in from vCurrentDateCutoff.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;AdmitDate={"=inmonth(AdmitDate,Date(vCurrentDateCutoff, 'M/D/YY'),-2)='-1'"}&amp;gt;}Visits)&lt;/P&gt;&lt;P&gt;I also need to create a single dimension that has various date ranges to replicate our general ledger.&amp;nbsp; Example would be that I need to put a dimension in a pivot table that would give me the last four quarters and last six months broken out individually.&amp;nbsp; What is the best way to do this?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 13:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-Date-Range-flags-in-the-data-load-editor/m-p/1666769#M50224</guid>
      <dc:creator>MHarrell</dc:creator>
      <dc:date>2020-01-17T13:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Date Range flags in the data load editor</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-Date-Range-flags-in-the-data-load-editor/m-p/1666948#M50257</link>
      <description>&lt;P&gt;I would expect this to work in a load script:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AdmitDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(&lt;SPAN&gt;inmonth(AdmitDate,Date(vCurrentDateCutoff, 'M/D/YY'),-2), 'yes', 'no') as Flag2monthsago&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 21:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-Date-Range-flags-in-the-data-load-editor/m-p/1666948#M50257</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2020-01-17T21:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Date Range flags in the data load editor</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-Date-Range-flags-in-the-data-load-editor/m-p/1667007#M50264</link>
      <description>&lt;P&gt;Thank you this worked.&amp;nbsp; I thought I had tried this but must have missed something the first time.&amp;nbsp; I did have to make a small change to the variable to get it to work properly '$(vCurrentDateCutoff)'.&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 15:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-Date-Range-flags-in-the-data-load-editor/m-p/1667007#M50264</guid>
      <dc:creator>MHarrell</dc:creator>
      <dc:date>2020-01-18T15:07:14Z</dc:date>
    </item>
  </channel>
</rss>

