<?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: Issue with an if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10208#M790459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also the Date Format is set correctly to DD-MM-YY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2018 09:51:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-29T09:51:45Z</dc:date>
    <item>
      <title>Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10202#M790453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have some pretty big nested Ifs' with which I assign the amount of working days to each month that's something like this: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Jan', 16&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Feb',20&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Mar',23&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Apr',18&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'May',22&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'June',22&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'July',21&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Aug',22&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Sept' and assign_date &amp;lt;= '11-09-17',6&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Sept' and assign_date &amp;gt;= '11-09-17',14&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Oct', 22&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Nov', 21&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(assign_date_month = 'Dec', 18&lt;/P&gt;&lt;P&gt;,&lt;SPAN style="font-size: 10pt;"&gt;if(assign_date_month = 'Jan' and Year(assign_date) = 2018,5)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The exception on September is due to the fact that September is split between two work cycles(Cycle 2 is until 11-09-17 and Cycle 3 is after 11-09-17), that I can manipulate via multibox. My problem is, apparently it doesn't work, because regardless if I select Cycle 2 or Cycle 3, the September value for working days is considered null.&lt;BR /&gt;TL;DR: I want my value for working days in September to change depending on what cycle I select(Cycle 2 and 3 in this case). Cycle 2 is until the date of 11-09-2017 and Cycle 3 is after the date of 11-09-2017. How can I do that, preferably in the nested Ifs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10202#M790453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10203#M790454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some sample data?&lt;/P&gt;&lt;P&gt;What's the format for&amp;nbsp; assign_date? Try using Date function once&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 09:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10203#M790454</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-01-29T09:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10204#M790455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If assign_date = 11-09-17, you try to stuff two distinct values (6 &lt;EM&gt;and&lt;/EM&gt; 14) in whatever field or table cell you are applying this expression to. That won't work. I think (according to your explanation) that the second if condition should omit the equal sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 09:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10204#M790455</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-01-29T09:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10205#M790456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The format for assign_date is 'DD-MM-YY'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 09:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10205#M790456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T09:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10206#M790457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also make sure that your default date format accepts 11-09-17 as a date string. Check global variable DateFormat for the correct format string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 09:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10206#M790457</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-01-29T09:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10207#M790458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So something like: &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(assign_date_month = 'Sept' and assign_date &amp;lt;= '11-09-17',6&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(assign_date_month = 'Sept' and assign_date &amp;gt; '11-09-17',14)&lt;BR /&gt;? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 09:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10207#M790458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T09:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10208#M790459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also the Date Format is set correctly to DD-MM-YY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 09:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10208#M790459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10209#M790460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now it depends on context (for which we don't get any details). If you now select september, then how many different dates will go into your expression? This expression will work just fine for september if you use it in a straight table in which assign_date is a dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 10:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10209#M790460</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-01-29T10:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10210#M790461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using it in a pivot table, with assign_date_month and area as dimensions, and the nested ifs are used in an expression to assign the working days for every month. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 11:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10210#M790461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with an if</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10211#M790462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Managed to find a workaround by replacing the date comparisons with WildMatch(Concat(....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 11:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-an-if/m-p/10211#M790462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T11:31:53Z</dc:date>
    </item>
  </channel>
</rss>

