<?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: IF(getcurrentfield Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-getcurrentfield-Not-Working/m-p/1362840#M417474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using the wrong function here.... try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetFieldSelections(MyGroup)='Properties', 'Hi', 'Bye')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you will only ever make a single selection in your MyGroup field, you can also do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(MyGroup = 'Properties', 'Hi', 'Bye')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jun 2017 00:10:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-27T00:10:56Z</dc:date>
    <item>
      <title>IF(getcurrentfield Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-getcurrentfield-Not-Working/m-p/1362839#M417473</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;I am trying to use the following expression:&lt;/P&gt;&lt;P&gt;If(getcurrentfield(MyGroup)='Properties', 'Hi', 'Bye')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason, the expression only returns 'Bye' even when the current field selected is Properties. Attached is a sample app. Your help would be greatly appreciated. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 23:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-getcurrentfield-Not-Working/m-p/1362839#M417473</guid>
      <dc:creator>alexandergrando</dc:creator>
      <dc:date>2017-06-26T23:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: IF(getcurrentfield Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-getcurrentfield-Not-Working/m-p/1362840#M417474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using the wrong function here.... try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetFieldSelections(MyGroup)='Properties', 'Hi', 'Bye')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you will only ever make a single selection in your MyGroup field, you can also do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(MyGroup = 'Properties', 'Hi', 'Bye')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 00:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-getcurrentfield-Not-Working/m-p/1362840#M417474</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-27T00:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: IF(getcurrentfield Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-getcurrentfield-Not-Working/m-p/1362841#M417475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GetCurrentField(groupname)&lt;/P&gt;&lt;P&gt;returns the name of the field currently active in the group named groupname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So better to use GetFieldSelections like: =if(GetFieldSelections(val)=40,'Hi','Bye')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or simple if condition like: =if(val=40,'Hi','Bye')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 06:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-getcurrentfield-Not-Working/m-p/1362841#M417475</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2017-06-27T06:30:19Z</dc:date>
    </item>
  </channel>
</rss>

