When my web report runs, it misses a few columns. I have setting to data element to output but does not fix the issue.
Example below is illustrates the issue counting number of days in each week. The data exists but Weeks 3 and 5 are missing day counts.
WEEK 1 2 4 6
DAYS 7 7 7 7
Related
I find it very difficult to explain what I want to ask, So I created a hypothetical question (taking ex of temp), Maybe my question is still not very clear, But pls take a look. let me know if you need any clarification
I want to compare the temp of last Sunday and temp of temp 3 weeks ago (Sunday),
So it should show something like this. There would be two dates in select option so I want to analyze temp on Sunday before last Sunday,
<select>
<option> Last Sunday (2017-12-03) </option>
<option> Previous Sunday (2017-11-26) </option>
</select>
<h1> Temp on 2017-12-03 </h1>
<p> 24 C </p>
<h1> temp 3 weeks ago (2017-11-12)</h1>
<p> 24.4 C</p>
<h1> Change in temp </h1>
<p> .4 </p>
Assume I can get the temp only current Sunday, So I need to update this database on weekly basis (on every sunday)
city_id sunday_temp temp_pre_week1 temp_pre_week2 temp_pre_week3 last_sunday_date
1 24.0 24.3 35.2 24.4 2017-12-03
1 24.3 35.2 24.4 28.0 2017-11-26
2 3.0 4.0 2.0 6.0 2017-12-03
2 4.0 2.0 6.0 7.0 2017-11-26
.
.
around 2000 rows
Another option that i thought would be saving the data for 4 weeks, So when user select the Sunday before last Sunday I would be able to use 4th-week column,
Something like this
city_id sunday_temp temp_pre_week1 temp_pre_week2 temp_pre_week3 temp_pre_week4 last_sunday_date
1 24.0 24.3 35.2 24.4 28.0 2017-12-03
2 3.0 4.0 2.0 6.0 7.0 2017-12-03
.
.
I only want to analyze two Sundays not more than that, So i think adding one more column would be more efficient,
Thanks :)
Don't store all the data for a query in each row. Let the database do the work for you. Your database structure should just include city_id, date,temp. If you only have Sundays included, that's OK. You can then use something like
SELECT `temp`,`date` FROM `citydata` WHERE (`city_id` = 1) and (`date` <= '2017-12-03') ORDER BY `date` DESC LIMIT 4
which will retrieve the last 4 records available for city 1 that are on or before 2017-12-03. If you have data for every Sunday, that will get you the specific date ("last Sunday") plus the 3 previous weeks. If you decide you want more - just change the LIMIT to 5 or 6 or whatever you want. If you later decide to add different days of the week you won't have to change the database structure (though you will need to adjust your queries a bit). Most importantly, you won't need to look to previous records when you are collecting new data - you just add the new records and get the previous weeks of data when you actually need them.
I have built some quite ssrs charts, but is it possible to create below bar chart n SSRS.
![click on the link below to show the bar chart][1]
but when am creating this in ssrs , am getting report as below.
I am getting the report in ssrs as below, but not like the above one:
![][2]
If you want to include the heading as they are in your first image, you will need to be clever with your dataset.
Personally I would probably take the approach of including dummy chart values to get your Category heading without a corresponding bar in the chart, such as:
Group Order Category Value
31 to 60 Days 1 31 to 60 Days 0
31 to 60 Days 2 Today 14
31 to 60 Days 3 1 Month Ago 12
31 to 60 Days 4 2 Month Ago 44
Up to 30 Days 1 Up to 30 Days 0
Up to 30 Days 2 Today 11
Up to 30 Days 3 1 Month Ago 8
Up to 30 Days 4 2 Month Ago 21
From which you can:
Group your Categories using the Group value
Display each Category in its correct order by sorting on the Order column
Actually display your chart values using the Value column, which will show nothing for your group headings
How you get your data into that format will depend on your data source, but should be fairly trivial if you are using a SQL source.
In MS Access 2010, assume a query contains the following results:
Date Activity Hours
1.9. Reading 1
1.9. Writing 2
2.9. Reading 1
3.9. Talking 1
4.9. Reading 3
1.10. Talking 2
1.10. Writing 1
2.10. Reading 2
3.10. Talking 2
4.10. Reading 1
the Report should show the sum of hours spent each month grouped by activity, something like
Month Activity Hours
September Reading 5
Writing 2
Talking 1
October Reading 3
Writing 1
Talking 4
using the wizard I mange to get a report which looks like
Month Activity Hours
September Reading 1
Reading 1
Reading 3
Writing 2
Talking 1
October Reading 2
Reading 1
Writing 1
Talking 2
Talking 2
which is nearly what I'd like to have but.. ?
I tried =sum(Hours), but then all Hours fields simply contain the total sum of all hours, and I still get several lines for the same activity.
Actually the report is more complicated. In a form prior to the report, the user can enter a date range (e.g. September 1 - October 30). The report should sum over the whole time range and not break up to months, that is:
Date range Activity Hours
9/1 - 10/30 Reading 8
Writing 3
Talking 5
Create a query with a SQL like this:
SELECT MonthName(Month([Date])), Activity, SUM(Hours)
FROM yourTable
WHERE [Date] >= xxx AND [Date] <= yyy
GROUP BY MonthName(Month([Date])), Activity
The key element is the GROUP BY clause, it sums the Hours per Month + Activity.
Then base your report on that query.
BTW, it is not a good idea to call a column "Date", it's a reserved word in Access.
I'm a newbie to Access 2010. I have a table:
ID Mth OrderID Net Sales
1 1 3 36
2 1 2 12
3 1 2 20
4 2 1 10
I'd like to get a summary by Mth of the OrderID count, Quantity of those orders, and Net Sales of the those orders:
Mth Ordercount Quantity Net Sales
1 2 7 68
2 1 1 10
Is there a way to do this?
I'd also like to convert Mth = 1 into Month = Jan 2013 but have it list in date order, rather than alphabetically.
Mth
Jan 2013
Feb 2013
How do I do that?
So far, I've only been working with the design view and have not using an SQL code.
This can be done mostly in the design viewer of access although it would require creating more than one query and using those as a source instead of a table or you could write a sub select in sql code.
For your first question you will need to perform a distinct count on order id's based on month. This question answers the same problem and will provide the output you need.
Once you have a query that provides the number of orders per month you can create a new query that joins the table and your query on month with Net Sales as a total field. Where is quantity coming from in your source data?
To display the month number as month access has a MonthName function you can use. You can add 2013 to this by adding & " 2013" to the end of the expression.
You can sort on month by adding your month field a second time for the sorting but uncheck show box.
I am building a report that looks like:
Last 30 Days Last 60 Days Last 90 Days
SLA Met* 1 3 5
SLA Missed* 2 4 6
Total 3 7 11
The datasource is via FetchXML and only one dataset is being used for the table. I am calculating the static rows, SLA Met and SLA Missed, using the expresion:
=(Count(IIf Condition, 1, Nothing)).
Any ideas how I would get the total of these two static rows, as they do not belong to a group, not fields that I can easily sum, and are defined by an expression?
Thanks.
If I clearly understood the problem, the solution would be simple: = (expression) + (expression)
This amount must be in the same table.
You can create calculated fields with your condition, then use that data to create your total rows. They would then belong to the group and would be easy to sum up.