<?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 How to create a dynamic fieldname in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349868#M1171145</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 use a dynamic fieldname in an expression, but I need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my project I have several fieldnames like:&lt;/P&gt;&lt;P&gt;Ind_AA_Time&lt;/P&gt;&lt;P&gt;Ind_BB_Time&lt;/P&gt;&lt;P&gt;Ind_CC_Time&lt;/P&gt;&lt;P&gt;Ind_DD_Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'AA', 'BB', 'CC' en 'DD' are types of indicators and are stored in a table named 'Indication'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to build the fieldnames dynamicly so I can use them in an expression in a pivot table. So the value of the fieldname is depending on the type of indicator. The indicator is a dimension of the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is now like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Ind_'&amp;amp;Indication&amp;amp;'_Time'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows the correct fieldname into the column, but not the value of that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18320" alt="test.png" class="jive-image" height="116" src="https://community.qlik.com/legacyfs/online/18320_test.png" style="width: 106.53061224489795px; height: 116px;" width="106" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I build this expression, that it will return the value of the fieldname into the column? I'm sure it will be something silly, but I can't see a solution at this moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advantage!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2012 11:46:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-13T11:46:55Z</dc:date>
    <item>
      <title>How to create a dynamic fieldname in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349868#M1171145</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 use a dynamic fieldname in an expression, but I need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my project I have several fieldnames like:&lt;/P&gt;&lt;P&gt;Ind_AA_Time&lt;/P&gt;&lt;P&gt;Ind_BB_Time&lt;/P&gt;&lt;P&gt;Ind_CC_Time&lt;/P&gt;&lt;P&gt;Ind_DD_Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'AA', 'BB', 'CC' en 'DD' are types of indicators and are stored in a table named 'Indication'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to build the fieldnames dynamicly so I can use them in an expression in a pivot table. So the value of the fieldname is depending on the type of indicator. The indicator is a dimension of the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is now like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Ind_'&amp;amp;Indication&amp;amp;'_Time'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows the correct fieldname into the column, but not the value of that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18320" alt="test.png" class="jive-image" height="116" src="https://community.qlik.com/legacyfs/online/18320_test.png" style="width: 106.53061224489795px; height: 116px;" width="106" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I build this expression, that it will return the value of the fieldname into the column? I'm sure it will be something silly, but I can't see a solution at this moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advantage!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 11:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349868#M1171145</guid>
      <dc:creator />
      <dc:date>2012-07-13T11:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic fieldname in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349869#M1171146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use some dollar-sign expansion to evaluate your input.&amp;nbsp; Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(=('Ind_'&amp;amp;Indication&amp;amp;'_Time')) as the dimension (I may not have the syntax exactly right...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 12:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349869#M1171146</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-07-13T12:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic fieldname in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349870#M1171147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really, the Indication-part disappears in the string.&lt;/P&gt;&lt;P&gt;I tried everything with the $-sign, but nothing works properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it easier, I made a litte test-version and added it in my first post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 12:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349870#M1171147</guid>
      <dc:creator />
      <dc:date>2012-07-13T12:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic fieldname in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349871#M1171148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By linking incident name you can get the incident value&lt;/P&gt;&lt;P&gt;Indicator:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt; Indication_name&lt;/STRONG&gt;, Value_Ind&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ind_AA_Time, 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ind_BB_Time, 22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ind_CC_Time, 33&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ind_DD_Time, 44&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Indication, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;'Ind_'&amp;amp;Indication&amp;amp;'_Time' AS Indication_name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;test_dynamic_fieldname.qvw.xlsx&lt;/P&gt;&lt;P&gt;//[..\Desktop\Qlikview Project\test\test tussentotaal herbruiken.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Blad1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the attachment and let me know is this your requirement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 12:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349871#M1171148</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-07-13T12:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dynamic fieldname in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349872#M1171149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not exactly, I want to use this into a larger expression/formula. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Num#(Year)&amp;lt;varLY_BIO,1,(1+IF((varLY_BIO+IND_AA_TIME-Num#(Year))&amp;gt;0,(IND_AA_TIME/100/IND_AA_EXP)*(1+(Num#(Year)-varLY_BIO)),(IND_AA_EXP/100))));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I didn't made a correct test-version. The version I uploaded now (test_dynamic_fieldname_2), is the correct version. &lt;/P&gt;&lt;P&gt;You will see 4 listboxes where the user can select a value and I want that value into an expression in the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need more explanation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 13:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-dynamic-fieldname-in-an-expression/m-p/349872#M1171149</guid>
      <dc:creator />
      <dc:date>2012-07-13T13:24:15Z</dc:date>
    </item>
  </channel>
</rss>

