<?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: Summarizing &amp;amp; Exporting All Value Labels Data From a Table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Summarizing-amp-Exporting-All-Value-Labels-Data-From-a-Table/m-p/419982#M66885</link>
    <description>&lt;P&gt;Thanks, jthi, that works! I'll add in a couple of lines to make sure the data in the original table are Numeric and Continuous (I ran it on a larger data table where the values were Numeric but declared in Column Properties as Character), but I can manage that!&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 08:45:52 GMT</pubDate>
    <dc:creator>Nats</dc:creator>
    <dc:date>2021-09-22T08:45:52Z</dc:date>
    <item>
      <title>Summarizing &amp; Exporting All Value Labels Data From a Table</title>
      <link>https://community.jmp.com/t5/Discussions/Summarizing-amp-Exporting-All-Value-Labels-Data-From-a-Table/m-p/419588#M66856</link>
      <description>&lt;P&gt;Is there an easy way in JMP to summarize and export all Value labels information contained in a table (where multiple columns may have different Value Labels, but not all columns will have Value Labels)? Currently doing this manually by doing Recode on every Column with a Value Label, and doing Make Into Data Table. I then combine all the generated data tables together to get a stacked table (see sample files below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, all Values are numerical, and Value Labels are characters, so stacking is not an issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy to get both interactive and scripting answers for this one, although I suspect it will be scripting.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:37:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summarizing-amp-Exporting-All-Value-Labels-Data-From-a-Table/m-p/419588#M66856</guid>
      <dc:creator>Nats</dc:creator>
      <dc:date>2023-06-10T23:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing &amp; Exporting All Value Labels Data From a Table</title>
      <link>https://community.jmp.com/t5/Discussions/Summarizing-amp-Exporting-All-Value-Labels-Data-From-a-Table/m-p/419605#M66858</link>
      <description>&lt;P&gt;Not sure if there is a direct interactive way to do this, but here is one way with scripting:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

//dt = Current Data Table();
dt = Open("$SAMPLE_DATA/CrabSatellites.jmp");
colNames = dt &amp;lt;&amp;lt; Get Column Names("String");

dt_stack = New Table("Stacked_Value_Labels",
	New Column("Values", Numeric, "Continuous", Format("Best", 12), ),
	New Column("Labels", Character, "Nominal"),
	New Column("Rating", Character, "Nominal")
);

For(i = 1, i &amp;lt;= N Items(colNames), i++,
	colProp = Arg(Column(dt, colNames[i]) &amp;lt;&amp;lt; Get Value Labels);
	If(!IsEmpty(colProp) &amp;gt; 0,
		For(k = 1, k &amp;lt;= N Items(colProp), k++,
			currentColPropExpr = colProp[k];
			dt_stack &amp;lt;&amp;lt; Add Rows(
				{Values = Arg(currentColPropExpr, 1), Labels = Arg(currentColPropExpr, 2), Rating = colNames[i]}
			);
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:12:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summarizing-amp-Exporting-All-Value-Labels-Data-From-a-Table/m-p/419605#M66858</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-09-21T13:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing &amp; Exporting All Value Labels Data From a Table</title>
      <link>https://community.jmp.com/t5/Discussions/Summarizing-amp-Exporting-All-Value-Labels-Data-From-a-Table/m-p/419982#M66885</link>
      <description>&lt;P&gt;Thanks, jthi, that works! I'll add in a couple of lines to make sure the data in the original table are Numeric and Continuous (I ran it on a larger data table where the values were Numeric but declared in Column Properties as Character), but I can manage that!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 08:45:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summarizing-amp-Exporting-All-Value-Labels-Data-From-a-Table/m-p/419982#M66885</guid>
      <dc:creator>Nats</dc:creator>
      <dc:date>2021-09-22T08:45:52Z</dc:date>
    </item>
  </channel>
</rss>

