<?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: Multiple column color formatting in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Multiple-column-color-formatting/m-p/806706#M98520</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I overlooked such a convenient "Color Gradient" and "Standardized Attributes"!&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2024 09:06:28 GMT</pubDate>
    <dc:creator>Azim</dc:creator>
    <dc:date>2024-10-18T09:06:28Z</dc:date>
    <item>
      <title>Multiple column color formatting</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-column-color-formatting/m-p/806424#M98488</link>
      <description>&lt;P&gt;I have multiple columns both numerical and characters. I want to color format for all numeric columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first attempt was using if function&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Local ({dt},&lt;BR /&gt;dt = Data Table ("Cpk report overall");&lt;BR /&gt;dt &amp;lt;&amp;lt; Begin Data Update;&lt;BR /&gt;For Each Row(&lt;BR /&gt;If(&lt;BR /&gt;:"Row 1"n &amp;gt;= 1.33, :"Row 1"n &amp;lt;&amp;lt; Color cells ("Green", Row()),&lt;BR /&gt;(:"Row 1"n &amp;lt; 1.33) &amp;amp; (:"Row 1"n &amp;gt;= 1.06), :"Row 1"n &amp;lt;&amp;lt; Color cells ("Yellow", Row()),&lt;BR /&gt;:"Row 1"n &amp;lt; 1.06, :"Row 1"n &amp;lt;&amp;lt; Color cells ("Red", Row()) &lt;BR /&gt;)&lt;BR /&gt;);&lt;BR /&gt;dt &amp;lt;&amp;lt; End Data Update;&lt;BR /&gt;);&lt;/PRE&gt;&lt;P&gt;Please ignore my column name as it is the product of transposing a column..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this method will only apply for 1 of the many columns I have and will have which will not be consistent. Is there a way to make this work for all column without having to specify column names?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 08:06:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-column-color-formatting/m-p/806424#M98488</guid>
      <dc:creator>Azim</dc:creator>
      <dc:date>2024-10-17T08:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple column color formatting</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-column-color-formatting/m-p/806453#M98489</link>
      <description>&lt;P&gt;You will want to loop over the columns&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Data Table("Cpk report overall");
collist = dt &amp;lt;&amp;lt; Get Column Names("Numeric", "Continuous");
dt &amp;lt;&amp;lt; Begin Data Update;

For Each({colname}, collist,
	For Each Row(
		If(
			:"Row 1"n &amp;gt;= 1.33, :"Row 1"n &amp;lt;&amp;lt; Color cells("Green", Row()),
			(:"Row 1"n &amp;lt; 1.33) &amp;amp; (:"Row 1"n &amp;gt;= 1.06), :"Row 1"n &amp;lt;&amp;lt; Color cells("Yellow", Row()),
			:"Row 1"n &amp;lt; 1.06, :"Row 1"n &amp;lt;&amp;lt; Color cells("Red", Row())
		)
	);
);

dt &amp;lt;&amp;lt; End Data Update;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but in this case I would consider trying Color Gradient column property instead of coloring cells using &amp;lt;&amp;lt; Color Cells&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1729156685933.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69226iB71D7B170E9C8035/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1729156685933.png" alt="jthi_0-1729156685933.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 09:18:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-column-color-formatting/m-p/806453#M98489</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-17T09:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple column color formatting</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-column-color-formatting/m-p/806706#M98520</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I overlooked such a convenient "Color Gradient" and "Standardized Attributes"!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 09:06:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-column-color-formatting/m-p/806706#M98520</guid>
      <dc:creator>Azim</dc:creator>
      <dc:date>2024-10-18T09:06:28Z</dc:date>
    </item>
  </channel>
</rss>

