<?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: Using colormix2 function with defined values for switching the color in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2053746#M86589</link>
    <description>&lt;P&gt;Resolved this in this way in the end &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; if([target measure]&amp;lt; 0.15, ColorMix1(rank(total Column(23))/NoOfRows(total),yellow(), red()), &lt;BR /&gt;if([target measure] &amp;gt;= 0.15 AND [target measure] &amp;lt; 0.3,&lt;BR /&gt;ColorMix1(rank(total Column(23))/NoOfRows(total),green(), yellow()),green())).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 17:42:34 GMT</pubDate>
    <dc:creator>Polina</dc:creator>
    <dc:date>2023-03-27T17:42:34Z</dc:date>
    <item>
      <title>Using colormix2 function with defined values for switching the color</title>
      <link>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2051140#M86403</link>
      <description>&lt;P&gt;Hi experts!&amp;nbsp;&lt;BR /&gt;I am working on a straight table with multiple dimensions and metrics. One of the metrics is ROAS which is basically revenue/cost presented in %. For a quick overview my managers want me to apply a color gradient with the following settings: &amp;lt;15% - red (the lower the percentage, the redder the cell), 15%-50% - yellow (the higher the percentage the closer to green we get), &amp;gt; 50% - green (the closer to 100% the darker the green.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using the colormix2 function&amp;nbsp;colormix2(rank(total Column(20))/NoOfRows(total),RGB(0, 255, 0), RGB(255, 0, 0), RGB(255, 255, 0)), but got confused about where the numbers defining the gradient need to be set.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could anybody advise me on this question?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 14:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2051140#M86403</guid>
      <dc:creator>Polina</dc:creator>
      <dc:date>2023-03-20T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using colormix2 function with defined values for switching the color</title>
      <link>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2051155#M86404</link>
      <description>&lt;P&gt;The first parameter of the ColorMix2() function is what sets the position on the gradient. The following two define the gradient's endpoints. A third would set the color for the midpoint (gradient position = 0).&lt;/P&gt;
&lt;P&gt;You might want to have a look at sample apps such as this one:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Color-Themes-with-ColorMix-qvf/ta-p/1486684" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Member-Articles/Color-Themes-with-ColorMix-qvf/ta-p/1486684&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Note that in your case you would presumably need to use multiple ColorMix functions with an if() statement determining which of them to use. You might also want to use endpoints that are not 255-based to smooth out the transitions. &lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 14:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2051155#M86404</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-03-20T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using colormix2 function with defined values for switching the color</title>
      <link>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2051174#M86405</link>
      <description>&lt;P&gt;Thank you for the quick response! I saw multiple examples of using colormix and colormix2 functions but all of them were centred around using the gradient from the largest to the lowest value in e.g. row or column, hence the usage of&amp;nbsp;&lt;SPAN&gt;rank(total Column(20))/NoOfRows(total). But for now it seems that to set the values myself (that for e.g. yellow the switch happened at 15%) I need to use multiple if and colormix statements &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; instead of one.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 14:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2051174#M86405</guid>
      <dc:creator>Polina</dc:creator>
      <dc:date>2023-03-20T14:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using colormix2 function with defined values for switching the color</title>
      <link>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2051175#M86406</link>
      <description>&lt;P&gt;That is correct - the function is intended to create a single gradient, not multiple unrelated gradients. Nothing that can't be solved with a few if() statements, though.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 14:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2051175#M86406</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-03-20T14:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using colormix2 function with defined values for switching the color</title>
      <link>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2053746#M86589</link>
      <description>&lt;P&gt;Resolved this in this way in the end &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; if([target measure]&amp;lt; 0.15, ColorMix1(rank(total Column(23))/NoOfRows(total),yellow(), red()), &lt;BR /&gt;if([target measure] &amp;gt;= 0.15 AND [target measure] &amp;lt; 0.3,&lt;BR /&gt;ColorMix1(rank(total Column(23))/NoOfRows(total),green(), yellow()),green())).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 17:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-colormix2-function-with-defined-values-for-switching-the/m-p/2053746#M86589</guid>
      <dc:creator>Polina</dc:creator>
      <dc:date>2023-03-27T17:42:34Z</dc:date>
    </item>
  </channel>
</rss>

