<?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: Replace an value between 2 dates (Conditions) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Replace-an-value-between-2-dates-Conditions/m-p/1997747#M82628</link>
    <description>&lt;P&gt;Assuming your table is order by date ascending (you can force it using Table order properties), I think what you want is something like this:&lt;/P&gt;
&lt;P&gt;if(above([Field])='Maladie' and [Field]='&lt;SPAN&gt;Jour férié&lt;/SPAN&gt;' and before([Field])='Maladie' and above([DateField]=Date([DateField]-1) and before([DateField])=Date([DateField]+1),'Maladie',[Field])&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 15:20:26 GMT</pubDate>
    <dc:creator>Mario_De_Felipe</dc:creator>
    <dc:date>2022-10-27T15:20:26Z</dc:date>
    <item>
      <title>Replace an value between 2 dates (Conditions)</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-an-value-between-2-dates-Conditions/m-p/1994862#M82346</link>
      <description>&lt;P&gt;Hi dear QlikSense teammates,&lt;/P&gt;
&lt;P&gt;Hope you are doing well.&lt;/P&gt;
&lt;P&gt;I would like to create a condition to replace a value by another one between two dates.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a specific example heureunder:&lt;/P&gt;
&lt;P&gt;I would like to replace the value 'Jour férié' in the third lines by 'Maladie'.&lt;/P&gt;
&lt;P&gt;2 Conditions :&lt;/P&gt;
&lt;P&gt;1) 'Jour férié' is surrounded by the value 'Maladie'.&lt;/P&gt;
&lt;P&gt;2) The dates must follow each other (31/12/2021 -&amp;gt; 01/01/2022 -&amp;gt; 02/01/2022)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calogero_Alfeo_0-1666252377955.png" style="width: 785px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/91756iFB5F5B477C617CAD/image-dimensions/785x51?v=v2" width="785" height="51" role="button" title="Calogero_Alfeo_0-1666252377955.png" alt="Calogero_Alfeo_0-1666252377955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;Calo&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 08:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-an-value-between-2-dates-Conditions/m-p/1994862#M82346</guid>
      <dc:creator>Calogero_Alfeo</dc:creator>
      <dc:date>2022-10-20T08:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replace an value between 2 dates (Conditions)</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-an-value-between-2-dates-Conditions/m-p/1997747#M82628</link>
      <description>&lt;P&gt;Assuming your table is order by date ascending (you can force it using Table order properties), I think what you want is something like this:&lt;/P&gt;
&lt;P&gt;if(above([Field])='Maladie' and [Field]='&lt;SPAN&gt;Jour férié&lt;/SPAN&gt;' and before([Field])='Maladie' and above([DateField]=Date([DateField]-1) and before([DateField])=Date([DateField]+1),'Maladie',[Field])&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 15:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-an-value-between-2-dates-Conditions/m-p/1997747#M82628</guid>
      <dc:creator>Mario_De_Felipe</dc:creator>
      <dc:date>2022-10-27T15:20:26Z</dc:date>
    </item>
  </channel>
</rss>

