Thursday, March 22, 2012
Duplicate display of values in the Details section
i have a peculiar problem, i am passing a query from VB 6.0 to crystal reports to revieve the data i want and i am successful in doing that. But the problem is, it is
duplicating the output, i'm seeking for. it duplicates when the output is places in the Details section but when i place it in the Header section then there is no duplication.
can any one please tell me why?
thanx in advance.......
number3I hope I've understood the question correctly...
How many rows is your query returning? The details section is the only section that creates a new section for every row returned by the query. If you drag the field into the header you are only going to get the value from the first row. This is how crystal is supposed to work.
If you need a second details section (from another result set), you need to look at placing a subreport in the header.|||you need to run your SQL in a database viewer tool. possibly you have linked some tables together but not put a criteria in the select expert..
you CAN choose "select distinct records" on the database menu, but this will make the report run more slowly. you should really fix up your sql so it doesnt return you duplicatessql
Monday, March 19, 2012
Dummy dimension for passing parameters
Hi,
I'm just having a little problem... I have a calculation, which is a non-trivial formula. This needs input from some dimensions (no problem with that...) and some information, which is independant from the data itself. The idea is to have something like a dimension but which is not connected to the data itself. You can't slice anything using it, it's just used to provide some input for the formula. Just imagine you have some amounts and you want to display the interests for them. The interests are nothing from the cube, they just are needed as input for the formula to calculate the interests. In the cube you only have the amount. Sure, you can add different measures for each interest rate you need, but this might be quite a pain...
Any idea?
Thomas,
You might be able to get what you want by using the same method as was outlined in an article on building a dimension for "cell annotations". Here is the link:
http://www.sqlserveranalysisservices.com/OLAPPapers/Cell%20Annotations%20in%20AS2005v1.htm
The idea is that you have a dimension table that has a compound key made up of the key values that identify a cell in the cube and then the additional attributes can be comments or a formula or whatever you want. You can then retrieve information from the dimension using the script as outlined in the article. The annotations dimension does not have to be related to any measure group.
HTH,
- Steve
|||Hi Thomas,
AS2005 supports dimensions which aren't connected to any measure group in your cube - just go to the Dimensions tab in the Cube Editor, click on the box at the intersection of the dimension and the measure group, and set the 'Relationship Type' property in the dropdown at the top of the dialog to 'No Relationship'. I've used this method several times to include dimensions in cubes which don't affect any of the regular measures but which are used in calculations to control how they behave.
Regards,
Chris
|||Chris,
thanks, works perfectly... It's just too easy to find out ;-)
Hope you had a good trip back from PASS... Your session helped me very much to do the custom rollups I asked you about... Seams to work, but some crasy things going on with the scopes... But that's something for later...
Sunday, February 19, 2012
DTS with ASP.NET Question
Hi There,
I need some help with passing global variabe: I try this way but does not work??
my code:
1 Dim DTSPack As New DTS.Package
2
3 Try
4
5 DTSPack.LoadFromSQLServer(SrName, UName, PWD, DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, "", "", "", PkgName)
6 DTSPack.GlobalVariables.Item("ExcelPath").Value = InpFileExcel.PostedFile.FileName.ToString
7 DTSPack.Execute()
8
9 Catch ExecDTS As Exception
10 lbl1.Text = ExecDTS.Message
11 End Try
Is it DTS (2000 ) or SSIS (2005). ?