<?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: Set Analysis - using FieldValue function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423360#M488625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for my own understanding, why would the formula only work if you include the $ expansion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 11:54:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-15T11:54:11Z</dc:date>
    <item>
      <title>Set Analysis - using FieldValue function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423356#M488621</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;This formula works:&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MEASURE_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Profit Growth'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} KPI) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if I try this formula it does not. Can you use the FieldValue function in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MEASURE_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Fieldvalue('MEASURE_DESC',1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} KPI) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 11:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423356#M488621</guid>
      <dc:creator />
      <dc:date>2013-01-15T11:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - using FieldValue function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423357#M488622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MEASURE_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {"$(=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Fieldvalue('MEASURE_DESC',1))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} KPI) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 11:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423357#M488622</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-15T11:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - using FieldValue function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423358#M488623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works, thankyou, but it shows the formula as an error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="30442" alt="Capture1.PNG" class="jive-image-thumbnail jive-image" height="74" src="https://community.qlik.com/legacyfs/online/30442_Capture1.PNG" width="576" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 11:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423358#M488623</guid>
      <dc:creator />
      <dc:date>2013-01-15T11:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - using FieldValue function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423359#M488624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax checker probably gets confused by the multiple single quotes (note that I change my expression to use double and single quotes, while single quotes only were my first approach and could / should work, too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMeasureDesc&lt;/P&gt;&lt;P&gt; =Fieldvalue('MEASURE_DESC',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use the variable in the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MEASURE_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vMeasureDesc)'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} KPI) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 11:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423359#M488624</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-15T11:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - using FieldValue function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423360#M488625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for my own understanding, why would the formula only work if you include the $ expansion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 11:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423360#M488625</guid>
      <dc:creator />
      <dc:date>2013-01-15T11:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - using FieldValue function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423361#M488626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The $(= tells QV to evaluate the expression, and match the result of the evaluation. Otherwise, it is trying match the string "=Fieldvalue('MEASURE_DESC',1)" (not evaluated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 12:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423361#M488626</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-01-15T12:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - using FieldValue function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423362#M488627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need a dollar sign expansion if you want to dynamically retrieve a value (literal) for your field value list in your set modifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use an advanced search (like, in your OP, using {"=&lt;EM&gt;expression&lt;/EM&gt;"} ), I think you can write it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MEASURE_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {"=MEASURE_DESC=fieldvalue('MEASURE_DESC',1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} KPI) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;which is an advanced search using a record based comparison. I would prefer using the dollar sign expansion variant.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 12:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423362#M488627</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-15T12:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - using FieldValue function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423363#M488628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;Would the row based search work in &lt;STRONG&gt;Qlik Sense&lt;/STRONG&gt; too ? I am trying to use a set analysis to get the sum of a measure value based on a date field. This date field may be different for each row in the table, so can the set analysis work in this case? Right now, I am just getting the sum of the measure value for only one of the dates and it appears 0 for the rest of the dates even though there is value available for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The date field is actually derived from a variable and varies for each row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 07:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-FieldValue-function/m-p/423363#M488628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-20T07:25:30Z</dc:date>
    </item>
  </channel>
</rss>

