<?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: Need help substituting a list of holidays with a variable in a formula in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-help-substituting-a-list-of-holidays-with-a-variable-in-a/m-p/2020551#M84265</link>
    <description>&lt;P&gt;bump, anyone?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 09:37:10 GMT</pubDate>
    <dc:creator>Quentinn</dc:creator>
    <dc:date>2022-12-29T09:37:10Z</dc:date>
    <item>
      <title>Need help substituting a list of holidays with a variable in a formula</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-substituting-a-list-of-holidays-with-a-variable-in-a/m-p/2020377#M84256</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;With some research I made a formula for calculating a turnaround time, excluding holidays and weekend, except for when the endtime (firstvalidating) falls on a weekend or holiday, then the hours of those days are included.&lt;/LI&gt;
&lt;LI&gt;I made a variable "feestdagen_concat" which is a concantenated list of holidays&lt;/LI&gt;
&lt;LI&gt;When substitute the list of holidays ('xx/xx/xxx', 'xx/xx/xxxx',...) with this variable in the formula the trunaround time isn't calculated correctly anymore, when I take the variable (thus the concatenated list) and put this list in the formula it works fine.&lt;/LI&gt;
&lt;LI&gt;I tried with a "$" etc but I can't get it to work&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;= interval(NetWorkDays(RegistrationDateTime, if(weekday(FirstValidatingDateTime) = 0 , if (match (Floor(FirstValidatingDateTime + 1), &lt;STRONG&gt;Feestdagen_Concat&lt;/STRONG&gt;), Floor(FirstValidatingDateTime + 2), Floor(FirstValidatingDateTime + 1)),&lt;BR /&gt;if(weekday(FirstValidatingDateTime) = 6, Floor(FirstValidatingDateTime + 2), FirstValidatingDateTime)), &lt;STRONG&gt;Feestdagen_Concat&lt;/STRONG&gt;) -2&lt;BR /&gt;+ (1-frac(RegistrationDateTime)) + frac(if(weekday(FirstValidatingDateTime) = 6 or weekday(FirstValidatingDateTime) = 0 , Floor(FirstValidatingDateTime), FirstValidatingDateTime)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 15:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-substituting-a-list-of-holidays-with-a-variable-in-a/m-p/2020377#M84256</guid>
      <dc:creator>Quentinn</dc:creator>
      <dc:date>2022-12-28T15:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help substituting a list of holidays with a variable in a formula</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-substituting-a-list-of-holidays-with-a-variable-in-a/m-p/2020551#M84265</link>
      <description>&lt;P&gt;bump, anyone?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 09:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-substituting-a-list-of-holidays-with-a-variable-in-a/m-p/2020551#M84265</guid>
      <dc:creator>Quentinn</dc:creator>
      <dc:date>2022-12-29T09:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help substituting a list of holidays with a variable in a formula</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-substituting-a-list-of-holidays-with-a-variable-in-a/m-p/2021074#M84296</link>
      <description>&lt;P&gt;The most likely explanation is that your variable doesn't contained the right values within the right syntax. I suggest to simplify your variable and expression for the testing - no concat() just two manual values in the variable and no if-loops just the networkday() and then looking how the variable-value is resolved. Within QlikView this could be observed within an empty label for an expression - in Sense I'm not sure, I believe there is a resolution anywhere within the expression-window.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 14:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-substituting-a-list-of-holidays-with-a-variable-in-a/m-p/2021074#M84296</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-01-02T14:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help substituting a list of holidays with a variable in a formula</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-substituting-a-list-of-holidays-with-a-variable-in-a/m-p/2021079#M84297</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes that’s what I thought. I found out my format is DD/MM/YYYY while Qlik uses the standard format MM/DD/YYYY. Unfortunately this doesn’t change anything.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I’ll try a simplified syntax to test&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 14:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-substituting-a-list-of-holidays-with-a-variable-in-a/m-p/2021079#M84297</guid>
      <dc:creator>Quentinn</dc:creator>
      <dc:date>2023-01-02T14:47:16Z</dc:date>
    </item>
  </channel>
</rss>

