May 19, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...CAML query inluding calculated column, sort and limit the number of records sorted and retrievedCAML query inluding calculated column, sort and limit the number of records sorted and retrieved
Previous Previous
 
Next Next
New Post
 3/12/2008 7:40 PM
 
Hi,

I have to create a report [in Reporting Services] against a datasource of type Enesys SharePoint Lists based on a CAML query. The CAML query needs to include a calculated column, be it Calc, as the sum of 3 other numeric columns. Also I have to sort the retrieved rows  after the Calc column and other columns. After this I have to limit the number of [sorted] records retrieved to 10 or 15.

Here are the questions:

1. is it or is not possible to have calculated columns in the select list?
2. if yes is it possible to sort the retrieved rows after the calculated column and other columns?
3. Is it or is not possible  to restrict, on the fly, the number of retrieved and sorted rows to a given limit, ie 10 - 15?

If all this is possible I'd appreciate wether you'll provide some clear examples.

Thanks in advance

Norica Traicu
New Post
 3/13/2008 12:23 AM
 

Hi,

For having a calculated column, you have basically 2 options:

Though there are several option, to make it simple, i would recommend sorting at the report level. Please see the following link: http://technet.microsoft.com/en-us/library/ms170712.aspx.

To limit the number of rows once it has been sorted as you, you may use the RowNumber() expression with reporting services. Once you are there, I could help you further.

I would recommend that you get some experience on using Reporting Services report designer. Many documentation and tutorial are available.

Please note that we will probably include a SQL Engine into Enesys RS Data Extension next major version so that those kind of manipulation will be easily be done at the query level without necessarily relying on Reporting Services features.

Regards,


Frederic LATOUR
ENESYS
Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...CAML query inluding calculated column, sort and limit the number of records sorted and retrievedCAML query inluding calculated column, sort and limit the number of records sorted and retrieved

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement