<?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>article Gradient color palette with the ColorMix2() function in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/Gradient-color-palette-with-the-ColorMix2-function/ta-p/2156677</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi qlik community members, &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Check out this solution to create your own gradient color palette with the ColorMix2() function.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&amp;nbsp;in stages&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Let's see how we can achieve this result, in a simple data model.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1 –&lt;/STRONG&gt; Find the largest and smallest value of your measurement.&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjXxpnblbKDAxV7q5UCHaHADmEQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;max(total aggr(Sum([Total value]),Customer))

min(total aggr(Sum([Total value]),Customer))&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;2 –&lt;/STRONG&gt; Calculate the difference between these values&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjXxpnblbKDAxV7q5UCHaHADmEQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;max(total aggr(Sum([Total value]),Customer))
-
min(total aggr(Sum([Total value]),Customer))&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;3 –&lt;/STRONG&gt; Now we will create a range, where we will identify positions 0 and 1 of the indices, or basically the values ​​from 0% to 100%.&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjXxpnblbKDAxV7q5UCHaHADmEQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;(sum([Total amount])
-
min(total aggr(Sum([Total amount]),Customer)))

/

(max(total aggr(Sum([Total amount]),Customer))
-
min(total aggr(Sum([Total amount]),Customer)))&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;4 –&lt;/STRONG&gt; To apply the gradient, in your graph go to the Presentation window -&amp;gt; Colors and Legend -&amp;gt; Colors Customize by expression. In the check box, leave the option selected as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatheusC_0-1703769149372.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126236i12FAEBFA15C71217/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatheusC_0-1703769149372.png" alt="MatheusC_0-1703769149372.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5 – Finally, in the expression insert your calculation within the ColorMix2() function.&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjXxpnblbKDAxV7q5UCHaHADmEQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;ColorMix2((sum([Total amount])
      -
min(total aggr(Sum([Total amount]),Customer)))

/
(max(total aggr(Sum([Total amount]),Customer))
-
min(total aggr(Sum([Total amount]),Customer))),red(),blue(),yellow())&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;For more details see this and other color functions in the qlik help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFunctions/color-functions-charts.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFunctions/color-functions-charts.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope you like it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Attached is the qvf for anyone who wants to see the example model exposed.&lt;BR /&gt;&lt;BR /&gt;Yours sincerely, Matheus&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2023 13:56:08 GMT</pubDate>
    <dc:creator>MatheusC</dc:creator>
    <dc:date>2023-12-28T13:56:08Z</dc:date>
    <item>
      <title>Gradient color palette with the ColorMix2() function</title>
      <link>https://community.qlik.com/t5/Member-Articles/Gradient-color-palette-with-the-ColorMix2-function/ta-p/2156677</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi qlik community members, &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Check out this solution to create your own gradient color palette with the ColorMix2() function.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&amp;nbsp;in stages&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Let's see how we can achieve this result, in a simple data model.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1 –&lt;/STRONG&gt; Find the largest and smallest value of your measurement.&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjXxpnblbKDAxV7q5UCHaHADmEQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;max(total aggr(Sum([Total value]),Customer))

min(total aggr(Sum([Total value]),Customer))&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;2 –&lt;/STRONG&gt; Calculate the difference between these values&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjXxpnblbKDAxV7q5UCHaHADmEQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;max(total aggr(Sum([Total value]),Customer))
-
min(total aggr(Sum([Total value]),Customer))&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;3 –&lt;/STRONG&gt; Now we will create a range, where we will identify positions 0 and 1 of the indices, or basically the values ​​from 0% to 100%.&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjXxpnblbKDAxV7q5UCHaHADmEQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;(sum([Total amount])
-
min(total aggr(Sum([Total amount]),Customer)))

/

(max(total aggr(Sum([Total amount]),Customer))
-
min(total aggr(Sum([Total amount]),Customer)))&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;4 –&lt;/STRONG&gt; To apply the gradient, in your graph go to the Presentation window -&amp;gt; Colors and Legend -&amp;gt; Colors Customize by expression. In the check box, leave the option selected as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatheusC_0-1703769149372.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126236i12FAEBFA15C71217/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatheusC_0-1703769149372.png" alt="MatheusC_0-1703769149372.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5 – Finally, in the expression insert your calculation within the ColorMix2() function.&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjXxpnblbKDAxV7q5UCHaHADmEQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;ColorMix2((sum([Total amount])
      -
min(total aggr(Sum([Total amount]),Customer)))

/
(max(total aggr(Sum([Total amount]),Customer))
-
min(total aggr(Sum([Total amount]),Customer))),red(),blue(),yellow())&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;For more details see this and other color functions in the qlik help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFunctions/color-functions-charts.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFunctions/color-functions-charts.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope you like it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Attached is the qvf for anyone who wants to see the example model exposed.&lt;BR /&gt;&lt;BR /&gt;Yours sincerely, Matheus&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 13:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Gradient-color-palette-with-the-ColorMix2-function/ta-p/2156677</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2023-12-28T13:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Gradient color palette with the ColorMix2() function</title>
      <link>https://community.qlik.com/t5/Member-Articles/Gradient-color-palette-with-the-ColorMix2-function/tac-p/2156693#M2130</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you&amp;nbsp; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149113"&gt;@MatheusC&lt;/a&gt;&amp;nbsp; for the insightful article! It's been a treasure trove of layout ideas.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 14:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Gradient-color-palette-with-the-ColorMix2-function/tac-p/2156693#M2130</guid>
      <dc:creator>JoãoPolloni</dc:creator>
      <dc:date>2023-12-28T14:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Gradient color palette with the ColorMix2() function</title>
      <link>https://community.qlik.com/t5/Member-Articles/Gradient-color-palette-with-the-ColorMix2-function/tac-p/2159540#M2134</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149113"&gt;@MatheusC&lt;/a&gt;&amp;nbsp; &lt;BR /&gt;Congratulations! on your article&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 11:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Gradient-color-palette-with-the-ColorMix2-function/tac-p/2159540#M2134</guid>
      <dc:creator>HnLima</dc:creator>
      <dc:date>2024-01-09T11:56:12Z</dc:date>
    </item>
  </channel>
</rss>

