I am new to reporting services. On a detail table of my report, I would like
to print
a large comment field after each row. The comment should span the entire
width of the table. (Sort of like the outlook preview row capability) Is
this possible?
Thanks,
Deniseright click to the left of you detail row and 'insert row below'.
Select all cells in this row, right click and 'merge'. You can make this any
size you need and will show up between your report detail. You can format as
needed.
--
U. Tokklas
"Denise" wrote:
> I am new to reporting services. On a detail table of my report, I would like
> to print
> a large comment field after each row. The comment should span the entire
> width of the table. (Sort of like the outlook preview row capability) Is
> this possible?
> Thanks,
> Denise
Showing posts with label span. Show all posts
Showing posts with label span. Show all posts
Monday, March 19, 2012
Monday, March 12, 2012
Group by time span
I have a database where user events are recorded quite frequently. I'd like to be able to get a count of the 'good' events that happen in each 5 second period. Unfortunately I don't know how to display and group by a time range.
Here is the query I would like to change:
SELECT count(*), clientTime
FROM dbo.V_COMBINED
WHERE (sessionId = '122b') AND (type = N'sys_goodaction') AND (paraName = 'value')
GROUP BY clientTime
It returns records like:
1 | 2006-02-16 23:21:05.250
1 | 2006-02-16 23:21:05.267
1 | 2006-02-16 23:21:06.470
I'd like it to return records like:
5 | 2006-02-16 23:21:06 - 23:21:10
3 | 2006-02-16 23:21:11 - 23:21:15
4 | 2006-02-16 23:21:16 - 23:21:20
Anyone know how I could do this? Is it even possible?
ThanksYes It is possible.
Post your table structure, sample data and expected result.|||There are many ways to do this, but I'd use:SELECT count(*), DateAdd(second, -DatePart(second, clientTime) % 5
, DateAdd(ms, -DatePart(ms, clientTime), clientTime))
FROM dbo.V_COMBINED
WHERE (sessionId = '122b')
AND (type = N'sys_goodaction')
AND (paraName = 'value')
GROUP BY DateAdd(second, -DatePart(second, clientTime) % 5
, DateAdd(ms, -DatePart(ms, clientTime), clientTime))-PatP
Here is the query I would like to change:
SELECT count(*), clientTime
FROM dbo.V_COMBINED
WHERE (sessionId = '122b') AND (type = N'sys_goodaction') AND (paraName = 'value')
GROUP BY clientTime
It returns records like:
1 | 2006-02-16 23:21:05.250
1 | 2006-02-16 23:21:05.267
1 | 2006-02-16 23:21:06.470
I'd like it to return records like:
5 | 2006-02-16 23:21:06 - 23:21:10
3 | 2006-02-16 23:21:11 - 23:21:15
4 | 2006-02-16 23:21:16 - 23:21:20
Anyone know how I could do this? Is it even possible?
ThanksYes It is possible.
Post your table structure, sample data and expected result.|||There are many ways to do this, but I'd use:SELECT count(*), DateAdd(second, -DatePart(second, clientTime) % 5
, DateAdd(ms, -DatePart(ms, clientTime), clientTime))
FROM dbo.V_COMBINED
WHERE (sessionId = '122b')
AND (type = N'sys_goodaction')
AND (paraName = 'value')
GROUP BY DateAdd(second, -DatePart(second, clientTime) % 5
, DateAdd(ms, -DatePart(ms, clientTime), clientTime))-PatP
Wednesday, March 7, 2012
Group by Day
Hi,
This is what I am trying to achieve, but in vain.
I have a report that has to be grouped by "Day" - I have hourly data for a
day which can span for several days based on the report start and end time.
For example if the report duration is 10/01/2004 to 10/05/2004, then I must
see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
summary statistics for that day towards the bottom of the page. And then
10/02/2004 on the next page and so on and so forth.
I have 2 matrices - one for detailed data for the day and another one for
the summary (sum, avg, min, max) for the same day. I am trying to group by
"Year", "Month" and "Day" but this is not working. Can anyone please let me
know how to make this work? Any help will be highly appreciated.
ThanksCan anyone please help, I am stuck.
"kmp" <kmp@.discussions.microsoft.com> wrote in message
news:3356ECAC-AB1E-4FB9-A8A2-7A424C687B10@.microsoft.com...
> Hi,
> This is what I am trying to achieve, but in vain.
> I have a report that has to be grouped by "Day" - I have hourly data for a
> day which can span for several days based on the report start and end
time.
> For example if the report duration is 10/01/2004 to 10/05/2004, then I
must
> see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> summary statistics for that day towards the bottom of the page. And then
> 10/02/2004 on the next page and so on and so forth.
> I have 2 matrices - one for detailed data for the day and another one for
> the summary (sum, avg, min, max) for the same day. I am trying to group by
> "Year", "Month" and "Day" but this is not working. Can anyone please let
me
> know how to make this work? Any help will be highly appreciated.
> Thanks|||Create a function in SQL server to strip off the time from the Datetime
field. Do this by coverting to to char(8) then back to datetime. Use this
function to give you the date only. Group by this function and put a page
break after that grouping level.
"kmp" wrote:
> Hi,
> This is what I am trying to achieve, but in vain.
> I have a report that has to be grouped by "Day" - I have hourly data for a
> day which can span for several days based on the report start and end time.
> For example if the report duration is 10/01/2004 to 10/05/2004, then I must
> see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> summary statistics for that day towards the bottom of the page. And then
> 10/02/2004 on the next page and so on and so forth.
> I have 2 matrices - one for detailed data for the day and another one for
> the summary (sum, avg, min, max) for the same day. I am trying to group by
> "Year", "Month" and "Day" but this is not working. Can anyone please let me
> know how to make this work? Any help will be highly appreciated.
> Thanks|||Thanks for the reply - this worked. But I have another problem. When I page
break per day, I would also like to see the summary statistics towards the
bottom of the page per day.
Since I have 2 matrices - one for detailed data (where I page break per day
basis) and another one for the summary statistics (sum, min, max etc.), when
I do a page break on the first matrix, I am not able to get the second matrix
on the same page (because of the page break on the first one). Is there
anyway I can see both the matrices on one page? Any help will be appreciated.
"johnE" wrote:
> Create a function in SQL server to strip off the time from the Datetime
> field. Do this by coverting to to char(8) then back to datetime. Use this
> function to give you the date only. Group by this function and put a page
> break after that grouping level.
> "kmp" wrote:
> > Hi,
> > This is what I am trying to achieve, but in vain.
> >
> > I have a report that has to be grouped by "Day" - I have hourly data for a
> > day which can span for several days based on the report start and end time.
> > For example if the report duration is 10/01/2004 to 10/05/2004, then I must
> > see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> > summary statistics for that day towards the bottom of the page. And then
> > 10/02/2004 on the next page and so on and so forth.
> >
> > I have 2 matrices - one for detailed data for the day and another one for
> > the summary (sum, avg, min, max) for the same day. I am trying to group by
> > "Year", "Month" and "Day" but this is not working. Can anyone please let me
> > know how to make this work? Any help will be highly appreciated.
> >
> > Thanks|||Can someone help me with my problem as posted below? I really appreciate the
help. Thanks.
"kmp" wrote:
> Thanks for the reply - this worked. But I have another problem. When I page
> break per day, I would also like to see the summary statistics towards the
> bottom of the page per day.
> Since I have 2 matrices - one for detailed data (where I page break per day
> basis) and another one for the summary statistics (sum, min, max etc.), when
> I do a page break on the first matrix, I am not able to get the second matrix
> on the same page (because of the page break on the first one). Is there
> anyway I can see both the matrices on one page? Any help will be appreciated.
> "johnE" wrote:
> > Create a function in SQL server to strip off the time from the Datetime
> > field. Do this by coverting to to char(8) then back to datetime. Use this
> > function to give you the date only. Group by this function and put a page
> > break after that grouping level.
> >
> > "kmp" wrote:
> >
> > > Hi,
> > > This is what I am trying to achieve, but in vain.
> > >
> > > I have a report that has to be grouped by "Day" - I have hourly data for a
> > > day which can span for several days based on the report start and end time.
> > > For example if the report duration is 10/01/2004 to 10/05/2004, then I must
> > > see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> > > summary statistics for that day towards the bottom of the page. And then
> > > 10/02/2004 on the next page and so on and so forth.
> > >
> > > I have 2 matrices - one for detailed data for the day and another one for
> > > the summary (sum, avg, min, max) for the same day. I am trying to group by
> > > "Year", "Month" and "Day" but this is not working. Can anyone please let me
> > > know how to make this work? Any help will be highly appreciated.
> > >
> > > Thanks|||Let me see if I understand this.
You have a report with two grouping levels let say by Product then by day so
you get the daily sales for the product but then you get a total for that
product. You want the total for the product to be on the same page as the
last days totals for that product
like this
Product A
Day 1
Order
Order
Total
Page Break
Day2
Order
Order
Total
Product A Total
Page Break
You may be able to achieve the results you are looking for by inserting a
group header for the Group by day level. set that to have a page break
before and set the visibility for the group header to hidden for the first
record of dataset.
"kmp" wrote:
> Thanks for the reply - this worked. But I have another problem. When I page
> break per day, I would also like to see the summary statistics towards the
> bottom of the page per day.
> Since I have 2 matrices - one for detailed data (where I page break per day
> basis) and another one for the summary statistics (sum, min, max etc.), when
> I do a page break on the first matrix, I am not able to get the second matrix
> on the same page (because of the page break on the first one). Is there
> anyway I can see both the matrices on one page? Any help will be appreciated.
> "johnE" wrote:
> > Create a function in SQL server to strip off the time from the Datetime
> > field. Do this by coverting to to char(8) then back to datetime. Use this
> > function to give you the date only. Group by this function and put a page
> > break after that grouping level.
> >
> > "kmp" wrote:
> >
> > > Hi,
> > > This is what I am trying to achieve, but in vain.
> > >
> > > I have a report that has to be grouped by "Day" - I have hourly data for a
> > > day which can span for several days based on the report start and end time.
> > > For example if the report duration is 10/01/2004 to 10/05/2004, then I must
> > > see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> > > summary statistics for that day towards the bottom of the page. And then
> > > 10/02/2004 on the next page and so on and so forth.
> > >
> > > I have 2 matrices - one for detailed data for the day and another one for
> > > the summary (sum, avg, min, max) for the same day. I am trying to group by
> > > "Year", "Month" and "Day" but this is not working. Can anyone please let me
> > > know how to make this work? Any help will be highly appreciated.
> > >
> > > Thanks
This is what I am trying to achieve, but in vain.
I have a report that has to be grouped by "Day" - I have hourly data for a
day which can span for several days based on the report start and end time.
For example if the report duration is 10/01/2004 to 10/05/2004, then I must
see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
summary statistics for that day towards the bottom of the page. And then
10/02/2004 on the next page and so on and so forth.
I have 2 matrices - one for detailed data for the day and another one for
the summary (sum, avg, min, max) for the same day. I am trying to group by
"Year", "Month" and "Day" but this is not working. Can anyone please let me
know how to make this work? Any help will be highly appreciated.
ThanksCan anyone please help, I am stuck.
"kmp" <kmp@.discussions.microsoft.com> wrote in message
news:3356ECAC-AB1E-4FB9-A8A2-7A424C687B10@.microsoft.com...
> Hi,
> This is what I am trying to achieve, but in vain.
> I have a report that has to be grouped by "Day" - I have hourly data for a
> day which can span for several days based on the report start and end
time.
> For example if the report duration is 10/01/2004 to 10/05/2004, then I
must
> see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> summary statistics for that day towards the bottom of the page. And then
> 10/02/2004 on the next page and so on and so forth.
> I have 2 matrices - one for detailed data for the day and another one for
> the summary (sum, avg, min, max) for the same day. I am trying to group by
> "Year", "Month" and "Day" but this is not working. Can anyone please let
me
> know how to make this work? Any help will be highly appreciated.
> Thanks|||Create a function in SQL server to strip off the time from the Datetime
field. Do this by coverting to to char(8) then back to datetime. Use this
function to give you the date only. Group by this function and put a page
break after that grouping level.
"kmp" wrote:
> Hi,
> This is what I am trying to achieve, but in vain.
> I have a report that has to be grouped by "Day" - I have hourly data for a
> day which can span for several days based on the report start and end time.
> For example if the report duration is 10/01/2004 to 10/05/2004, then I must
> see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> summary statistics for that day towards the bottom of the page. And then
> 10/02/2004 on the next page and so on and so forth.
> I have 2 matrices - one for detailed data for the day and another one for
> the summary (sum, avg, min, max) for the same day. I am trying to group by
> "Year", "Month" and "Day" but this is not working. Can anyone please let me
> know how to make this work? Any help will be highly appreciated.
> Thanks|||Thanks for the reply - this worked. But I have another problem. When I page
break per day, I would also like to see the summary statistics towards the
bottom of the page per day.
Since I have 2 matrices - one for detailed data (where I page break per day
basis) and another one for the summary statistics (sum, min, max etc.), when
I do a page break on the first matrix, I am not able to get the second matrix
on the same page (because of the page break on the first one). Is there
anyway I can see both the matrices on one page? Any help will be appreciated.
"johnE" wrote:
> Create a function in SQL server to strip off the time from the Datetime
> field. Do this by coverting to to char(8) then back to datetime. Use this
> function to give you the date only. Group by this function and put a page
> break after that grouping level.
> "kmp" wrote:
> > Hi,
> > This is what I am trying to achieve, but in vain.
> >
> > I have a report that has to be grouped by "Day" - I have hourly data for a
> > day which can span for several days based on the report start and end time.
> > For example if the report duration is 10/01/2004 to 10/05/2004, then I must
> > see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> > summary statistics for that day towards the bottom of the page. And then
> > 10/02/2004 on the next page and so on and so forth.
> >
> > I have 2 matrices - one for detailed data for the day and another one for
> > the summary (sum, avg, min, max) for the same day. I am trying to group by
> > "Year", "Month" and "Day" but this is not working. Can anyone please let me
> > know how to make this work? Any help will be highly appreciated.
> >
> > Thanks|||Can someone help me with my problem as posted below? I really appreciate the
help. Thanks.
"kmp" wrote:
> Thanks for the reply - this worked. But I have another problem. When I page
> break per day, I would also like to see the summary statistics towards the
> bottom of the page per day.
> Since I have 2 matrices - one for detailed data (where I page break per day
> basis) and another one for the summary statistics (sum, min, max etc.), when
> I do a page break on the first matrix, I am not able to get the second matrix
> on the same page (because of the page break on the first one). Is there
> anyway I can see both the matrices on one page? Any help will be appreciated.
> "johnE" wrote:
> > Create a function in SQL server to strip off the time from the Datetime
> > field. Do this by coverting to to char(8) then back to datetime. Use this
> > function to give you the date only. Group by this function and put a page
> > break after that grouping level.
> >
> > "kmp" wrote:
> >
> > > Hi,
> > > This is what I am trying to achieve, but in vain.
> > >
> > > I have a report that has to be grouped by "Day" - I have hourly data for a
> > > day which can span for several days based on the report start and end time.
> > > For example if the report duration is 10/01/2004 to 10/05/2004, then I must
> > > see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> > > summary statistics for that day towards the bottom of the page. And then
> > > 10/02/2004 on the next page and so on and so forth.
> > >
> > > I have 2 matrices - one for detailed data for the day and another one for
> > > the summary (sum, avg, min, max) for the same day. I am trying to group by
> > > "Year", "Month" and "Day" but this is not working. Can anyone please let me
> > > know how to make this work? Any help will be highly appreciated.
> > >
> > > Thanks|||Let me see if I understand this.
You have a report with two grouping levels let say by Product then by day so
you get the daily sales for the product but then you get a total for that
product. You want the total for the product to be on the same page as the
last days totals for that product
like this
Product A
Day 1
Order
Order
Total
Page Break
Day2
Order
Order
Total
Product A Total
Page Break
You may be able to achieve the results you are looking for by inserting a
group header for the Group by day level. set that to have a page break
before and set the visibility for the group header to hidden for the first
record of dataset.
"kmp" wrote:
> Thanks for the reply - this worked. But I have another problem. When I page
> break per day, I would also like to see the summary statistics towards the
> bottom of the page per day.
> Since I have 2 matrices - one for detailed data (where I page break per day
> basis) and another one for the summary statistics (sum, min, max etc.), when
> I do a page break on the first matrix, I am not able to get the second matrix
> on the same page (because of the page break on the first one). Is there
> anyway I can see both the matrices on one page? Any help will be appreciated.
> "johnE" wrote:
> > Create a function in SQL server to strip off the time from the Datetime
> > field. Do this by coverting to to char(8) then back to datetime. Use this
> > function to give you the date only. Group by this function and put a page
> > break after that grouping level.
> >
> > "kmp" wrote:
> >
> > > Hi,
> > > This is what I am trying to achieve, but in vain.
> > >
> > > I have a report that has to be grouped by "Day" - I have hourly data for a
> > > day which can span for several days based on the report start and end time.
> > > For example if the report duration is 10/01/2004 to 10/05/2004, then I must
> > > see 10/01/2004 day's worth of data (hour 0 thro 23) on a single page with
> > > summary statistics for that day towards the bottom of the page. And then
> > > 10/02/2004 on the next page and so on and so forth.
> > >
> > > I have 2 matrices - one for detailed data for the day and another one for
> > > the summary (sum, avg, min, max) for the same day. I am trying to group by
> > > "Year", "Month" and "Day" but this is not working. Can anyone please let me
> > > know how to make this work? Any help will be highly appreciated.
> > >
> > > Thanks
Subscribe to:
Posts (Atom)