<?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 FieldValue function not working as hoped in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FieldValue-function-not-working-as-hoped/m-p/239111#M89819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ivan,&lt;/P&gt;&lt;P&gt;That's an excellent suggestion. I tried it out. It works like a charm! Flawless. Thanks much!!&lt;/P&gt;&lt;P&gt;I wonder if I could do a pick(rowno(), $([MyExpressionList])) where my MyExpressionList is field or combine it with a Dual() and FieldValue to get a more optimal solution where I don't have to spell out the list because if I have 20 KPIs and I want their variances as well, I don't want to type it all out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 May 2010 18:55:56 GMT</pubDate>
    <dc:creator>avastani</dc:creator>
    <dc:date>2010-05-12T18:55:56Z</dc:date>
    <item>
      <title>FieldValue function not working as hoped</title>
      <link>https://community.qlik.com/t5/QlikView/FieldValue-function-not-working-as-hoped/m-p/239109#M89817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone been able to solve this mystery in their QV Adventures?&lt;/P&gt;&lt;P&gt;Essentially, I store my KPI and their definition in a table and then use it in a pivot table as below, but the FieldValue function only returns a string and does not evaluate the expression definition as you can see. I wrap it around a $(FieldValue...()) and it does not work either.&lt;/P&gt;&lt;P&gt;Any suggestions are most appreciated.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1607_sourceID:1607" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 16:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FieldValue-function-not-working-as-hoped/m-p/239109#M89817</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2010-05-12T16:35:53Z</dc:date>
    </item>
    <item>
      <title>FieldValue function not working as hoped</title>
      <link>https://community.qlik.com/t5/QlikView/FieldValue-function-not-working-as-hoped/m-p/239110#M89818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amir, I have had the same problem. For my experience I can tell you that the dollar sign expasion is evaluated only once, so if you have multiple KPI's it wont work, however if you select only one, the value should be displayed. What I did to solve the problem is loading the KPI as you did with an ID column, which was a plain rownno() function. When yo create your chart, use the pick(ID, expr1, expr2,...) as the expression. Notice that you can use your dollar expansion within the values of the pick function. This approach has a drawback, since you would have to place an expr within the pick function for every KPI. If you want to add KPI without the need to edit your char expression, you can generate the pick strucuture within the script, based on the number of KPI you are loading.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 18:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FieldValue-function-not-working-as-hoped/m-p/239110#M89818</guid>
      <dc:creator />
      <dc:date>2010-05-12T18:06:43Z</dc:date>
    </item>
    <item>
      <title>FieldValue function not working as hoped</title>
      <link>https://community.qlik.com/t5/QlikView/FieldValue-function-not-working-as-hoped/m-p/239111#M89819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ivan,&lt;/P&gt;&lt;P&gt;That's an excellent suggestion. I tried it out. It works like a charm! Flawless. Thanks much!!&lt;/P&gt;&lt;P&gt;I wonder if I could do a pick(rowno(), $([MyExpressionList])) where my MyExpressionList is field or combine it with a Dual() and FieldValue to get a more optimal solution where I don't have to spell out the list because if I have 20 KPIs and I want their variances as well, I don't want to type it all out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 18:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FieldValue-function-not-working-as-hoped/m-p/239111#M89819</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2010-05-12T18:55:56Z</dc:date>
    </item>
    <item>
      <title>FieldValue function not working as hoped</title>
      <link>https://community.qlik.com/t5/QlikView/FieldValue-function-not-working-as-hoped/m-p/239112#M89820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amir, I rembered trying to implent something very similar to the approach you suggested, what I did is concatenate all you KPI's formulas as you load them into the data cload:&lt;/P&gt;&lt;P&gt;Load ID,&lt;/P&gt;&lt;P&gt;expr,&lt;/P&gt;&lt;P&gt;previous(exprconcat) &amp;amp; if(rowno() = 1, '', ',') &amp;amp; expr as exprconcat&lt;/P&gt;&lt;P&gt;from a;&lt;/P&gt;&lt;P&gt;I can't guarantee the syntax, but thats the idea. Once you do that, you would have all your expression concatenated in the last record, so your expression might look something like these:&lt;/P&gt;&lt;P&gt;pick(ID, $(vExprConcatLastRecord) )&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 19:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FieldValue-function-not-working-as-hoped/m-p/239112#M89820</guid>
      <dc:creator />
      <dc:date>2010-05-12T19:09:09Z</dc:date>
    </item>
  </channel>
</rss>

