<?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 min($(variable)) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/min-variable/m-p/1174416#M906743</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 4 pricing columns associated to a material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to define a field name in a variable, and then use the variable in formulas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;vPrice = 1&lt;/P&gt;&lt;P&gt;vSalesPrice = 'SalePrice' &amp;amp; $(vPrice)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in reports,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum($(vSalesPrice))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which would then return one of the 4 pricing columns, depending on the vPrice variable value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently have 4 separate expressions, using a conditional show based off vPrice, but was hoping to combine to just the one expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>min($(variable))</title>
      <link>https://community.qlik.com/t5/QlikView/min-variable/m-p/1174416#M906743</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 4 pricing columns associated to a material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to define a field name in a variable, and then use the variable in formulas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;vPrice = 1&lt;/P&gt;&lt;P&gt;vSalesPrice = 'SalePrice' &amp;amp; $(vPrice)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in reports,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum($(vSalesPrice))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which would then return one of the 4 pricing columns, depending on the vPrice variable value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently have 4 separate expressions, using a conditional show based off vPrice, but was hoping to combine to just the one expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&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/min-variable/m-p/1174416#M906743</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: min($(variable))</title>
      <link>https://community.qlik.com/t5/QlikView/min-variable/m-p/1174417#M906744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum($(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'SalePrice' &amp;amp; $(vPrice)&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-variable/m-p/1174417#M906744</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-22T14:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: min($(variable))</title>
      <link>https://community.qlik.com/t5/QlikView/min-variable/m-p/1174418#M906745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;many thanks Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-variable/m-p/1174418#M906745</guid>
      <dc:creator />
      <dc:date>2016-06-22T14:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: min($(variable))</title>
      <link>https://community.qlik.com/t5/QlikView/min-variable/m-p/1174419#M906746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi richard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a go with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum([$(='SalesPrice' &amp;amp; '$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vPrice&lt;/SPAN&gt;)')])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the square brackets are not necessary her but would be if you used this with a field name that has a space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-variable/m-p/1174419#M906746</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-06-22T14:11:43Z</dc:date>
    </item>
  </channel>
</rss>

