<?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: How to  find/extract the corresponding value on x axis for y max (peak) value ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-find-extract-the-corresponding-value-on-x-axis-for-y-max/m-p/735366#M91662</link>
    <description>&lt;P&gt;Hello-&lt;BR /&gt;In addition to the graphic analysis, a formula column in the data table can identify the peak Y value of your column :Output,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;There are multiple traces shown on the graph, so assume an identifier we will call :Batch.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Make a new column, right click to edit formula: (assume column name Input_at_Peak)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Col Maximum( :Output, :Batch ) == :Output,
	:Input,
	.
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will determine the rows where the current value of :Output matches the maximum :Output&lt;/P&gt;
&lt;P&gt;for that :Batch.&amp;nbsp; In these peak rows, the value of the :Input value will be duplicated, otherwise the value will be missing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Once there is a single value per :Batch, and the rest missing- any summarization function (e.g. mean, min, max) when given one value and the balance missing- will return the one value.&lt;BR /&gt;Depending on where you would like the result to appear:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In a separate table- use Table Menu/Summary- calculate the Mean(Input_at_Peak), with group Batch&lt;/LI&gt;
&lt;LI&gt;Within the same data table- if you wanted the same value in all rows, a similar formula column approach of&amp;nbsp;Col Mean( :Input_at_Peak, :Batch )&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 15:26:00 GMT</pubDate>
    <dc:creator>GregF_JMP</dc:creator>
    <dc:date>2024-03-18T15:26:00Z</dc:date>
    <item>
      <title>How to  find/extract the corresponding value on x axis for y max (peak) value ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-extract-the-corresponding-value-on-x-axis-for-y-max/m-p/735287#M91658</link>
      <description>&lt;P&gt;I need a quick way to extract the peak values of Y-axis and its corresponds on X-Axis.&lt;/P&gt;&lt;P&gt;The plot was performed in Graph Builder. X-axis is log scale.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saad_1-1710683796970.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62273i717D754973D0329F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saad_1-1710683796970.png" alt="saad_1-1710683796970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 14:00:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-extract-the-corresponding-value-on-x-axis-for-y-max/m-p/735287#M91658</guid>
      <dc:creator>saad</dc:creator>
      <dc:date>2024-03-17T14:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to  find/extract the corresponding value on x axis for y max (peak) value ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-extract-the-corresponding-value-on-x-axis-for-y-max/m-p/735290#M91660</link>
      <description>&lt;P&gt;Try the crosshair tool.&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6349126624112w960h540r66" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6349126624112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6349126624112w960h540r66');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6349126624112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 14:25:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-extract-the-corresponding-value-on-x-axis-for-y-max/m-p/735290#M91660</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-03-17T14:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to  find/extract the corresponding value on x axis for y max (peak) value ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-extract-the-corresponding-value-on-x-axis-for-y-max/m-p/735366#M91662</link>
      <description>&lt;P&gt;Hello-&lt;BR /&gt;In addition to the graphic analysis, a formula column in the data table can identify the peak Y value of your column :Output,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;There are multiple traces shown on the graph, so assume an identifier we will call :Batch.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Make a new column, right click to edit formula: (assume column name Input_at_Peak)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Col Maximum( :Output, :Batch ) == :Output,
	:Input,
	.
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will determine the rows where the current value of :Output matches the maximum :Output&lt;/P&gt;
&lt;P&gt;for that :Batch.&amp;nbsp; In these peak rows, the value of the :Input value will be duplicated, otherwise the value will be missing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Once there is a single value per :Batch, and the rest missing- any summarization function (e.g. mean, min, max) when given one value and the balance missing- will return the one value.&lt;BR /&gt;Depending on where you would like the result to appear:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In a separate table- use Table Menu/Summary- calculate the Mean(Input_at_Peak), with group Batch&lt;/LI&gt;
&lt;LI&gt;Within the same data table- if you wanted the same value in all rows, a similar formula column approach of&amp;nbsp;Col Mean( :Input_at_Peak, :Batch )&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 15:26:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-extract-the-corresponding-value-on-x-axis-for-y-max/m-p/735366#M91662</guid>
      <dc:creator>GregF_JMP</dc:creator>
      <dc:date>2024-03-18T15:26:00Z</dc:date>
    </item>
  </channel>
</rss>

