<?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: Reference array of Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14867#M786887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 02:19:41 GMT</pubDate>
    <dc:creator>ziadm</dc:creator>
    <dc:date>2018-02-27T02:19:41Z</dc:date>
    <item>
      <title>Reference array of Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14862#M786882</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;I have an array of variables and I have the index of the variable in a Field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Array of variables&lt;/P&gt;&lt;P&gt;vRate1 = .4&lt;/P&gt;&lt;P&gt;vRate2=.5&lt;/P&gt;&lt;P&gt;vRate3=.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the Value as Field and Seq (The Array index in the same Table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to reference the following expression in my calculation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fees = Value * $(vRate$(Min(Seq)) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work ..&lt;/P&gt;&lt;P&gt;IF statement will work fine but my array is going up to 70 indexes and it shorter to reference the index of the &lt;/P&gt;&lt;P&gt;variable ... &lt;/P&gt;&lt;P&gt;if(Seq = 1, Value * &lt;SPAN style="font-size: 13.3333px;"&gt;vRate1,if(&lt;SPAN style="font-size: 13.3333px;"&gt;Seq = 2, Value * &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vRate2&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/218859" target="_blank"&gt;loveisfail&lt;/A&gt;@ &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14862#M786882</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reference array of Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14863#M786883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this -&lt;/P&gt;&lt;P&gt;=Value * $(vRate$(=Min(Seq)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 18:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14863#M786883</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-26T18:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reference array of Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14864#M786884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Singh&lt;/P&gt;&lt;P&gt;Could you please check the attached Min(Seq) takes the entire sets in the chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 19:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14864#M786884</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2018-02-26T19:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reference array of Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14865#M786885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have license to view qvw, can you share expression/image or whatever changes you made?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14865#M786885</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-26T20:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reference array of Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14866#M786886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a chart with &lt;/P&gt;&lt;P&gt;Dimension = Seq &lt;/P&gt;&lt;P&gt;expressions :&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;=Value * $(vRate$(=Min(Seq)))&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rate :&lt;/P&gt;&lt;P&gt; = $(vRate$(=Min(Seq)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the rate values is always Min of the etire data set &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14866#M786886</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2018-02-26T20:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reference array of Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14867#M786887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 02:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14867#M786887</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2018-02-27T02:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reference array of Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14868#M786888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not possible in this way because you would need a $-sign expansion for it and those won't calculated on a row-level else global before your object is calculated and then applied to each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This meant you will need a conditional-statement to fetch your variables whereby a pick(match()) would be better than a nested if-loop. I mean something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(Seq, 1,2,3,...), $(vRate1), $(vRate2), $(vRate3), ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and such expression could be also outsourced in an expression-variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 08:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-array-of-Variables/m-p/14868#M786888</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-02-27T08:42:27Z</dc:date>
    </item>
  </channel>
</rss>

