<?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 Formula inside a variable (inside a field) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Formula-inside-a-variable-inside-a-field/m-p/1686237#M52261</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My goal is to create a radar chart with like 10 KPIs with complex formula.&lt;/P&gt;&lt;P&gt;I want to see for one country what is the value of each one of the KPI.&lt;/P&gt;&lt;P&gt;At first, I used such a code in the radar measure:&lt;/P&gt;&lt;P&gt;=Peek(Match(KPI_id, 1, 2, 3, ...), $(vKPI1),&amp;nbsp;$(vKPI2),&amp;nbsp;$(vKPI3), ...)&lt;/P&gt;&lt;P&gt;And each one of the variable vKPIi contains the formula of the KPI.&lt;/P&gt;&lt;P&gt;But I would like to do something smarter.&lt;/P&gt;&lt;P&gt;The list of the KPIs is in a dimension, with these columns:&lt;/P&gt;&lt;P&gt;KPI_name | KPI_id | KPI_variable&lt;/P&gt;&lt;P&gt;My KPI 1&amp;nbsp; | 1 | KPI1&lt;/P&gt;&lt;P&gt;My KPI 2 | 2 | KPI2&lt;/P&gt;&lt;P&gt;My KPI 3 | 3 | KPI3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list of KPIs could evolve frequently, I am not very pleased with the solution based on the ID.&lt;/P&gt;&lt;P&gt;I would like to directly use the value of the field KPI_variable to get the formula of the KPI.&lt;/P&gt;&lt;P&gt;I tried a lot of things but couldn't achieve to do it.&lt;/P&gt;&lt;P&gt;Please help needed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
    <dc:creator>mrieuse</dc:creator>
    <dc:date>2021-12-20T21:32:42Z</dc:date>
    <item>
      <title>Formula inside a variable (inside a field)</title>
      <link>https://community.qlik.com/t5/App-Development/Formula-inside-a-variable-inside-a-field/m-p/1686237#M52261</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My goal is to create a radar chart with like 10 KPIs with complex formula.&lt;/P&gt;&lt;P&gt;I want to see for one country what is the value of each one of the KPI.&lt;/P&gt;&lt;P&gt;At first, I used such a code in the radar measure:&lt;/P&gt;&lt;P&gt;=Peek(Match(KPI_id, 1, 2, 3, ...), $(vKPI1),&amp;nbsp;$(vKPI2),&amp;nbsp;$(vKPI3), ...)&lt;/P&gt;&lt;P&gt;And each one of the variable vKPIi contains the formula of the KPI.&lt;/P&gt;&lt;P&gt;But I would like to do something smarter.&lt;/P&gt;&lt;P&gt;The list of the KPIs is in a dimension, with these columns:&lt;/P&gt;&lt;P&gt;KPI_name | KPI_id | KPI_variable&lt;/P&gt;&lt;P&gt;My KPI 1&amp;nbsp; | 1 | KPI1&lt;/P&gt;&lt;P&gt;My KPI 2 | 2 | KPI2&lt;/P&gt;&lt;P&gt;My KPI 3 | 3 | KPI3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list of KPIs could evolve frequently, I am not very pleased with the solution based on the ID.&lt;/P&gt;&lt;P&gt;I would like to directly use the value of the field KPI_variable to get the formula of the KPI.&lt;/P&gt;&lt;P&gt;I tried a lot of things but couldn't achieve to do it.&lt;/P&gt;&lt;P&gt;Please help needed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Formula-inside-a-variable-inside-a-field/m-p/1686237#M52261</guid>
      <dc:creator>mrieuse</dc:creator>
      <dc:date>2021-12-20T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formula inside a variable (inside a field)</title>
      <link>https://community.qlik.com/t5/App-Development/Formula-inside-a-variable-inside-a-field/m-p/1686668#M52312</link>
      <description>&lt;P&gt;I think you mean to use pick(match()) instead of peek(match())?&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use something like this for the expression, assuming KPI_variable contains the names of variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;$(='Pick(Match([KPI_id],'&amp;amp;Concat([KPI_id],',',[KPI_id])&amp;amp;'), $'&amp;amp;'('&amp;amp;Concat([KPI_variable],'),$'&amp;amp;'(',[KPI_id])&amp;amp;'))')&lt;/P&gt;&lt;P&gt;So first you build the measure in string format. Then put it in $(=string) to use it as an expression.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 16:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Formula-inside-a-variable-inside-a-field/m-p/1686668#M52312</guid>
      <dc:creator>MikeW</dc:creator>
      <dc:date>2020-03-21T16:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Formula inside a variable (inside a field)</title>
      <link>https://community.qlik.com/t5/App-Development/Formula-inside-a-variable-inside-a-field/m-p/1687388#M52371</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Perfect, that's exactly what I tried to do by myself.&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;François&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 16:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Formula-inside-a-variable-inside-a-field/m-p/1687388#M52371</guid>
      <dc:creator>mrieuse</dc:creator>
      <dc:date>2020-03-24T16:27:52Z</dc:date>
    </item>
  </channel>
</rss>

