<?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: text to number hash in chart expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/text-to-number-hash-in-chart-expression/m-p/1590928#M43390</link>
    <description>&lt;P&gt;Hi Jordy,&lt;/P&gt;&lt;P&gt;Thanks for your response &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/4683"&gt;@JordyWegman&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I've watched&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=5eucibmotOo" target="_blank"&gt;https://www.youtube.com/watch?v=5eucibmotOo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm going to give it a try.&lt;/P&gt;&lt;P&gt;But, I'm not sure if it's going to work in my case, since I have two master dimensions, with 80% of similar values, and I'd like both to use the same colors&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Virilo&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 11:27:48 GMT</pubDate>
    <dc:creator>virilo_tejedor</dc:creator>
    <dc:date>2019-06-12T11:27:48Z</dc:date>
    <item>
      <title>text to number hash in chart expression</title>
      <link>https://community.qlik.com/t5/App-Development/text-to-number-hash-in-chart-expression/m-p/1590891#M43382</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've seen that autonumberhash128 and similar functions are available only in the load script&lt;/P&gt;&lt;P&gt;I've unrelated fields containing similar values, let say "Client Name" ={'Anna', 'John', 'Mary'} and "Seller Name" ={'Anna', 'Mary', 'Paul'}&lt;/P&gt;&lt;P&gt;And I'd like to respresent them, using the same consistent colors throughout the application.&lt;/P&gt;&lt;P&gt;I thought I could have in Load Script:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; set vBGColors_qlik12=#332288,#6699cc,#88ccee,#44aa99,#117733,#999933,#ddcc77,#661100,#cc6677,#aa4466,#882255,#aa4499;
 set vNumColors_qlik12='=SubStringCount(vBGColors_qlik12, '','')+1';&lt;/LI-CODE&gt;&lt;P&gt;And use the next chart expression for the color:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; =Subfield (vBGColors_qlik12, ',', mod(autonumberhash128 (CLIENT_NAME),vNumColors_qlik12))&lt;/LI-CODE&gt;&lt;P&gt;But autonumberhash128 is not available for expressions in charts&lt;/P&gt;&lt;P&gt;How could I get a consistent string to number hash functiont in chart expressions?&lt;BR /&gt;Is there another way to have it working?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I thought about calculating it during the loading script. But I have the feeling that it is not a good idea to combine data with representation; and unnecessarily increase the amount of data loaded in memory:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  ...

 NAME as CLIENT_NAME,
 autonumberhash128(NAME) as CLIENT_COLOR

 ...&lt;/LI-CODE&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/text-to-number-hash-in-chart-expression/m-p/1590891#M43382</guid>
      <dc:creator>virilo_tejedor</dc:creator>
      <dc:date>2024-11-16T20:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: text to number hash in chart expression</title>
      <link>https://community.qlik.com/t5/App-Development/text-to-number-hash-in-chart-expression/m-p/1590897#M43384</link>
      <description>&lt;P&gt;Hi Virilo,&lt;/P&gt;&lt;P&gt;For '&lt;SPAN&gt;using the same consistent colors throughout the application' you can use master dimensions. When you created one for your dimensions, click on them again and then you can use color scheme for each value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jordy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Climber&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 10:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/text-to-number-hash-in-chart-expression/m-p/1590897#M43384</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-12T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: text to number hash in chart expression</title>
      <link>https://community.qlik.com/t5/App-Development/text-to-number-hash-in-chart-expression/m-p/1590928#M43390</link>
      <description>&lt;P&gt;Hi Jordy,&lt;/P&gt;&lt;P&gt;Thanks for your response &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/4683"&gt;@JordyWegman&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I've watched&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=5eucibmotOo" target="_blank"&gt;https://www.youtube.com/watch?v=5eucibmotOo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm going to give it a try.&lt;/P&gt;&lt;P&gt;But, I'm not sure if it's going to work in my case, since I have two master dimensions, with 80% of similar values, and I'd like both to use the same colors&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Virilo&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 11:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/text-to-number-hash-in-chart-expression/m-p/1590928#M43390</guid>
      <dc:creator>virilo_tejedor</dc:creator>
      <dc:date>2019-06-12T11:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: text to number hash in chart expression</title>
      <link>https://community.qlik.com/t5/App-Development/text-to-number-hash-in-chart-expression/m-p/1590930#M43391</link>
      <description>&lt;P&gt;Look here for a way to store this information in a table&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Colors-in-charts/ba-p/1475280" target="_blank" rel="noopener"&gt;Colors in charts&lt;/A&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A href="https://www.learnallbi.com/maintaining-color-of-the-dimensions-in-qlikview/" target="_blank" rel="noopener"&gt;Maintaining Color of the Dimensions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, I have not read this through, but for Qlik Sense, you can probably look here also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dimension-Colors/bc-p/1470976" target="_blank" rel="noopener"&gt;Dimension Colors&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 11:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/text-to-number-hash-in-chart-expression/m-p/1590930#M43391</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-12T11:28:37Z</dc:date>
    </item>
  </channel>
</rss>

