<?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: Parametric variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757661#M269665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I didnot get it work with a field&lt;/P&gt;&lt;P&gt;I suppose that the Problem that the Expression is calculated only once&lt;/P&gt;&lt;P&gt;using an Aggregation function or select a value makes it work&lt;/P&gt;&lt;P&gt;also using If Statement (IF ClassComp='A' etc. makes it work&lt;/P&gt;&lt;P&gt;But with fields which can contain more than 1 value , I didnot get it work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 14:39:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-06T14:39:13Z</dc:date>
    <item>
      <title>Parametric variable</title>
      <link>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757656#M269660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to set the background color of a cell by means of a parametric variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My variables are:&lt;/P&gt;&lt;P&gt;ClasseA = RGB (128,255,128)&lt;/P&gt;&lt;P&gt;ClasseB = RGB(255,255,128)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field ClassComp can have the values of A and B and I'd like to set its background color using the variable ClasseA (when the ClasseComp value is 'A') and the variable ClasseB when the ClasseComp value is 'B'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I set the background value using the variables ClasseA and ClasseB parametrically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried with =$(Classe &amp;amp; ClasseComp) but it doesn't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously in this example I used only A and B, but my classes are from A to Z, so I dont't like to use 26 nested if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757656#M269660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-06T13:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Parametric variable</title>
      <link>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757657#M269661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;perhaps an inline load in the script would help you?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;For example:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;A:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Class, Red, Green, Blue&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;A, 128, 255, 128&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;B, 255, 255, 128&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;C, 120, 120, 120&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Then, you can set the colour:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;RGB(Red, Green, Blue)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757657#M269661</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-03-06T13:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parametric variable</title>
      <link>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757658#M269662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I defined vClass = 'Class'&lt;/P&gt;&lt;P&gt;and vClassA = rgb(128,255,128)&lt;/P&gt;&lt;P&gt;and vClassB = rgb(255,255,128)&lt;/P&gt;&lt;P&gt;and vComp = A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I can use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=$(vClass)&amp;amp;vComp) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in the Background of Expression and it gets me the Color&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of variable vComp it should be your field with values A to Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757658#M269662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-06T13:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parametric variable</title>
      <link>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757659#M269663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well...I'm in trouble with the syntax by using the fields:&lt;/P&gt;&lt;P&gt;=$(=$(vClasse)&amp;amp;ClasseComp) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns only the value 'Classe' (the value of the variable vClasse) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind to post the right syntax? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757659#M269663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-06T13:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parametric variable</title>
      <link>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757660#M269664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it work if you put a listbox with field ClasseComp on the sheet, and select a single value in the listbox?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 14:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757660#M269664</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-06T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parametric variable</title>
      <link>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757661#M269665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I didnot get it work with a field&lt;/P&gt;&lt;P&gt;I suppose that the Problem that the Expression is calculated only once&lt;/P&gt;&lt;P&gt;using an Aggregation function or select a value makes it work&lt;/P&gt;&lt;P&gt;also using If Statement (IF ClassComp='A' etc. makes it work&lt;/P&gt;&lt;P&gt;But with fields which can contain more than 1 value , I didnot get it work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 14:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757661#M269665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-06T14:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Parametric variable</title>
      <link>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757662#M269666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the solution that Alex presented would fix the problem with dynamic coloring in tables. Just change the colors in his INLINE table, and rename column Class to ClassComp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add an expression =rgb(Red, Blue, Green) to every cell that needs coloring and that belongs to a row with a single ClassComp value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 14:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757662#M269666</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-06T14:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parametric variable</title>
      <link>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757663#M269667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for the solution, and thanks also to everybody for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 15:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parametric-variable/m-p/757663#M269667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-06T15:12:36Z</dc:date>
    </item>
  </channel>
</rss>

