Hi Team,
I would like to show the productivity in a bar graph in a form, I created pivot chart and inserted but data labels are fails to show and major disadvantage is it is not working in 2013 as the pivot chart was removed. Then I created a cross tab and added a Graph in form but that has a problem in showing the X axis values as the cross tab query will show the data in column order.
Now I tried with select query in row order and tried to run the graph but it is not showing me all working hours.
For eg. if we create query to show data column wise we can add IN statement and run the query but I would like to show column wise here is there any possiblity to show 9 hours mandatoryly and show the relevant count if exists
eg:-
Hours | Count
------------------
18 3
19 5
20 0
21 2
22 2
23 1
24 0
01 6
02 7
03 8
I tried the above in select query but 0 results, but When I dont add
the query gives output but only the worked hours.
I want to display all hours and the values for worked hours.
Please help me whether I can plot the graph in any other ways.
I would like to show the productivity in a bar graph in a form, I created pivot chart and inserted but data labels are fails to show and major disadvantage is it is not working in 2013 as the pivot chart was removed. Then I created a cross tab and added a Graph in form but that has a problem in showing the X axis values as the cross tab query will show the data in column order.
Now I tried with select query in row order and tried to run the graph but it is not showing me all working hours.
For eg. if we create query to show data column wise we can add IN statement and run the query but I would like to show column wise here is there any possiblity to show 9 hours mandatoryly and show the relevant count if exists
eg:-
Hours | Count
------------------
18 3
19 5
20 0
21 2
22 2
23 1
24 0
01 6
02 7
03 8
Code:
PARAMETERS [Forms]![frmDBC]![txtProdDt] DateTime;
SELECT Format([PrcsEnTime],"hh") In (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24) AS Hours, Count(tblProdctnDtl.ProcessorID) AS [Count]
FROM tblProdctnDtl
WHERE (((tblProdctnDtl.ProductionDt)=DateAdd("d",-1,Date())) AND ((tblProdctnDtl.ProcessorID) Like "JDAS"))
GROUP BY Format([PrcsEnTime],"hh") In (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24)
HAVING (((Format([PrcsEnTime],"hh") In (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24))>18));
Code:
IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24))>18));
I want to display all hours and the values for worked hours.
Please help me whether I can plot the graph in any other ways.
Comment