<?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: Explain Colormix1, ARGB in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Explain-Colormix1-ARGB/m-p/773802#M1028956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;based on whatever values expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;OperationDuration / max({1&amp;lt;%LogFileKey = {@(=only(%LogFileKey))}&amp;gt;} TOTAL OperationDuration)&lt;/SPAN&gt; will return, colormix will automatically assign a range of colors to that value. Colors are determined by the colormix function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor275"&gt;&lt;/A&gt;&lt;A name="Colormix1("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;Colormix1(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;Value , ColorZero , ColorOne&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;This function returns an RGB color representation from a two color gradient, based on a &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; between 0 and 1. &lt;/P&gt;&lt;P&gt;If &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; = 0 the first color is returned. &lt;/P&gt;&lt;P&gt;If &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; = 1 the second color is returned. &lt;/P&gt;&lt;P&gt;If 0 &amp;lt; &lt;SPAN class="Italic"&gt;value &lt;/SPAN&gt;&amp;lt; 1 the appropriate intermediate shading is returned. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Value&lt;/SPAN&gt; is a real number between 0 and 1. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ColorZero&lt;/SPAN&gt; is a valid RGB color representation for the color to be associated with the low end of the interval. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ColorOne&lt;/SPAN&gt; is a valid RGB color representation for the color to be associated with the high end of the interval. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;colormix1(x, black( ) , red( ) )&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;ARGB is actually RGB with an extra parameter for alpha channel :&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="ARGB"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;ARGB(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;alpha, e1, e2, e3&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;This function returns the color representation of a color defined by the red component &lt;SPAN class="Italic"&gt;e1&lt;/SPAN&gt;, the green component &lt;SPAN class="Italic"&gt;e2&lt;/SPAN&gt; and the blue component &lt;SPAN class="Italic"&gt;e3&lt;/SPAN&gt; with an alpha factor (opacity) of alpha. All four parameters must be expressions evaluating to integers in the range between 0 and 255. The color representation is a dual value where the text representation comes in the form of 'RGB(a,r, g, b)' where a, r, g and b are numbers between 0 and 255 representing the alpha, red, green and blue color value respectively. The number representation is an integer representing the alpha, red, green and blue components as defined in Visual Basic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info on alpha channel can be found over the internet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this expression basically does is color coding the values that the expression is returning, using the range of colors mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 15:49:25 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2015-02-23T15:49:25Z</dc:date>
    <item>
      <title>Explain Colormix1, ARGB</title>
      <link>https://community.qlik.com/t5/QlikView/Explain-Colormix1-ARGB/m-p/773801#M1028955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Forum,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm trying to understand the below 2 variables &lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #808080;"&gt;vDurationTextColor&lt;/EM&gt;&amp;nbsp; and &lt;EM style="color: #808080;"&gt;vDurationBackgroundColor&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt; .&lt;/SPAN&gt;&lt;/SPAN&gt;Can anyone explains the below logic with examples....Explain Colormix1, ARGB?&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;DIV&gt;&lt;P&gt;// Text color&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vDurationTextColor&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; 'if(OperationDuration &amp;gt;0&lt;BR /&gt; ,ColorMix1(OperationDuration / max({1&amp;lt;%LogFileKey = {@(=only(%LogFileKey))}&amp;gt;} TOTAL OperationDuration)&lt;BR /&gt; ,ARGB(255, 0, 0, 0), ARGB(255, 255, 255, 255)&lt;BR /&gt; )&lt;BR /&gt; )'&lt;BR /&gt; ,'@', '$'&lt;BR /&gt; )&lt;BR /&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Background color&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vDurationBackgroundColor&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; 'if(OperationDuration &amp;gt;0 &lt;BR /&gt; ,ColorMix1(OperationDuration / max({1&amp;lt;%LogFileKey = {@(=only(%LogFileKey))}&amp;gt;} TOTAL OperationDuration)&lt;BR /&gt; ,ARGB(255, 255, 225, 225), ARGB(255, 128, 0, 0)&lt;BR /&gt; )&lt;BR /&gt; )'&lt;BR /&gt; ,'@', '$'&lt;BR /&gt; )&lt;BR /&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Thanks,&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Janani&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 15:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Explain-Colormix1-ARGB/m-p/773801#M1028955</guid>
      <dc:creator>jansen28</dc:creator>
      <dc:date>2015-02-23T15:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Explain Colormix1, ARGB</title>
      <link>https://community.qlik.com/t5/QlikView/Explain-Colormix1-ARGB/m-p/773802#M1028956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;based on whatever values expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;OperationDuration / max({1&amp;lt;%LogFileKey = {@(=only(%LogFileKey))}&amp;gt;} TOTAL OperationDuration)&lt;/SPAN&gt; will return, colormix will automatically assign a range of colors to that value. Colors are determined by the colormix function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor275"&gt;&lt;/A&gt;&lt;A name="Colormix1("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;Colormix1(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;Value , ColorZero , ColorOne&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;This function returns an RGB color representation from a two color gradient, based on a &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; between 0 and 1. &lt;/P&gt;&lt;P&gt;If &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; = 0 the first color is returned. &lt;/P&gt;&lt;P&gt;If &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; = 1 the second color is returned. &lt;/P&gt;&lt;P&gt;If 0 &amp;lt; &lt;SPAN class="Italic"&gt;value &lt;/SPAN&gt;&amp;lt; 1 the appropriate intermediate shading is returned. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Value&lt;/SPAN&gt; is a real number between 0 and 1. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ColorZero&lt;/SPAN&gt; is a valid RGB color representation for the color to be associated with the low end of the interval. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ColorOne&lt;/SPAN&gt; is a valid RGB color representation for the color to be associated with the high end of the interval. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;colormix1(x, black( ) , red( ) )&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;ARGB is actually RGB with an extra parameter for alpha channel :&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="ARGB"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;ARGB(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;alpha, e1, e2, e3&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;This function returns the color representation of a color defined by the red component &lt;SPAN class="Italic"&gt;e1&lt;/SPAN&gt;, the green component &lt;SPAN class="Italic"&gt;e2&lt;/SPAN&gt; and the blue component &lt;SPAN class="Italic"&gt;e3&lt;/SPAN&gt; with an alpha factor (opacity) of alpha. All four parameters must be expressions evaluating to integers in the range between 0 and 255. The color representation is a dual value where the text representation comes in the form of 'RGB(a,r, g, b)' where a, r, g and b are numbers between 0 and 255 representing the alpha, red, green and blue color value respectively. The number representation is an integer representing the alpha, red, green and blue components as defined in Visual Basic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info on alpha channel can be found over the internet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this expression basically does is color coding the values that the expression is returning, using the range of colors mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 15:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Explain-Colormix1-ARGB/m-p/773802#M1028956</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-02-23T15:49:25Z</dc:date>
    </item>
  </channel>
</rss>

