<?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 Change colorvalue in predefined variable using the FieldIndex statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72774#M511560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem getting an expression to be valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined some color-variables which I can use by typing &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $(vGrafFarve4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable contains the color code: ARGB(255,141,170,203)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I want the color value to be dynamic, so instead of typing color 4 in the statement above, I want to call a numeric value, which I get from this statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =FieldIndex('Fakultet', 'Humaniora') --&amp;gt; 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do that`?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =$(vGrafFarve&amp;amp;FieldIndex('Fakultet', 'Humaniora'))&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp; ='$(vGrafFarve'&amp;amp;FieldIndex('Fakultet', 'Humaniora')'&amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But none of it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards &lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2018 10:36:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-08T10:36:29Z</dc:date>
    <item>
      <title>Change colorvalue in predefined variable using the FieldIndex statement</title>
      <link>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72774#M511560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem getting an expression to be valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined some color-variables which I can use by typing &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $(vGrafFarve4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable contains the color code: ARGB(255,141,170,203)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I want the color value to be dynamic, so instead of typing color 4 in the statement above, I want to call a numeric value, which I get from this statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =FieldIndex('Fakultet', 'Humaniora') --&amp;gt; 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do that`?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =$(vGrafFarve&amp;amp;FieldIndex('Fakultet', 'Humaniora'))&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp; ='$(vGrafFarve'&amp;amp;FieldIndex('Fakultet', 'Humaniora')'&amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But none of it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards &lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 10:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72774#M511560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-08T10:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change colorvalue in predefined variable using the FieldIndex statement</title>
      <link>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72775#M511561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try&lt;/P&gt;&lt;P&gt;something like&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;vGrafFarve'&amp;amp;FieldIndex('Fakultet', 'Humaniora'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 10:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72775#M511561</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2018-02-08T10:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change colorvalue in predefined variable using the FieldIndex statement</title>
      <link>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72776#M511562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer!&lt;/P&gt;&lt;P&gt;This gives me almost what I want.&lt;/P&gt;&lt;P&gt;It gives me an argb color code, but not the right one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the color code argb(600,128,64,0), but I need it to be argb(255,128,64,0) which the predefined variable $(vGrafFarve4) contains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I double checked that the statement =FieldIndex('Fakultet','Humaniora') gives me the number 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why I don't get the right color code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 11:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72776#M511562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-08T11:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change colorvalue in predefined variable using the FieldIndex statement</title>
      <link>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72777#M511563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;try to put this expression in text box&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;='&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;vGrafFarve'&amp;amp;FieldIndex('Fakultet', 'Humaniora')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;what is the result&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 11:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72777#M511563</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2018-02-08T11:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change colorvalue in predefined variable using the FieldIndex statement</title>
      <link>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72778#M511564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;This gives me the text vGrafFarve4&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 11:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72778#M511564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-08T11:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change colorvalue in predefined variable using the FieldIndex statement</title>
      <link>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72779#M511565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i have no idea , i tried it in my side and it seems to work well&lt;/P&gt;&lt;P&gt;can you share a sample app with the issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 12:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-colorvalue-in-predefined-variable-using-the-FieldIndex/m-p/72779#M511565</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2018-02-08T12:06:25Z</dc:date>
    </item>
  </channel>
</rss>

