<?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: JMP 16 Useable Year Week Column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-16-Useable-Year-Week-Column/m-p/531233#M75439</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I believe that you need to convert the numerical output of your date functions into strings. Try preceding each expression with CHAR (). Of note, you may also use the FORMAT () function to create strings with the right number of digits and decimals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Char (Year( :Date )) || " - " || Char (Week Of Year( :Date ))&lt;BR /&gt;// or&lt;BR /&gt;Format&amp;nbsp;(Year&amp;nbsp;(:Date),&amp;nbsp;"Fixed&amp;nbsp;Dec",&amp;nbsp;4,&amp;nbsp;0)&amp;nbsp;||&amp;nbsp;"&amp;nbsp;-&amp;nbsp;"&amp;nbsp;||&amp;nbsp;Format&amp;nbsp;(Week&amp;nbsp;of&amp;nbsp;Year&amp;nbsp;(:Date),&amp;nbsp;"Fixed&amp;nbsp;Dec",&amp;nbsp;2,&amp;nbsp;0)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
    <pubDate>Sun, 07 Aug 2022 20:25:33 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2022-08-07T20:25:33Z</dc:date>
    <item>
      <title>JMP 16 Useable Year Week Column</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-16-Useable-Year-Week-Column/m-p/531197#M75434</link>
      <description>&lt;P&gt;I am trying to duplicate, in jmp, extracting the week from a date column that I pull in Excel with the following formula, =TEXT(A2,"YYYY")&amp;amp;"-"&amp;amp;TEXT(WEEKNUM(A2,2),"00"). The resulting week is in yyyy-ww format with a two digit week. When I add a new column and try concatenating Year &amp;amp; Week (Year( :Date ) || Week Of Year( :Date )) it doesn't allow me to concatenate the "-". If I forego the "-" it does produce year-week but not in two digit format for the single digit weeks. Also, when I use this jmp formula I cannot use the generated year week in a graph as the Data Type is Expression. Any suggestions will be appreciated. Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:52:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-16-Useable-Year-Week-Column/m-p/531197#M75434</guid>
      <dc:creator>WoHNY</dc:creator>
      <dc:date>2023-06-10T23:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 16 Useable Year Week Column</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-16-Useable-Year-Week-Column/m-p/531233#M75439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I believe that you need to convert the numerical output of your date functions into strings. Try preceding each expression with CHAR (). Of note, you may also use the FORMAT () function to create strings with the right number of digits and decimals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Char (Year( :Date )) || " - " || Char (Week Of Year( :Date ))&lt;BR /&gt;// or&lt;BR /&gt;Format&amp;nbsp;(Year&amp;nbsp;(:Date),&amp;nbsp;"Fixed&amp;nbsp;Dec",&amp;nbsp;4,&amp;nbsp;0)&amp;nbsp;||&amp;nbsp;"&amp;nbsp;-&amp;nbsp;"&amp;nbsp;||&amp;nbsp;Format&amp;nbsp;(Week&amp;nbsp;of&amp;nbsp;Year&amp;nbsp;(:Date),&amp;nbsp;"Fixed&amp;nbsp;Dec",&amp;nbsp;2,&amp;nbsp;0)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 20:25:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-16-Useable-Year-Week-Column/m-p/531233#M75439</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2022-08-07T20:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 16 Useable Year Week Column</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-16-Useable-Year-Week-Column/m-p/533237#M75611</link>
      <description>&lt;P&gt;One easy way to get "baseline" formula for this is to use premade formulas JMP has (if you have a date column):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1660291176190.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44770i867656D2F51D78B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1660291176190.png" alt="jthi_0-1660291176190.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1660291201706.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44771iC6F937F1109CE5E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1660291201706.png" alt="jthi_1-1660291201706.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 08:02:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-16-Useable-Year-Week-Column/m-p/533237#M75611</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-08-12T08:02:49Z</dc:date>
    </item>
  </channel>
</rss>

