<?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: Changing a Numeric value for Month to text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298307#M497404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Stefano suggests will work. I even use a Dual() load inline instead, but it's fine. But what about one code line based on a variable you already have in your script and, if you dont, you can easily create it? Check the top part of your Main tab in your script. The frist few lines are environment variables used to set the money, date and timestamp formats, separators and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, create a new one with the name of the months as you wish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive-pre notranslate" style="font-size: 1.2em; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; padding-left: 10px;"&gt;&lt;CODE class="jive-code"&gt;SET LongMonthNames = 'January;February;March;April;May;June;July;August;September;October;November;December';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in your calendar table use the SubField() function to get the correspoding value to your numeric month value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive-pre notranslate" style="font-size: 1.2em; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; padding-left: 10px;"&gt;&lt;CODE class="jive-code"&gt;SubField('$(LongMonthNames)', ';', Month(DateField)) AS MonthName,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you are done! This way you don't need to use an inline table to link to your calendar table. You can even use the MonthNames variable that already exists in your script and no need to create a new one. And you can even change the language for the months or use two variables with month names, (for example, Spanish and English).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2011 21:37:21 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-09-28T21:37:21Z</dc:date>
    <item>
      <title>Changing a Numeric value for Month to text</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298304#M497401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a dimension in my report for Month that shows up as a number 1 through 12.&lt;/P&gt;&lt;P&gt;How do I get it to show as text, January, February, etc.&lt;/P&gt;&lt;P&gt;Can I do this by making a calculated dimension.&lt;/P&gt;&lt;P&gt;If so anyone know how.&lt;/P&gt;&lt;P&gt;Thanks Ashley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 19:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298304#M497401</guid>
      <dc:creator />
      <dc:date>2011-09-28T19:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Numeric value for Month to text</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298305#M497402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;u can use a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthDesc:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; month, des&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Jen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Feb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Mar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Apr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, May&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, Jun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, Jul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, Aug&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, Sep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, Oct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11, Nov&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12, Dec&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;where exists(month);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I supposed that your numeric month fileld is named "month", so there will be a key by month between number and description.&lt;/P&gt;&lt;P&gt;With the 'where' you load only description of the month loaded from your sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C u,&lt;/P&gt;&lt;P&gt;Stefano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 21:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298305#M497402</guid>
      <dc:creator />
      <dc:date>2011-09-28T21:11:57Z</dc:date>
    </item>
    <item>
      <title>Changing a Numeric value for Month to text</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298306#M497403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My field is called [Incident Month]&lt;/P&gt;&lt;P&gt;Where do I put that in the script you sent me?&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Ashley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 21:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298306#M497403</guid>
      <dc:creator />
      <dc:date>2011-09-28T21:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Numeric value for Month to text</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298307#M497404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Stefano suggests will work. I even use a Dual() load inline instead, but it's fine. But what about one code line based on a variable you already have in your script and, if you dont, you can easily create it? Check the top part of your Main tab in your script. The frist few lines are environment variables used to set the money, date and timestamp formats, separators and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, create a new one with the name of the months as you wish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive-pre notranslate" style="font-size: 1.2em; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; padding-left: 10px;"&gt;&lt;CODE class="jive-code"&gt;SET LongMonthNames = 'January;February;March;April;May;June;July;August;September;October;November;December';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in your calendar table use the SubField() function to get the correspoding value to your numeric month value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive-pre notranslate" style="font-size: 1.2em; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; padding-left: 10px;"&gt;&lt;CODE class="jive-code"&gt;SubField('$(LongMonthNames)', ';', Month(DateField)) AS MonthName,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you are done! This way you don't need to use an inline table to link to your calendar table. You can even use the MonthNames variable that already exists in your script and no need to create a new one. And you can even change the language for the months or use two variables with month names, (for example, Spanish and English).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 21:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298307#M497404</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-09-28T21:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Numeric value for Month to text</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298308#M497405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabulous&lt;/P&gt;&lt;P&gt;What Stefano gave me worked, but I will try this one too.&lt;/P&gt;&lt;P&gt;That way I'm learning more all the time.&lt;/P&gt;&lt;P&gt;Ashley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 21:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-a-Numeric-value-for-Month-to-text/m-p/298308#M497405</guid>
      <dc:creator />
      <dc:date>2011-09-28T21:40:31Z</dc:date>
    </item>
  </channel>
</rss>

