<?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 Is there a way to reference the current column name in a formula? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-reference-the-current-column-name-in-a-formula/m-p/395068#M64565</link>
    <description>&lt;P&gt;Hi - I'd like to be able to reference the name of a column in a data table to which a formula has been applied, in much the same way that the row() function returns the current row. I want to be able to do it so that I can copy the column properties of a single column of one data table to multiple columns of another data table with a different set of names (which I don't know in advance, but which I know will have a certain structure), and then use those names to determine what action is to be performed by the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if the column name has a "1" in it then I want to evaluate formula A, whereas if it contains a "2" then I want to evaluate formula B. I could set up all the possible options within a single formula with a set of if-then-else clauses or a choose() function, &lt;EM&gt;if&lt;/EM&gt; I can reference the column name from within the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can it be done? I have a feeling this could well be one of those questions that invites a one-line reply demonstrating that it's trivial, so apologies in advance if it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:32:15 GMT</pubDate>
    <dc:creator>DMR</dc:creator>
    <dc:date>2023-06-10T23:32:15Z</dc:date>
    <item>
      <title>Is there a way to reference the current column name in a formula?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-reference-the-current-column-name-in-a-formula/m-p/395068#M64565</link>
      <description>&lt;P&gt;Hi - I'd like to be able to reference the name of a column in a data table to which a formula has been applied, in much the same way that the row() function returns the current row. I want to be able to do it so that I can copy the column properties of a single column of one data table to multiple columns of another data table with a different set of names (which I don't know in advance, but which I know will have a certain structure), and then use those names to determine what action is to be performed by the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if the column name has a "1" in it then I want to evaluate formula A, whereas if it contains a "2" then I want to evaluate formula B. I could set up all the possible options within a single formula with a set of if-then-else clauses or a choose() function, &lt;EM&gt;if&lt;/EM&gt; I can reference the column name from within the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can it be done? I have a feeling this could well be one of those questions that invites a one-line reply demonstrating that it's trivial, so apologies in advance if it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:32:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-reference-the-current-column-name-in-a-formula/m-p/395068#M64565</guid>
      <dc:creator>DMR</dc:creator>
      <dc:date>2023-06-10T23:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to reference the current column name in a formula?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-reference-the-current-column-name-in-a-formula/m-p/395125#M64570</link>
      <description>&lt;P&gt;It sounds like the formula needs to change what it does based on its column name. Would it be possible to use the column name at &amp;lt;&amp;lt;setFormula time to choose a simpler formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 16:23:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-reference-the-current-column-name-in-a-formula/m-p/395125#M64570</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-06-22T16:23:03Z</dc:date>
    </item>
  </channel>
</rss>

