<?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: Using YTD field in If statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924721#M468747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this?&lt;/P&gt;&lt;P&gt;if(YTD='YTD',sum({&amp;lt;YTDFlag={1}&amp;gt;}Value),sum({&amp;lt;YTDFlag={0}&amp;gt;}Value))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 11:19:50 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2015-08-14T11:19:50Z</dc:date>
    <item>
      <title>Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924708#M468734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an if statement in an expression using a YTD (Year to Date) field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is find out if the month "July" falls within the YTD field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So something like.....&lt;STRONG&gt;If YTD contains July, then 1, else 0&lt;/STRONG&gt;.&amp;nbsp; I just don't know how to make the connection on a value that isn't actually part of the yield biut is associated with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924708#M468734</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-08-14T02:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924709#M468735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What values does your YTD field contains??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924709#M468735</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T02:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924710#M468736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you asking to shift the YTD flag calculation from Jan to July Month ? or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you already have [YTDField] in your table &amp;amp; we want check the YTDField in July month or not, then you can generaly IF statement like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF( Month(YTDField)=7,1,0) AS YTDFlag&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924710#M468736</guid>
      <dc:creator />
      <dc:date>2015-08-14T02:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924711#M468737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My YTD values are "YTD" and "NOYTD"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924711#M468737</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-08-14T02:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924712#M468738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already identifed in the script which months are "YTD" and which months are "NOYTD". My issue is that I have an expression that I need to by able to identify specfic months in an if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to be able to write something along the lines of...&lt;/P&gt;&lt;P&gt;If YTD contains "July", then Expression 1, else expression 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924712#M468738</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-08-14T02:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924713#M468739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My YTD values are "YTD" and "NOYTD"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924713#M468739</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-08-14T02:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924714#M468740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Num(Month(Today())) &amp;gt;= 7, Expression1, Expression2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Month(Today()) will give your YTD information and 7 is used for month July&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 03:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924714#M468740</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T03:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924715#M468741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No because YTD is always changing. When next year comes July won't be associated with the YTD field until July comes. It needs to be dynamic.&lt;/P&gt;&lt;P&gt;I have 12 columns one for each month and each one needs to have this logic. THanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 10:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924715#M468741</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-08-14T10:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924716#M468742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zagzebski,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( Num(Month(YTD))= 7,1,0) AS YTDFlag&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;IF( Month(YTD)= 'JUL',1,0) AS YTDFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 10:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924716#M468742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T10:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924717#M468743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why did you choose July right now? Is it the max date in your database? What was the logic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 10:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924717#M468743</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T10:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924718#M468744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;July was just an example - I will need one for Jan, Feb Mar, etc. depnding on what time of the year it is. The YTD field is set to "YTD" or "NOYTD" for each month based on what time of the year it is but since the month is only associated to the YTD field and not an actual value within the field I don't know how to write expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 10:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924718#M468744</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-08-14T10:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924719#M468745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Neetha - YTD&amp;nbsp; is not a month field it is only an indicator that is associated to the month field so that wouldn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 10:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924719#M468745</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-08-14T10:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924720#M468746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share few lines of data with the expected output?? I am unable to interpret your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 11:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924720#M468746</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T11:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924721#M468747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this?&lt;/P&gt;&lt;P&gt;if(YTD='YTD',sum({&amp;lt;YTDFlag={1}&amp;gt;}Value),sum({&amp;lt;YTDFlag={0}&amp;gt;}Value))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 11:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924721#M468747</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-14T11:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924722#M468748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are looking for something along these lines. Assuming you are in a table/chart with Month* as a dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =If(YTD = 'YTD', &amp;lt;expression 1&amp;gt;, &amp;lt;expression 2&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart/table dimensions will get the appropriate values of the YTD field to enable you to choose which expression to use. This assume that the field YTD is properly associated with the field Month*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* rename according to the month field in your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 11:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924722#M468748</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-14T11:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using YTD field in If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924723#M468749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please elaborate on your requirement,so will be able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 13:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YTD-field-in-If-statement/m-p/924723#M468749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T13:35:16Z</dc:date>
    </item>
  </channel>
</rss>

