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?
Hi Frank,
No problem, I unmarked my post as a solution.
I understand better your situation, and it shouldn't be too difficult to do it with binning :
Col Sum( :Count, :"Custom Binning[Time]"n, :Label )
If you have only selected the 6 minutes timeframe for your sum formula column, the JSL formula will be :
Col Sum( :Count, :"Custom Binning[Time]"n )
I hope I did understand better your question and that this answer will solve your question.
I attached the datatable with calculated column and graphs.
you could use the Summary Platform to sum the counts for each time and day:
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 mean, sum or median.
By right clicking on time, you could change the aggregation - to e.g. to calculate the counts vs. hours. Then Sum will make more sense.
Data Table( "HISTOGRAM DATA" ) << Summary(
Group( :Time ),
Sum( :Count ),
Subgroup( :Label )
);
Hi @frankderuyck,
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 :
Col Sum(:Count, :Label)
JSL code to create this table is :
// Data table summary
Data Table( "HISTOGRAM DATA" ) << Summary(
Group( :Label ),
Sum( :Count ),
Freq( "None" ),
Weight( "None" )
);
I hope I did understand well your goal and that this response will help you,
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.
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.
Create binned column for Time (Cols/utilities/Make binning column) and use equal width bins of 6minutes
Then you can create Summary table based on that new column or use Col Sum formula and use that column as grouping with Label
Col Sum(:Count, :Label, :Time Binned)
Hi Frank,
No problem, I unmarked my post as a solution.
I understand better your situation, and it shouldn't be too difficult to do it with binning :
Col Sum( :Count, :"Custom Binning[Time]"n, :Label )
If you have only selected the 6 minutes timeframe for your sum formula column, the JSL formula will be :
Col Sum( :Count, :"Custom Binning[Time]"n )
I hope I did understand better your question and that this answer will solve your question.
I attached the datatable with calculated column and graphs.
Great, thanks a lot Victor!
Now I can go to FDE and creat daily time spectra!