<?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 How to Change Text to Numeric in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Change-Text-to-Numeric/m-p/755699#M535138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my current formula, but it is not working because of the Rank function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;colormix1(Rank( TOTAL $(variablecolumn), 4, 1)/(Count({1}TOTAL Distinct $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn&lt;/SPAN&gt;))+1), RGB(0,155,225), RGB(255,255,255))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is:&lt;/P&gt;&lt;P&gt;1) The user can select any column as "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2) The chart would then use "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn" as the second dimension&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3) The color of the second dimension would be a gradient based on "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn", so if there are 5 values, they would order the values (by number or alphabet depending on the field) and then use colormix to create the gradient.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am using Rank to number the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn fields, but I want the color to be consistent across the first dimension, but I'm having a hard time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2015 01:29:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-06T01:29:22Z</dc:date>
    <item>
      <title>How to Change Text to Numeric</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Change-Text-to-Numeric/m-p/755699#M535138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my current formula, but it is not working because of the Rank function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;colormix1(Rank( TOTAL $(variablecolumn), 4, 1)/(Count({1}TOTAL Distinct $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn&lt;/SPAN&gt;))+1), RGB(0,155,225), RGB(255,255,255))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is:&lt;/P&gt;&lt;P&gt;1) The user can select any column as "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2) The chart would then use "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn" as the second dimension&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3) The color of the second dimension would be a gradient based on "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn", so if there are 5 values, they would order the values (by number or alphabet depending on the field) and then use colormix to create the gradient.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am using Rank to number the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;variablecolumn fields, but I want the color to be consistent across the first dimension, but I'm having a hard time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 01:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Change-Text-to-Numeric/m-p/755699#M535138</guid>
      <dc:creator />
      <dc:date>2015-02-06T01:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Text to Numeric</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Change-Text-to-Numeric/m-p/755700#M535139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that &lt;STRONG&gt;num&lt;/STRONG&gt;(rank(...)) can help, give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 01:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Change-Text-to-Numeric/m-p/755700#M535139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T01:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Text to Numeric</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Change-Text-to-Numeric/m-p/755701#M535140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with NUM#() or num() function ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 04:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Change-Text-to-Numeric/m-p/755701#M535140</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-02-06T04:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Text to Numeric</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Change-Text-to-Numeric/m-p/755702#M535141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay Num() didn't work, but I figured out how to get what I want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;colormix1(Rank( TOTAL $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;variablecolumn&lt;/SPAN&gt;), 1, 1) /(Max(TOTAL Aggr(NUM(Rank( TOTAL $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;variablecolumn&lt;/SPAN&gt;), 1, 1)), Submission, $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;variablecolumn&lt;/SPAN&gt;)))+1), RGB(0,155,225), RGB(255,255,255))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates a smooth gradient, no matter how many distinct values there are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 18:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Change-Text-to-Numeric/m-p/755702#M535141</guid>
      <dc:creator />
      <dc:date>2015-02-06T18:06:36Z</dc:date>
    </item>
  </channel>
</rss>

