<?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: Managing dynamically expressions regarding the dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Managing-dynamically-expressions-regarding-the-dimension/m-p/1910332#M75000</link>
    <description>&lt;P&gt;Load in Excel&amp;nbsp; &amp;nbsp;as two column&amp;nbsp; KPI Name and expression.&lt;/P&gt;
&lt;P&gt;Load Using Loop like below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Var:&lt;/P&gt;
&lt;P&gt;LOAD KPI&amp;nbsp; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exp&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;filename.xlsx&lt;/P&gt;
&lt;P&gt;Let vNoOfVar = FieldValueCount ('KPI') ;&lt;BR /&gt;For i = 0 to $(vNoOfVar )-1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Let vKPI = Peek('KPI',$(i),'Var');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Let $(vKPI ) = Peek('Exp',$(i),'Var');&lt;/P&gt;
&lt;P&gt;Next i&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drop Table Var;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 06:48:07 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2022-03-28T06:48:07Z</dc:date>
    <item>
      <title>Managing dynamically expressions regarding the dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Managing-dynamically-expressions-regarding-the-dimension/m-p/1909902#M74986</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;On a pivot table (on Sense), I have a list of kpi's names (in a island table) , for each one I need to calculate yearly value (col1), average (col2) etc...&lt;/P&gt;
&lt;P&gt;So, on each expression, I have a collection of "if" like :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if( kpi=aa, [master item1], if kpi=bb, [master item2] and so on&lt;/P&gt;
&lt;P&gt;You can easily guess that the performance isn't great. Is there any way to avoid this kind of expression ? ( I tried expression stored in a field of the kpi table, variables with the same name of kpi etc... )&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best would be an expression like&amp;nbsp; [ master item 'name of dim1' ] or =$(=var_ name of dim1)&lt;/P&gt;
&lt;P&gt;The table is exactly how users want to see it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 14:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Managing-dynamically-expressions-regarding-the-dimension/m-p/1909902#M74986</guid>
      <dc:creator>ramon1</dc:creator>
      <dc:date>2022-03-25T14:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Managing dynamically expressions regarding the dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Managing-dynamically-expressions-regarding-the-dimension/m-p/1910332#M75000</link>
      <description>&lt;P&gt;Load in Excel&amp;nbsp; &amp;nbsp;as two column&amp;nbsp; KPI Name and expression.&lt;/P&gt;
&lt;P&gt;Load Using Loop like below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Var:&lt;/P&gt;
&lt;P&gt;LOAD KPI&amp;nbsp; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exp&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;filename.xlsx&lt;/P&gt;
&lt;P&gt;Let vNoOfVar = FieldValueCount ('KPI') ;&lt;BR /&gt;For i = 0 to $(vNoOfVar )-1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Let vKPI = Peek('KPI',$(i),'Var');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Let $(vKPI ) = Peek('Exp',$(i),'Var');&lt;/P&gt;
&lt;P&gt;Next i&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drop Table Var;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 06:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Managing-dynamically-expressions-regarding-the-dimension/m-p/1910332#M75000</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2022-03-28T06:48:07Z</dc:date>
    </item>
  </channel>
</rss>

