<?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: Dynamic metric selection in text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-metric-selection-in-text-box/m-p/497402#M185936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try defining your variable vGDPbased as = '[' &amp;amp; Metrics ']'. And change the expression to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=num(avg({&amp;lt;Country={'Brazil'}&amp;gt;} $(vGDPbased)) ,'#.##%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached qvw for an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jan 2014 08:09:06 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-01-11T08:09:06Z</dc:date>
    <item>
      <title>Dynamic metric selection in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-metric-selection-in-text-box/m-p/497400#M185934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display avg value of selected metric in text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created inline table having 5 metrics as those i have in table(database)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box having those five metrics,i want on selection in list box i should get&amp;nbsp; value in text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inline table:&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;MetricsOptions1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [MetricsNo,Metrics&lt;/P&gt;&lt;P&gt;1,Investment as % of GDP&lt;/P&gt;&lt;P&gt;2,Revenue % of GDP&lt;/P&gt;&lt;P&gt;3,Expenditure % of GDP&lt;/P&gt;&lt;P&gt;4,Net Debt % of GDP&lt;/P&gt;&lt;P&gt;5,CA Deficit % of GDP&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Variable:- vGDPbased=Metrics&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TextBox:-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =num(avg({&amp;lt;Country={'Brazil'}&amp;gt;}vGDPbased),'#.##%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am getting '-' in text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 06:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-metric-selection-in-text-box/m-p/497400#M185934</guid>
      <dc:creator />
      <dc:date>2014-01-11T06:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic metric selection in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-metric-selection-in-text-box/m-p/497401#M185935</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;There are some mistakes.&lt;/P&gt;&lt;P&gt;First, 'Investment as % of GDP' is not an expression to get the Investment as % of GDP.&lt;/P&gt;&lt;P&gt;You have to add another field and write correct expressions for calculating each metrics.&lt;/P&gt;&lt;P&gt;Then use it instead of Metrics field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, to substitute the vGDPbased value, you have to use $-sign expansion: &lt;/P&gt;&lt;P&gt;TextBox:- =num(avg({&amp;lt;Country={'Brazil'}&amp;gt;} $(vGDPbased)),'#.##%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 07:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-metric-selection-in-text-box/m-p/497401#M185935</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-01-11T07:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic metric selection in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-metric-selection-in-text-box/m-p/497402#M185936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try defining your variable vGDPbased as = '[' &amp;amp; Metrics ']'. And change the expression to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=num(avg({&amp;lt;Country={'Brazil'}&amp;gt;} $(vGDPbased)) ,'#.##%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached qvw for an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 08:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-metric-selection-in-text-box/m-p/497402#M185936</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-11T08:09:06Z</dc:date>
    </item>
  </channel>
</rss>

