<?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 do I save histogram count data? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615619#M81535</link>
    <description>&lt;P&gt;Create binned column for Time (Cols/utilities/Make binning column) and use equal width bins of 6minutes&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1679515675460.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51416i7D3C7830E2F1B7D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1679515675460.png" alt="jthi_0-1679515675460.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-1679515680822.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51417iA2D58F391A951E46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1679515680822.png" alt="jthi_1-1679515680822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you can create Summary table based on that new column or use Col Sum formula and use that column as grouping with Label&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(:Count, :Label, :Time Binned)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Mar 2023 20:10:58 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-03-22T20:10:58Z</dc:date>
    <item>
      <title>How do I save histogram count data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615540#M81529</link>
      <description>&lt;P&gt;I have a data set with count vs time monitored during several days see attachment. In graph builder histograms for several days are shown for time intervals of 6 minutes. How can I save the daily histogram counts for each interval in a data table?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:59:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615540#M81529</guid>
      <dc:creator>frankderuyck</dc:creator>
      <dc:date>2023-06-10T23:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save histogram count data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615579#M81531</link>
      <description>&lt;P&gt;you could use the Summary Platform to sum the counts for each time and day:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1679509690453.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51409i8BC7B6E8F2DE287E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1679509690453.png" alt="hogi_0-1679509690453.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If you take time as it is, there is just a single entry per time step and day, therefore, it doesn't matter if you use &lt;STRONG&gt;mean, sum&lt;/STRONG&gt; or &lt;STRONG&gt;median&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By right clicking on time, you could change the aggregation -&amp;nbsp; to e.g. to calculate the counts vs. hours. Then &lt;STRONG&gt;Sum&lt;/STRONG&gt; will make more sense.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1679509770372.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51410iAC72AFB6112609A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1679509770372.png" alt="hogi_1-1679509770372.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "HISTOGRAM DATA" ) &amp;lt;&amp;lt; Summary(
	Group( :Time ),
	Sum( :Count ),
	Subgroup( :Label )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2023 18:32:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615579#M81531</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-03-22T18:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save histogram count data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615582#M81532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/283"&gt;@frankderuyck&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand well your case (doing a sum of column count by day), here might be several options to do this, here are two :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;Formula column&lt;/EM&gt; : You can create a formula column of the sum of counts by day. To do it so, right-click on "Label", "New Formula Column", and then "GroupBy". Then, right-click on the column "Count", "New Formula Column", "Aggregate" and then "Sum". This will create a sum column of "Count" by "Day" (Sum[Count][Label]) and the JSL formula is&amp;nbsp;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(:Count, :Label)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1679509953597.png" style="width: 299px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51411iD7A4ADC8FCC71DE5/image-dimensions/299x262?v=v2" width="299" height="262" role="button" title="Victor_G_0-1679509953597.png" alt="Victor_G_0-1679509953597.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;Table Summary&lt;/EM&gt; : You can also create a summary table, to aggregate the sum of count by day. To do so, go into "Tables", then "Summary", use your "Label" as group variable, your "Count" and statistics Sum as "Statistics" variable, and click OK. you'll have a small table aggregating the values of count by day :&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1679510258864.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51412i47EE579667E847E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1679510258864.png" alt="Victor_G_1-1679510258864.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;JSL code to create this table is :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Data table summary

Data Table( "HISTOGRAM DATA" ) &amp;lt;&amp;lt; Summary(
	Group( :Label ),
	Sum( :Count ),
	Freq( "None" ),
	Weight( "None" )
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope I did understand well your goal and that this response will help you,&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 18:39:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615582#M81532</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2023-03-22T18:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save histogram count data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615614#M81533</link>
      <description>&lt;P&gt;Hi Victor, sorry I clicked accidentally on solution.. think there is a misunderstanding in my question; you gave me a solution for counts per day.&lt;/P&gt;&lt;P&gt;Let me clarify my question: for each day I want to tabulate the #counts in time intervals of 6 minutes; this is what the histograms in graph builder attached to the data table represent.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 19:51:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615614#M81533</guid>
      <dc:creator>frankderuyck</dc:creator>
      <dc:date>2023-03-22T19:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save histogram count data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615619#M81535</link>
      <description>&lt;P&gt;Create binned column for Time (Cols/utilities/Make binning column) and use equal width bins of 6minutes&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1679515675460.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51416i7D3C7830E2F1B7D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1679515675460.png" alt="jthi_0-1679515675460.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-1679515680822.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51417iA2D58F391A951E46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1679515680822.png" alt="jthi_1-1679515680822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you can create Summary table based on that new column or use Col Sum formula and use that column as grouping with Label&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(:Count, :Label, :Time Binned)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2023 20:10:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615619#M81535</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-03-22T20:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save histogram count data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615622#M81536</link>
      <description>&lt;P&gt;Hi Frank,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No problem, I unmarked my post as a solution.&lt;BR /&gt;I understand better your situation, and it shouldn't be too difficult to do it with binning :&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Right-click in your column time, "New Formula Column", "Distributional", "Custom Binning".&lt;/LI&gt;
&lt;LI&gt;There, click on the red triangle next to "Cutpoints" and click on "Fill using Equal Width Bins..."&lt;/LI&gt;
&lt;LI&gt;Specify your offset and Width (every 6 mintues):
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1679515221420.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51415i1BF07267DCAD82AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1679515221420.png" alt="Victor_G_0-1679515221420.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Click on OK ; a new column "Custom Binning [Time]" has appeared.&lt;/LI&gt;
&lt;LI&gt;Right click on this new column,&amp;nbsp;&lt;SPAN&gt;"New Formula Column", and then "GroupBy". You can also do this on your "Label" column (day) if you want a count for every 6 minutes for each day. Without this second column as groupby variable, the sum will only be done for each timeframe, no matter the day.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Then, right-click on the column "Count", "New Formula Column", "Aggregate" and then "Sum". This will create a sum column of "Count" for every 6 minutes and by Day if you have chosen the two Groupby variables (Sum[Count][Custom Binning[Time],Label]) and the JSL formula is&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;Col Sum( :Count, :"Custom Binning[Time]"n, :Label )&lt;/PRE&gt;
&lt;P&gt;If you have only selected the 6 minutes timeframe for your sum formula column, the JSL formula will be :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum( :Count, :"Custom Binning[Time]"n )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_2-1679515881655.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51419iBA5546777142C572/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_2-1679515881655.png" alt="Victor_G_2-1679515881655.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I hope I did understand better your question and that this answer will solve your question.&lt;BR /&gt;I attached the datatable with calculated column and graphs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 20:11:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615622#M81536</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2023-03-22T20:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save histogram count data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615904#M81562</link>
      <description>&lt;P&gt;Great, thanks&amp;nbsp; a lot Victor!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:13:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615904#M81562</guid>
      <dc:creator>frankderuyck</dc:creator>
      <dc:date>2023-03-23T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save histogram count data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615905#M81563</link>
      <description>&lt;P&gt;Now I can go to FDE and creat daily time spectra!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:16:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-histogram-count-data/m-p/615905#M81563</guid>
      <dc:creator>frankderuyck</dc:creator>
      <dc:date>2023-03-23T15:16:50Z</dc:date>
    </item>
  </channel>
</rss>

