<?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: How to replace a set analysis string in load script editor in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640515#M47743</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose the [Data] field in your Calendar table isn't formatted as Date with the same format as the other fields.&lt;/P&gt;&lt;P&gt;Let's get the exact script offline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;S.T.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2019 18:20:35 GMT</pubDate>
    <dc:creator>Stoyan_Terziev</dc:creator>
    <dc:date>2019-10-28T18:20:35Z</dc:date>
    <item>
      <title>How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640297#M47717</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need your help! I'd like to understand how to replace a set analysis string in load script editor.&lt;/P&gt;&lt;P&gt;The field I would like to add directly to the table "tab_MASTER_ORDINI" is the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Count({$&amp;lt;Data = {"&amp;gt;=$(=[DataValidazioneVenerdì]) &amp;lt;=$(=[DataConsegnaRichiestaVenerdìMeno])"}, GgLav={"1"}&amp;gt;} Data) as GgLavValidazione&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The field permit me to know the number of working days (custom calendar) betxween two dates.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;field &lt;STRONG&gt;Data&lt;/STRONG&gt; --&amp;gt; table Calendario&lt;/LI&gt;&lt;LI&gt;field&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;DataValidazioneVenerdì&lt;/STRONG&gt; ,&amp;nbsp;&lt;STRONG&gt;DataConsegnaRichiestaVenerdìMeno&lt;/STRONG&gt; --&amp;gt; table&amp;nbsp;tab_MASTER_ORDINI&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Database:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="struttura.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22433iA7B142DC5F697FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="struttura.png" alt="struttura.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tab_MASTER_ORDINI (.accdb file):&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LIB CONNECT TO 'K--DiPR-PPlan-_PPlan-DB_produzione.accdb';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Autore,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AutoreModifica,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Cliente,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CodiceCliente,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[...]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SettimanaMAD,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SettimanaMontaggio,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Stato,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;StatoODP,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;TipoOrdine,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;TM,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UDM,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If (TipoOrdine = 'KD', 'pianificato', If(TipoOrdine = 'ZCAB', 'mobili', 'generici')) as StatoOrdine,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If (isnull(DataConsegnaRichiesta),'noDateReq',If (MAD &amp;lt;= DataConsegnaRichiesta, 'onTime', 'onDelay')) as Validazione,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Date(WeekEnd(DataValidazione)-2,'DD/MM/YYYY') as DataValidazioneVenerdì,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Date(WeekEnd(DataConsegnaRichiesta)-2,'DD/MM/YYYY') as DataConsegnaRichiestaVenerdì,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Date(WeekStart(DataConsegnaRichiesta)-3,'DD/MM/YYYY') as DataConsegnaRichiestaVenerdìMeno;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SQL SELECT Autore,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AutoreModifica,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Cliente,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CodiceCliente,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[...]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SettimanaMAD,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SettimanaMontaggio,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Stato,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;StatoODP,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;TipoOrdine,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;TM,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UDM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM `tab_MASTER_ORDINI`;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I insert field "&lt;EM&gt;GgLavValidazione" directly in the table?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!!!!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640297#M47717</guid>
      <dc:creator>s_gorgo</dc:creator>
      <dc:date>2024-11-16T04:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640376#M47728</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are searching for the NetWorkDays() function.&lt;/P&gt;&lt;P&gt;Add the statement marked in &lt;STRONG&gt;&lt;FONT color="#339966"&gt;GREEN&lt;/FONT&gt; &lt;/STRONG&gt;to your scrip and let me know if it all worked out. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;LIB CONNECT TO 'K--DiPR-PPlan-_PPlan-DB_produzione.accdb';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;LOAD Autore,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;AutoreModifica,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Cliente,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;CodiceCliente,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;[...]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SettimanaMAD,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SettimanaMontaggio,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Stato,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;StatoODP,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;TipoOrdine,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;TM,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;UDM,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;If (TipoOrdine = 'KD', 'pianificato', If(TipoOrdine = 'ZCAB', 'mobili', 'generici')) as StatoOrdine,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;If (isnull(DataConsegnaRichiesta),'noDateReq',If (MAD &amp;lt;= DataConsegnaRichiesta, 'onTime', 'onDelay')) as Validazione,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Date(WeekEnd(DataValidazione)-2,'DD/MM/YYYY') as DataValidazioneVenerdì,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Date(WeekEnd(DataConsegnaRichiesta)-2,'DD/MM/YYYY') as DataConsegnaRichiestaVenerdì,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Date(WeekStart(DataConsegnaRichiesta)-3,'DD/MM/YYYY') as DataConsegnaRichiestaVenerdìMeno&lt;FONT color="#339966"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;NetWorkDays(Date(WeekEnd(DataValidazione)-2,'DD/MM/YYYY'), Date(WeekStart(DataConsegnaRichiesta)-3,'DD/MM/YYYY')) as NetWorkingDaysBetweenDates&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SQL SELECT Autore,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;AutoreModifica,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Cliente,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;CodiceCliente,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;[...]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SettimanaMAD,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SettimanaMontaggio,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Stato,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;StatoODP,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;TipoOrdine,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;TM,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;UDM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;FROM `tab_MASTER_ORDINI`;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 13:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640376#M47728</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-10-28T13:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640383#M47730</link>
      <description>&lt;P&gt;Hello! and thank you!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I could think to use Networkdays function, but, if possible, I would prefer use my personal calendar (table "Calendario") with the detail, for every date, if the day, for my factory, is workin day or not (GgLav = 1 --&amp;gt; working day, GgLav = 0 --&amp;gt; not working day).&lt;/P&gt;&lt;P&gt;I could insert the dates in the syntax "holiday" of the function&amp;nbsp;Networkdays , but the list is very long (summer holiday, Christmas, Easter, patron saint, business closing days, etc for each year) and I should manage an "extra" calendar.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 13:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640383#M47730</guid>
      <dc:creator>s_gorgo</dc:creator>
      <dc:date>2019-10-28T13:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640392#M47731</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case you'd like to do a bit of configuration in your calendar table and make sure it accumulates the WorkingDay flag as shown in the example below (It doesn't matter at what date it starts). Make sure the Calendar is Ordered BY the date field using a Resident load.&lt;/P&gt;&lt;P&gt;The accumulation you can do using the Previous() and RangeSum() functions.&lt;/P&gt;&lt;P&gt;Id put an if statement to check if it's a working day or not to achieve that continuous ID throughout the non-working days.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 425px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22451i601ECF241998D0D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After you have your calendar appearing as the table above, you need to do a mapping load to get the Date and the Accumulated number of days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then for your field you do ApplyMap('Calendar', Date1) - ApplyMap('Calendar', Date2) as [Desired Result].&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have questions on how exactly to achieve this with code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 13:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640392#M47731</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-10-28T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640465#M47737</link>
      <description>&lt;P&gt;You are a genius!!&lt;/P&gt;&lt;P&gt;I already have the field that you called "Backend_accumulation" bacause I have to know the number of working days for each year.&lt;/P&gt;&lt;P&gt;I will try ASAP!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 16:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640465#M47737</guid>
      <dc:creator>s_gorgo</dc:creator>
      <dc:date>2019-10-28T16:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640470#M47738</link>
      <description>&lt;P&gt;I have a question.........&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Date1 and Date2 are two fields of another table.&lt;/P&gt;&lt;P&gt;So.. the syntax should be something like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date1 --&amp;gt; calendario.data = tab_MASTER_ORDINI.DataValidazione&lt;/LI&gt;&lt;LI&gt;Date2 --&amp;gt; calendario.data = tab_MASTER_ORDINI.DataRichiestaConsegna&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For this reason in my first function I have used set analysis.&lt;/P&gt;&lt;P&gt;How could i solve?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 16:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640470#M47738</guid>
      <dc:creator>s_gorgo</dc:creator>
      <dc:date>2019-10-28T16:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640486#M47740</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the kind words &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is how I presume your code should look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;MapDateAccumulationIndexes:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;MAPPING LOAD DISTINCT&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;Date,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;Backend_accumulation&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;From Calendar.qvd&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;LIB CONNECT TO 'K--DiPR-PPlan-_PPlan-DB_produzione.accdb';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;LOAD Autore,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;AutoreModifica,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Cliente,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;CodiceCliente,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;[...]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SettimanaMAD,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SettimanaMontaggio,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Stato,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;StatoODP,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;TipoOrdine,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;TM,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;UDM,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;If (TipoOrdine = 'KD', 'pianificato', If(TipoOrdine = 'ZCAB', 'mobili', 'generici')) as StatoOrdine,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;If (isnull(DataConsegnaRichiesta),'noDateReq',If (MAD &amp;lt;= DataConsegnaRichiesta, 'onTime', 'onDelay')) as Validazione,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Date(WeekEnd(DataValidazione)-2,'DD/MM/YYYY') as DataValidazioneVenerdì,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Date(WeekEnd(DataConsegnaRichiesta)-2,'DD/MM/YYYY') as DataConsegnaRichiestaVenerdì,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Date(WeekStart(DataConsegnaRichiesta)-3,'DD/MM/YYYY') as DataConsegnaRichiestaVenerdìMeno&lt;FONT color="#339966"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;ApplyMap('MapDateAccumulationIndexes',&amp;nbsp;Date(WeekEnd(DataValidazione)-2,'DD/MM/YYYY'), 'n/a')-&lt;BR /&gt;ApplyMap('MapDateAccumulationIndexes', Date(WeekStart(DataConsegnaRichiesta)-3,'DD/MM/YYYY'), 'n/a') as [NetWorkingDaysBetweenDates]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SQL SELECT Autore,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;AutoreModifica,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Cliente,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;CodiceCliente,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;[...]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SettimanaMAD,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;SettimanaMontaggio,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Stato,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;StatoODP,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;TipoOrdine,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;TM,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;UDM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;FROM `tab_MASTER_ORDINI`;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Let me know if this helps!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Kind regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;S.T.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 16:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640486#M47740</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-10-28T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640500#M47741</link>
      <description>&lt;P&gt;Mmmmmm... maybe i don't understand.&lt;/P&gt;&lt;P&gt;I entered this code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Calendar:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MAPPING LOAD DISTINCT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Data,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NrGgLavProgressivo&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM [lib://Calendario/tabCalendario.xlsx]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(ooxml, embedded labels, table is Calendario);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this field in tab_MASTER_ORDINI:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ApplyMap('Calendar', Date(WeekEnd(DataValidazione)-2,'DD/MM/YYYY'), 'n/a')-ApplyMap('Calendar', Date(WeekStart(DataConsegnaRichiesta)-3,'DD/MM/YYYY'), 'n/a') as [GgLavValidazione];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But.. all record are empty:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 898px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22473iD2B5D8BBE613A8B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 17:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640500#M47741</guid>
      <dc:creator>s_gorgo</dc:creator>
      <dc:date>2019-10-28T17:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640515#M47743</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose the [Data] field in your Calendar table isn't formatted as Date with the same format as the other fields.&lt;/P&gt;&lt;P&gt;Let's get the exact script offline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 18:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640515#M47743</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-10-28T18:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640733#M47759</link>
      <description>&lt;P&gt;Yes, you're right.&lt;/P&gt;&lt;P&gt;I've tried to use the function with other Date fields and it works perfectly. I suppose that the error is the format of the field DataValidazioneVenerdì. Looking in the table I found that the format isn't "Date", but "Date and Time" (see the clock icon).&lt;/P&gt;&lt;P&gt;I don't know very well Qlik data formats, but I don't understand because the field DataConsegnaVenerdìMeno is right while the others, created with the same function, are not.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":pensive_face:"&gt;😔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 10:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640733#M47759</guid>
      <dc:creator>s_gorgo</dc:creator>
      <dc:date>2019-10-29T10:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640737#M47760</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad you are satisfied with the resolution!&lt;/P&gt;&lt;P&gt;Not sure that's going to work as is but&amp;nbsp;you can do Date(Floor([DataField])) to make it a 'regular' Date.&lt;/P&gt;&lt;P&gt;That's a tricky topic in QV, you can check the Date() and Date#() functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 10:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640737#M47760</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-10-29T10:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a set analysis string in load script editor</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640781#M47763</link>
      <description>&lt;P&gt;I don't know why, but:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Weekend function return "Date and Time" data format;&lt;/LI&gt;&lt;LI&gt;Weekstart function return "Date" data format.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;At least in my app&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 12:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-a-set-analysis-string-in-load-script-editor/m-p/1640781#M47763</guid>
      <dc:creator>s_gorgo</dc:creator>
      <dc:date>2019-10-29T12:11:48Z</dc:date>
    </item>
  </channel>
</rss>

