<?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: Qlik Sense Mapping in dateranges in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Mapping-in-dateranges/m-p/37793#M2583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-04-01 09_19_52-_#QC 2018-04-01 Pasient Visits - My new sheet _ Sheets - Qlik Sense.png" class="jive-image image-1" src="/legacyfs/online/198073_2018-04-01 09_19_52-_#QC 2018-04-01 Pasient Visits - My new sheet _ Sheets - Qlik Sense.png" style="height: 139px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The expression to calculate 1 or 0 is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -(date_visit-Max(If([date medicine]&amp;lt;=date_visit, [date medicine]))&amp;lt;=10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the number of days from the last visit that the patient took their medicine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date_visit-Max(If([date medicine]&amp;lt;=date_visit, [date medicine]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the color coding you can use this expression in the Background Color Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(date_visit-Max(If([date medicine]&amp;lt;=date_visit, [date medicine]))&amp;gt;10,Red(30),Green(40))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Apr 2018 07:24:47 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2018-04-01T07:24:47Z</dc:date>
    <item>
      <title>Qlik Sense Mapping in dateranges</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Mapping-in-dateranges/m-p/37792#M2582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question about mapping data with date ranges&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a patient that takes medicines on different days. When that patient goes to the doctor the doctor has to check if a patient had medicines the past 10 days and if yes when was the last time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;Patientnumber&lt;/P&gt;&lt;P&gt;Date of visit the doctor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;Patientnumber&lt;/P&gt;&lt;P&gt;Date of taking medicine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="342"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="105"&gt;Table 1&lt;/TD&gt;&lt;TD class="xl65" colspan="2" width="237"&gt;Visit the doctor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;Patientnumber&lt;/TD&gt;&lt;TD class="xl65"&gt;date_visit&lt;/TD&gt;&lt;TD class="xl65"&gt;date_visit_minus 10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;x&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;02-02-2018&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;23-01-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;x&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10-02-2018&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;31-01-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;x&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;23-02-2018&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;13-02-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;y&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;03-02-2018&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;24-01-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;y&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;15-02-2018&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;05-02-2018&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="204"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="105"&gt;Table 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;Patientnumber&lt;/TD&gt;&lt;TD class="xl65"&gt; date medicine&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;x&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;31-01-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;x&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;12-02-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;x&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;24-02-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;y&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;26-01-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;y&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;03-03-2018&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="486"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="2" height="20" width="204"&gt;I want to make table 3 with&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="5" height="20"&gt;Visitdate with the last date of medicine if exists, max date and counter =1. =0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20"&gt;Otherwise date is null and counter &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="414"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="105"&gt;Patientnumber&lt;/TD&gt;&lt;TD class="xl66" width="99"&gt;date_visit&lt;/TD&gt;&lt;TD class="xl66" width="138"&gt;date_medicin&lt;/TD&gt;&lt;TD class="xl66" width="72"&gt;counter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;x&lt;/TD&gt;&lt;TD class="xl67"&gt;02-02-2018&lt;/TD&gt;&lt;TD class="xl68"&gt;31-01-2018&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;x&lt;/TD&gt;&lt;TD class="xl67"&gt;10-02-2018&lt;/TD&gt;&lt;TD class="xl69"&gt;31-1-2018&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;x&lt;/TD&gt;&lt;TD class="xl67"&gt;23-02-2018&lt;/TD&gt;&lt;TD class="xl66"&gt;null&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;y&lt;/TD&gt;&lt;TD class="xl67"&gt;03-02-2018&lt;/TD&gt;&lt;TD class="xl69"&gt;26-1-2018&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;y&lt;/TD&gt;&lt;TD class="xl67"&gt;15-02-2018&lt;/TD&gt;&lt;TD class="xl66"&gt;null&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I manage to get table3 in the editor of Qlik Sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2018 17:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Mapping-in-dateranges/m-p/37792#M2582</guid>
      <dc:creator>rhinobundy</dc:creator>
      <dc:date>2018-03-31T17:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mapping in dateranges</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Mapping-in-dateranges/m-p/37793#M2583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-04-01 09_19_52-_#QC 2018-04-01 Pasient Visits - My new sheet _ Sheets - Qlik Sense.png" class="jive-image image-1" src="/legacyfs/online/198073_2018-04-01 09_19_52-_#QC 2018-04-01 Pasient Visits - My new sheet _ Sheets - Qlik Sense.png" style="height: 139px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The expression to calculate 1 or 0 is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -(date_visit-Max(If([date medicine]&amp;lt;=date_visit, [date medicine]))&amp;lt;=10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the number of days from the last visit that the patient took their medicine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date_visit-Max(If([date medicine]&amp;lt;=date_visit, [date medicine]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the color coding you can use this expression in the Background Color Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(date_visit-Max(If([date medicine]&amp;lt;=date_visit, [date medicine]))&amp;gt;10,Red(30),Green(40))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 07:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Mapping-in-dateranges/m-p/37793#M2583</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-04-01T07:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mapping in dateranges</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Mapping-in-dateranges/m-p/37794#M2584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the suggestion answered your question please mark the answer as answered to close the thread. If not please tell us what you need to get more information on....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 11:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Mapping-in-dateranges/m-p/37794#M2584</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-04-02T11:27:21Z</dc:date>
    </item>
  </channel>
</rss>

