<?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: Variable Text in Fieldname in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117228#M19222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Awesome. I am glad you were able to make this to work. Always a great feeling.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Best,&lt;/P&gt;&lt;P class=""&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 23:40:12 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-09-01T23:40:12Z</dc:date>
    <item>
      <title>Variable Text in Fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117221#M19215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to insert variable text directly into a fieldname within an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fieldname Examples:&lt;/P&gt;&lt;P&gt;[KPI AltAvg Parameter]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[KPI AltMax Parameter]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[KPI Avg Parameter]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[KPI Max Parameter]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have created an inline table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load *INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AltAvg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AltMax&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max ];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I've also created a variable called $vParameter that a user can select/set via a selection box.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What I'd like to do is create a measure that looks something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;sum('KPI ' &amp;amp; '$(vParameter)' &amp;amp; ' Parameter')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Does this have any chance of working?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Thanks in advance!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 00:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117221#M19215</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-08-31T00:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Text in Fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117222#M19216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Sum($(='[KPI ' &amp;amp; vParameter &amp;amp; ' Parameter]'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Sum(&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;$(=&lt;/SPAN&gt;'&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;[&lt;/SPAN&gt;KPI ' &amp;amp; &lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;Parameter&lt;/SPAN&gt; &amp;amp; ' Parameter&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;]&lt;/SPAN&gt;'&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117222#M19216</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-31T09:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Text in Fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117223#M19217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'[KPI ' &amp;amp; $(vParameter1)&amp;amp; ' ' &amp;amp; 'Parameter]'&lt;/P&gt;&lt;P&gt;in a KPI box does indeed create the correct fieldname&amp;nbsp; = [KPI AltAvg Parameter]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER, if I wrap that statement in sum() it breaks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried creating a Let vParamString = &lt;SPAN style="font-size: 13.3333px;"&gt;'[KPI ' &amp;amp; $(vParameter1)&amp;amp; ' ' &amp;amp; 'Parameter]' in the loadscript and also in the variable editor (independently).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Unfortunately, the resulting variables don't populate the values and the result of it is the string entered, not the intended variable-created name.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also learned that in creating a select box with the Fieldname in it - when I create the associated variable, I simply enter the fieldname in the description.&amp;nbsp; If I attempt to use GetFieldSelections(Fieldname) it fails (with or without preceding =).&amp;nbsp; Leaving just the fieldname does populate the variable accordingly when it is selected, however I'm still unable to get it to work properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've scoured the net and apparently no one else wants to do this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Other ideas??&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117223#M19217</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-09-01T18:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Text in Fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117224#M19218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommended you using the field instead of a variable, did you try this the field Parameter,instead of vParameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px;"&gt;Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; color: #ff0000;"&gt;$(=&lt;/SPAN&gt;'&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; color: #ff0000;"&gt;[&lt;/SPAN&gt;KPI ' &amp;amp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; color: #ff0000;"&gt;Parameter&lt;/SPAN&gt; &amp;amp; ' Parameter&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; color: #ff0000;"&gt;]&lt;/SPAN&gt;'&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; color: #ff0000;"&gt;)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117224#M19218</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-01T18:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Text in Fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117225#M19219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, using that concept, I was able to construct the string, as well as create a variable that returns the correct result!!&amp;nbsp; Almost there.&lt;/P&gt;&lt;P&gt;Now I have:&lt;/P&gt;&lt;P&gt;$vParam = '[KPI' &amp;amp; Parameter &amp;amp; ' ' &amp;amp; 'Parameter]'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in a KPI box, I can show $(vParam) and it will display&lt;/P&gt;&lt;P&gt;[KPI AltMax Parameter]&lt;/P&gt;&lt;P&gt;Perfect, right!?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I got greedy and wrapped a sum() around it.&amp;nbsp; it said 'no'.&lt;/P&gt;&lt;P&gt;I tried:&amp;nbsp; sum($(=vParam)) as well.&lt;/P&gt;&lt;P&gt;Since the result of this variable I wanted to be taken to be literal, I'm assuming I'm missing some syntax here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 22:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117225#M19219</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-09-01T22:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Text in Fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117226#M19220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;How about may be this&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;Sum($(=$(vParam)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;Sum($(=$(=vParam)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 22:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117226#M19220</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-01T22:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Text in Fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117227#M19221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK you.&amp;nbsp; They both actually produced the same, correct result.&lt;/P&gt;&lt;P&gt;I went with the first.&amp;nbsp; That was a stumper - thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 22:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117227#M19221</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-09-01T22:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Text in Fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117228#M19222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Awesome. I am glad you were able to make this to work. Always a great feeling.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Best,&lt;/P&gt;&lt;P class=""&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 23:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/1117228#M19222</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-01T23:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Text in Fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/2114475#M90978</link>
      <description>&lt;P&gt;so you have to have a variable to place the string in before doing the sum is that correctly understood or can you actually get the sum without first passing the string to the variable?&amp;nbsp;&lt;BR /&gt;I have similar issue and unable to extract the actual field value even when getting the string to look excactly like the field name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 11:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Text-in-Fieldname/m-p/2114475#M90978</guid>
      <dc:creator>ShippingNews</dc:creator>
      <dc:date>2023-09-07T11:26:58Z</dc:date>
    </item>
  </channel>
</rss>

