Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Monthly Graph From Daily Data

$
0
0
I'm trying to get a monthly graph from my table as below.

Date Machine Category Minutes
1/10/19 1 Production 900
1/10/19 2 Production 840
1/10/19 3 Production 915
2/10/19 1 Production 920
2/10/19 2 Production 860
2/10/19 3 Production 905
ect
ect
1/11/19 1 Production 950
ect
4/12/10 1 Production 900

My SQL:-
SELECT
Machine,
Category,
Minutes,
SUM(Minutes) AS STotal,
`Date`,
ownerid
FROM UtiData
GROUP by Date
Order by Date

This is the graph I am getting which shows every day.
Posted Image

And I would like something like this showing totals for each month:-
Posted Image


I am using PHPRunner 10.3 build 34159

Thank you very glad,.,. :D

Viewing all articles
Browse latest Browse all 2586

Trending Articles