<?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: Using variable in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variable-in-expression/m-p/1548974#M745387</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;&lt;PRE&gt;=Avg({&amp;lt;[Bolag], [Info Bransch] = P({$} [Info Bransch])&amp;gt;} $(varLönsamhet))&lt;/PRE&gt;&lt;P&gt;Assuming the variable varLönsamhet does not include an aggregation like Sum() or Count().&lt;/P&gt;</description>
    <pubDate>Tue, 26 Feb 2019 05:51:51 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2019-02-26T05:51:51Z</dc:date>
    <item>
      <title>Using variable in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-expression/m-p/1548970#M745386</link>
      <description>&lt;P&gt;Hi community,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm trying to get the following expression to work&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Avg({&amp;lt;[Bolag]=,[Info Bransch]=P({$} [Info Bransch])&amp;gt;}[$(=varLönsamhet)])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where I want to calculate the average selected KPI from a list box for companies in the same sector as the selected one (Bolag = Company, Info Bransch = Sector). The KPI selected is captured in the varLönsamhet variable but how do I properly include the variable in the expression? Right now I get an error message.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Philip&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-expression/m-p/1548970#M745386</guid>
      <dc:creator>Hoowling</dc:creator>
      <dc:date>2024-11-16T04:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-expression/m-p/1548974#M745387</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;&lt;PRE&gt;=Avg({&amp;lt;[Bolag], [Info Bransch] = P({$} [Info Bransch])&amp;gt;} $(varLönsamhet))&lt;/PRE&gt;&lt;P&gt;Assuming the variable varLönsamhet does not include an aggregation like Sum() or Count().&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 05:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-expression/m-p/1548974#M745387</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-02-26T05:51:51Z</dc:date>
    </item>
  </channel>
</rss>

