<?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 Qlikview expression Year field name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428392#M807182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field name as "Year". It has only one value ie. 2015. When I am writing the below expression it is not giving me correct result.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(Year&amp;lt;=Year(today()),1,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie. 2015&amp;lt;=2017 it should give output as &lt;STRONG&gt;1,&lt;/STRONG&gt; but it is giving&lt;STRONG&gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I use a variable instead of Year Field.ie&lt;/P&gt;&lt;P&gt;a=Year&lt;/P&gt;&lt;P&gt;And replace the expression by:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;=if($(a)&amp;lt;=Year(today()),1,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is it because we have predefined Year function name?&lt;/P&gt;&lt;P&gt;Is there any other way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Qlikview expression Year field name</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428392#M807182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field name as "Year". It has only one value ie. 2015. When I am writing the below expression it is not giving me correct result.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(Year&amp;lt;=Year(today()),1,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie. 2015&amp;lt;=2017 it should give output as &lt;STRONG&gt;1,&lt;/STRONG&gt; but it is giving&lt;STRONG&gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I use a variable instead of Year Field.ie&lt;/P&gt;&lt;P&gt;a=Year&lt;/P&gt;&lt;P&gt;And replace the expression by:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;=if($(a)&amp;lt;=Year(today()),1,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is it because we have predefined Year function name?&lt;/P&gt;&lt;P&gt;Is there any other way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&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/Qlikview-expression-Year-field-name/m-p/1428392#M807182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview expression Year field name</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428393#M807183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have really one Year then it should return one, If you have more than one it returns zero because Qlik can not identify from Year field to comparison. If you try same expression in straight table this works like charm but not&amp;nbsp; in table box..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 05:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428393#M807183</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-25T05:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview expression Year field name</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428394#M807184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write this in the variable with Max key word&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if( Max(Year) &amp;lt;= Year(today()),1,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 05:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428394#M807184</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-25T05:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview expression Year field name</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428395#M807185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This i suggest for the variables another one is because what ever value you have in your field you have to find it and get selected on any variable or a max value or may be &lt;STRONG&gt;&lt;EM&gt;Getfieldselections(Year)&lt;/EM&gt;&lt;/STRONG&gt; but this works when you have select any value in the Year field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let a = &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max(Year);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let b= &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if( $(a) &amp;lt;= Year(Today()),1,0);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428395#M807185</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-25T06:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview expression Year field name</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428396#M807186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Anil said, in the variable it is storing single value at a time that's why it is working properly but when you are directly using there must be more than 1 value for Year and thus not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428396#M807186</guid>
      <dc:creator>nehasaxena</dc:creator>
      <dc:date>2017-10-25T06:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview expression Year field name</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428397#M807187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428397#M807187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-25T06:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview expression Year field name</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428398#M807188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your sure it is working at my end can you share sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428398#M807188</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-25T06:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview expression Year field name</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428399#M807189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't say direct without checking. This should work as expected. But the reason you are saying it's not working that means i believe you are doing some end BTA for others. So, We would like to offer you before not knowing anything until unless something guess ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428399#M807189</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-25T06:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview expression Year field name</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428400#M807190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-expression-Year-field-name/m-p/1428400#M807190</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-25T06:10:52Z</dc:date>
    </item>
  </channel>
</rss>

