I have a table with sleep data, including start date, minutes of sleep, minutes of deep sleep, minutes of light sleep, minutes of REM sleep and other fields.
I would like to present the REM, light and deep sleep data in a pie chart within a report so it is a lot more visual than plain number you need to analyze. My report so far is grouped by start date, with a groupe header, a detail section and a group footer. I can get a standard bar chart to work with this SQL statement but don't know what to do do have displayed as a pie chart instead:
SELECT qryDonneesSommeil.[Heure de début], Sum(qryDonneesSommeil.Eveil) AS SommeDeEveil, Sum(qryDonneesSommeil.Paradoxal) AS SommeDeParadoxal, Sum(qryDonneesSommeil.Leger) AS SommeDeLeger, Sum(qryDonneesSommeil.Profond) AS SommeDeProfond
FROM qryDonneesSommeil
GROUP BY qryDonneesSommeil.[Heure de début];
Related
MS Office 365 ProPlus, Access 2007 - 2016
I am trying to build a very simple chart which plots a single value over time. The data is coming from a saved query and looks something like this...
SELECT tot_effort_left, when_captured
FROM BurnDownMetrics
WHERE project = proj and domain = dom;
When I run the query, it asks for the "proj" and the "dom", which I enter, and the table/report it generates is correct.
tot_effort_left when_captured
300.0 4/10/2018
270.0 5/10/2018
230.0 6/10/2018
190.0 7/10/2018
100.0 8/10/2018
Now, for the report...
In the chart settings I select "Queries" and identify the stored query from the list provided.
For the "Axis" I select "when_captured" and for the "Values (Y axis)" I select "tot_effort_left (Sum)" and a chart pops up. Looks good but it appears to be using the search criteria I specified when developing the query. It does not ask me for the values. So I'm thinking it's just getting some data so that I can continue to develop the chart/report and when I actually go to run it, it'll ask then.
Another disconcerting thing is that I really don't want it so sum anything, just plot the data that the query returns.. So I change it to "tot_effort_left (None)" and the nice chart that I had disappeared. I go back to "tot_effort_left (Sum)" and the nice chart is restored. So I'm guesing/hoping that the "sum" won't actually do anything if there is nothing to sum. I save the report (fingers crossed).
Now, I double click the report. It does not run the query, it does not ask me for the "proj" and/or "dom". It just plots the same points that I saw when developing the report.
Is there a way I can get it to prompt me for the query criteria, run that through the query to generate the data, then just plot that ?
My data and this SSRS chart have a ton of problems, I'll try to keep my question(s) succinct.
First, as you can see by this chart and this screenshot of my data (just showing date and April Savings), my expression/chart is not summing all of the savings within a month, which is my goal.
It appears to be picking one amount within the correct month and using it. I set up a tool tip for April so I could see what number it's pulling (since clearly the chart columns are not representing the data whatsoever - another issue).
You'll see in the SQL data screenshot that it does indeed pull $1,230 from the April 2013 Savings. How can I get this to Sum within the month AND still do a running value from the beginning of time data began to current, this often will include multiple years.
Here's my Chart Data (note that my Team Goal works perfectly, and is even charted correctly - but if anyone knows how to force that line to go from end to end on my chart, feel free to let me know.) :
To summarize, how can I sum each month's data, while still do a running value across the months AND years?
Here's my Expression for Implementable Savings:
=RunningValue(Sum(Fields!ImplementableSavings.Value), Sum, nothing)
(obviously if I can get one working, I can get both)
My Expression for ImplementedSavingsMonth:
=MonthName(Month(Fields!ImplementedSavingsDate.Value))
My Expression for ImplementedSavingsYear:
=Year(Fields!ImplementedSavingsDate.Value)
Let me know if there's anything else I can provide.
Quick sidebar question: WHY does my chart column collect one piece of data. IE: see the tool tip $1,230 for April 2013), but the chart column displays that the number is around $1.7M? And in this scenario, both of my blue and yellow columns are displaying the same number, so why does blue always appear to be a higher number? I will ask this as a 2nd question if it's inappropriate for me to ask here.
I would use this Expression for Implementable Savings:
= RunningValue ( Fields!ImplementableSavings.Value, Sum, "Chart1")
.. assuming your Chart's name is Chart1.
I have a database that keeps track of Tech's schedules. I have a report that spits out the schedules grouped by name.
Dane Morris
1/13/2014 2/7/2014
2/10/2014 3/1/2014
2/27/2014 3/2/2014
3/3/2014 3/21/2014
3/22/2014 3/22/2014
3/24/2014 4/11/2014
In the example if you look at Dane Morris there is an overlap in the dates. He ends one on 3/1/2014 but starts one at 2/27/2014
I was wondering is it possible to check the dates before and if it's more than the date I'm checking Id be able to change the fonts of both of them so I can easily identify if there is a discrepancy in the time line of dates.
You can use the DLookUp function to look at next/previous records.
This Microsoft Support article gives some examples
http://support.microsoft.com/kb/210504
Afternoon all,
I have a simple bar graph in SSRS 2005 that displays data in a web page. The space that i have allocated on the web page is very small but is required.
I have a report that pulls data back for the last 24hrs and plots this on a graph. I have placed 'Timestamp' data on to my graph and it is located at within the 'Drop category fields here' section.
As the space that i have for my chart is only small the 24hr timestamp labels look too busy and look messy. Is there a way i can format this area so it only displays a label on the 6th, 12th, 18th and 24th interval?
I have reduced the label already by formatting the timestamp using the below but think i need to reduce the number of labels for the timestamp.
=Format(Fields!TimeStamp.Value, "H:mm dd-MMM")
Regards
Bet
Try looking at the Major gridlines interval:
Which gives me a result with some junk data:
So it might not be 100% perfect for what you want, but hopefully will be helpful. Unfortunately SSRS 2005 charts are a bit limited in functionality so it's a case of trying to do the best with what you have.
I'm trying to produce a gantt style chart by using the SSRS 2008 R2 ranged bar chart. Gantt chart is for tracking task start and end dates, where task may be stopped and started with these intermissions recorded.
DataTable columns: TaskName, StartDate, EndDate
I can get the chart to display the first row for each TaskName on my chart but I have some instances where there are more than one table row per task with differing dates. i.e. I may start a task, do another task for a bit then step back to a task.
I followed this example to get to this stage: http://pnarayanaswamy.blogspot.com.au/2010/09/range-bar-chart-gantt-chart-using-ssrs.html
Is this request possible with this chart object, if not what would you suggest?
Yes, this is possible. It's actually in the link you refer to:
To view all the sub task data series group in one line, you need to set this DrawSideBySide to False for all the sub task data series.