<?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 Expression not working consistently in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150704#M28680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, forgot the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 14:47:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-30T14:47:44Z</dc:date>
    <item>
      <title>Expression not working consistently</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150700#M28676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an expression which works fine when put in a List Box. But when I put it in a text object or a button, it does not show the desired value and appears blank.&lt;/P&gt;&lt;P&gt;The expression looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;=if(LabelName='xyz',$(Language))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;${Language) is dynamic and evaluates to a field depending upon value passed to variable 'Language'.&lt;/P&gt;&lt;P&gt;Any suggestion/thoughts on this issue will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 13:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150700#M28676</guid>
      <dc:creator />
      <dc:date>2009-07-30T13:31:12Z</dc:date>
    </item>
    <item>
      <title>Expression not working consistently</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150701#M28677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit,&lt;/P&gt;&lt;P&gt;Look at the attached example. I have a variable var1 and assign the value 168. If i click "Account1" in the list object it showing the value else not showing the value. Hope this helps.&lt;/P&gt;&lt;P&gt;-Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 13:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150701#M28677</guid>
      <dc:creator />
      <dc:date>2009-07-30T13:51:52Z</dc:date>
    </item>
    <item>
      <title>Expression not working consistently</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150702#M28678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Not having looked at the document I can't say for sure but it sounds like your field LabelName has more than one possible value.&lt;/P&gt;&lt;P&gt;If you select 'xyz' in the field, does the text object show the value like you expect?&lt;/P&gt;&lt;P&gt;The thing is, if you have two values in LabelName, xyz and xyz2 and none is selected QlikView doesn't know what value LabelName has and if you add a text object with just =LabelName it will return null. If you pick one value it will display that value though since it doesn't have to make a desicion for what value to show.&lt;/P&gt;&lt;P&gt;There is nothing technically wrong with the expression and technically it will work perfectly in a Text object as well as a list box but if you're experiencing results that you're not anticipating I suggest that you post an example here since that gives everyone a better view of what's going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 13:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150702#M28678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-30T13:59:13Z</dc:date>
    </item>
    <item>
      <title>Expression not working consistently</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150703#M28679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply and the vaulable inputs. You are right, LabelName has more than one value and it's causing text box to show null when I dont select anything in LabelName (thanks for pointing this out!).&lt;/P&gt;&lt;P&gt;Attaching a sample qvw for your reference, I wish to display the value of a field (which is dynamic) corresponding to a LabelName. Is there a way to display it in a text box without making any selections?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 14:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150703#M28679</guid>
      <dc:creator />
      <dc:date>2009-07-30T14:36:16Z</dc:date>
    </item>
    <item>
      <title>Expression not working consistently</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150704#M28680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, forgot the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 14:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150704#M28680</guid>
      <dc:creator />
      <dc:date>2009-07-30T14:47:44Z</dc:date>
    </item>
    <item>
      <title>Expression not working consistently</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150705#M28681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;In this case you should be able to use Maxstring() or Minstring() as you're only looking for one value but it gives you the data aggregation you need.&lt;/P&gt;&lt;P&gt;So, in other words:&lt;/P&gt;&lt;P&gt;=maxstring(if(LabelName='xyz',$(Language)))&lt;/P&gt;&lt;P&gt;This should work. Depends on how complex the final solution will be though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 15:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150705#M28681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-30T15:13:22Z</dc:date>
    </item>
    <item>
      <title>Expression not working consistently</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150706#M28682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion, however maxstring() works only till we are not selecting anything other than 'xyz' in LabelName.&lt;/P&gt;&lt;P&gt;One way I think is to create a variable in edit script and use lookup() or applymap() functions. However, this will lead to creation of as many variables as values in LabelName..that's why I wanted to do this in front-end but lookup() or applymap() does not work there. Attaching sample qvw showing use of these functions in edit script.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 16:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-consistently/m-p/150706#M28682</guid>
      <dc:creator />
      <dc:date>2009-07-30T16:38:08Z</dc:date>
    </item>
  </channel>
</rss>

