<?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 Using field names from variables. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91565#M14859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 formulas:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vNumeratorField = '[' &amp;amp; Only({1} NumeratorNames) &amp;amp; ']'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vDenominatorFiels= '[' &amp;amp; Only({1} DenominatorNames) &amp;amp; ']'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need them, to find out which fields, I have to use in order to calculate the defined ratio. The typical output is following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;KPI_Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Numerator Field Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Denominator Field Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Min&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 5&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Ratio1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;=$(vNumeratorField)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;=$(vDenominatorField)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find out the minimum and the maximum values doing the following for minimum: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Min($(=$(vNumeratorField))/$(=$(vDenominatorField)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And the same logic for maximum, but I always get '-'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do the minimum without variables and it works perfectly: &lt;STRONG&gt;Min([FIELD1]/[FIELD2]).&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone advice, what should be done in other way? The issue is that I need to always ignore selections on &lt;STRONG&gt;NumeratorNames&lt;/STRONG&gt; and &lt;STRONG&gt;DenominatorNames&lt;/STRONG&gt; fields. That's why I am using variables and &lt;STRONG&gt;Only()&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2018 13:42:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-16T13:42:11Z</dc:date>
    <item>
      <title>Using field names from variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91565#M14859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 formulas:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vNumeratorField = '[' &amp;amp; Only({1} NumeratorNames) &amp;amp; ']'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vDenominatorFiels= '[' &amp;amp; Only({1} DenominatorNames) &amp;amp; ']'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need them, to find out which fields, I have to use in order to calculate the defined ratio. The typical output is following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;KPI_Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Numerator Field Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Denominator Field Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Min&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 5&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Ratio1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;=$(vNumeratorField)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;=$(vDenominatorField)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find out the minimum and the maximum values doing the following for minimum: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Min($(=$(vNumeratorField))/$(=$(vDenominatorField)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And the same logic for maximum, but I always get '-'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do the minimum without variables and it works perfectly: &lt;STRONG&gt;Min([FIELD1]/[FIELD2]).&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone advice, what should be done in other way? The issue is that I need to always ignore selections on &lt;STRONG&gt;NumeratorNames&lt;/STRONG&gt; and &lt;STRONG&gt;DenominatorNames&lt;/STRONG&gt; fields. That's why I am using variables and &lt;STRONG&gt;Only()&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91565#M14859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-16T13:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using field names from variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91566#M14860</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;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Min( {&amp;lt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NumeratorNames&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DenominatorNames&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;} [FIELD1]/[FIELD2])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91566#M14860</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-16T13:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using field names from variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91567#M14861</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;you surely have a nested agregation (because of only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with :&lt;/P&gt;&lt;P&gt;min (aggr($(vNumeratorField)/&lt;STRONG&gt;$(vDenominatorField), your dimension))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;regards&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91567#M14861</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-07-16T13:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using field names from variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91568#M14862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion, but it doesn't do the trick ( &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91568#M14862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-16T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using field names from variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91569#M14863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that gives what ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to select all&lt;/P&gt;&lt;P&gt;min({1}aggr( .......)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91569#M14863</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-07-16T14:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using field names from variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91570#M14864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output is always '-' and same applies to min({1} aggr(....)). When I try to use: &lt;/P&gt;&lt;P&gt;=Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vNumeratorField)/&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vDenominatorField),KPI_Name),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;then I see the names for the right fields, but the division '/' sign gets dissapeared and the selection is, obviously, not ignored. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91570#M14864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-16T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using field names from variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91571#M14865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr does not pally to kpi_name but :&lt;/P&gt;&lt;P&gt;min (aggr(only({1} NumeratorField,NumeratorField)) / ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it becomes complicated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why not :&lt;/P&gt;&lt;P&gt;min({1} NumeratorField/NumeratorField))&lt;/P&gt;&lt;P&gt;without using only ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 15:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-field-names-from-variables/m-p/91571#M14865</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-07-16T15:11:04Z</dc:date>
    </item>
  </channel>
</rss>

