<?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 Coloring measures based on a calculated dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923798#M76038</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a bar chart with a calculated dimension and a measure.&lt;/P&gt;
&lt;P&gt;The calculated dimensions is basically:&lt;/P&gt;
&lt;P&gt;If(Status='Closed' or Status='Rejected', 'Removed', 'Accepted')&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;P&gt;Count(Incident)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to have a custom coloring for the two calculated status and i have tried the 'By Expression' option like the following:&lt;/P&gt;
&lt;P&gt;If(Status='Closed' or Status='Rejected', Red(), Blue() )&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghaliabed_0-1651135092716.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78150i36DEA144F0919E20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghaliabed_0-1651135092716.png" alt="ghaliabed_0-1651135092716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far this is not working and i am just getting blank colors for the measure groupings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghaliabed_2-1651135134076.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78152iC4897AB3BFBC377E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghaliabed_2-1651135134076.png" alt="ghaliabed_2-1651135134076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is being done by end users in self-service mode which is why i do not want to just add these new status values in the data model.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 08:40:24 GMT</pubDate>
    <dc:creator>ghaliabed</dc:creator>
    <dc:date>2022-04-28T08:40:24Z</dc:date>
    <item>
      <title>Coloring measures based on a calculated dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923798#M76038</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a bar chart with a calculated dimension and a measure.&lt;/P&gt;
&lt;P&gt;The calculated dimensions is basically:&lt;/P&gt;
&lt;P&gt;If(Status='Closed' or Status='Rejected', 'Removed', 'Accepted')&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;P&gt;Count(Incident)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to have a custom coloring for the two calculated status and i have tried the 'By Expression' option like the following:&lt;/P&gt;
&lt;P&gt;If(Status='Closed' or Status='Rejected', Red(), Blue() )&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghaliabed_0-1651135092716.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78150i36DEA144F0919E20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghaliabed_0-1651135092716.png" alt="ghaliabed_0-1651135092716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far this is not working and i am just getting blank colors for the measure groupings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghaliabed_2-1651135134076.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78152iC4897AB3BFBC377E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghaliabed_2-1651135134076.png" alt="ghaliabed_2-1651135134076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is being done by end users in self-service mode which is why i do not want to just add these new status values in the data model.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 08:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923798#M76038</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2022-04-28T08:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring measures based on a calculated dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923904#M76047</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a workaround that you can do to resolve this issue, but you will have to use custom themes. Here are the steps that I have followed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I have created the chart as you have but with demo data:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/44c79531-a262-4d0e-8ae2-69c10a955b14.default.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Now if you go to &lt;SPAN style="color:hsl(120, 75%, 60%);"&gt;&lt;STRONG&gt;Appearance &amp;gt; Colors and legend &amp;gt; By dimension&lt;/STRONG&gt;&lt;/SPAN&gt; you will see that there are only 2 color schemes available:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/b680fb94-53d1-4aed-8476-489b0d5d8103.default.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Now follow the instructions here [1] to create a custom theme&lt;/P&gt;
&lt;P&gt;4. More specifically we are interested in the custom color schemes (pallets) [2]. You can find that section under &lt;STRONG&gt;Palettes&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;5. My custom pallets colors part in JSON properties looks like that:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/d65bbc4b-ddfd-4b31-bbe0-b8f4e8fbd021.default.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created just 2 colors (Red and Green)&lt;/P&gt;
&lt;P&gt;6. Load the custom theme in your Qlik Sense App and you will notice that now the color schemes have changed to:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/ac8cfeff-9676-408e-8d52-f617997b883f.default.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;7. After that you can see that applying that color scheme on the chart will give you the output:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/0ed3400e-03b4-408b-b8f2-4e775a21fecb.default.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;8. The only issue is that "Failed" is presented with green and "Success" is presented with red. To resolve this issue you can either change the order of the colors in the custom theme code, or you can go to&lt;STRONG&gt; Edit sheet &amp;gt; Select chart &amp;gt; Sorting&lt;/STRONG&gt; and change the sorting, so that Failed will appear second instead of first in the list, therefore the second color will be applied.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Final output is:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/fa98db0f-52fb-41ea-8ec3-253028f9018c.default.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color:hsl(0, 0%, 60%);"&gt;&lt;I&gt;&lt;STRONG&gt;I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members.&amp;nbsp;&lt;/STRONG&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;[1] &lt;A href="https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Extensions/Content/Sense_Extensions/CustomThemes/custom-themes-getting-started.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Extensions/Content/Sense_Extensions/CustomThemes/custom-themes-getting-started.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;[2] &lt;A href="https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Extensions/Content/Sense_Extensions/CustomThemes/custom-themes-properties.htm#palettes" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Extensions/Content/Sense_Extensions/CustomThemes/custom-themes-properties.htm#palettes&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 11:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923904#M76047</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2022-04-28T11:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring measures based on a calculated dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923925#M76048</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Maybe you can just modify the calculated dimension and select colors for the values&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_0-1651146533123.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78172i9A090AD56A2ECF10/image-size/large?v=v2&amp;amp;px=999" role="button" title="vchuprina_0-1651146533123.png" alt="vchuprina_0-1651146533123.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and then select colors by dimension&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_1-1651146658438.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78173i805E19D0CF327229/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchuprina_1-1651146658438.png" alt="vchuprina_1-1651146658438.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 11:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923925#M76048</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-04-28T11:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring measures based on a calculated dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923949#M76052</link>
      <description>&lt;P&gt;thnx guys for the suggestions.&lt;/P&gt;
&lt;P&gt;But both dont fully work for my case as its meant to be a self-service use case for a business user.&lt;/P&gt;
&lt;P&gt;The custom theme coloring will require a big intervention form dev and if i understood correctly will impact all chart objects.&lt;/P&gt;
&lt;P&gt;For the colors of the calculated dimension that would work if they are stored as master items.&lt;/P&gt;
&lt;P&gt;Sorry if i was not clear in that, this dimension is created by a business user in their community sheet, so moving the logic and coloring to a master item will require a dev intervention, and this dimension does not fit criteria of a master item as we do not want it as an official dimension of the application.&lt;/P&gt;
&lt;P&gt;Current the self-service user just created it and is using it in their own charts and sheets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was looking for a way to do this from a pure self-service standpoint , so from the community sheet level only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 12:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923949#M76052</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2022-04-28T12:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring measures based on a calculated dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923975#M76053</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case your only option is to submit a &lt;SPAN style="color:hsl(240, 75%, 60%);"&gt;&lt;STRONG&gt;feature request&lt;/STRONG&gt;&lt;/SPAN&gt; [1]. I understand that it is not optimal to wait for such feature, but as you can see natively only the above workarounds are available.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;[1] &lt;A href="https://community.qlik.com/t5/Knowledge-Base/How-To-Submit-Feature-Requests-For-Qlik-Products/ta-p/1712581" target="_blank"&gt;https://community.qlik.com/t5/Knowledge-Base/How-To-Submit-Feature-Requests-For-Qlik-Products/ta-p/1712581&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 12:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-measures-based-on-a-calculated-dimensions/m-p/1923975#M76053</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2022-04-28T12:58:31Z</dc:date>
    </item>
  </channel>
</rss>

