How to display all records in one page in crystal reports while using multiple detail section? - sql-server

In this below image i design a crystal report
the records are printing in eight pages.i have three details section one detail section i inserted sub report.anther two detail sections i inserted two different formats
i have written one store procedure as below.
out put is
i am not getting any idea solve this problem
please help me
Actually my problem is i have three tests in my project.i have to print three tests in three different pages with different formats In first test i have eight results i have to show eight results in one page.is there any solution give reply

You have to do grouping for all the detail section. And While grouping click on the keep group together.
Thus your problem is solved

Related

Snowflake Web UI - Query History - no colored breakdown of Bytes Scanned

I noticed a strange thing in Snowflake Web UI - see description below.
The History tab has a nice feature: colored breakdown of columns Duration, Bytes, Rows that show, for example, where results came from (Bytes).
The strange thing: the colored breakdown disappears (i.e. only numbers are shown) when I filter the view by USER, and set the value to myself (i.e. I'm exploring my own queries).
The coloring comes back for all other cases: either filter on anything other than USER, or specify a different User's queries.
Anybody else seen the same?

Using Google Sheets to split data from a column into different sheets

I work at a private international school which wastes a ton of paper. My goal is to reduce that by using google sheets to collect students lunch data from teachers, rather than writing it on paper weekly, then having someone input it all manually, then make separate sheets for each student manually.
I want to make this more efficient by using google sheets.
My google sheet 1 has all the students' data for a whole month with all their names and data in what I expect is a normal format. How can I use the google sheets split function to read the column with their names in, and separate data with the same name into its separate sheet?
Screenshot of preliminary data
The picture shows the student's name repeating which will happen 4 or 5 times, depending on the month. Rather than manually separating them, I imagine there is a script I can use on google sheets to automatically read each repeated name and separate it into its own sheets.
How do I do this?
The information you provide in fact has some opportunities but, I generate a data sheet for you to verify, I believe it represents the data you have.
In regard to your problem you can use a wide range of solutions one common is the:
Filter Formula
Here is some information on how to use it.
So finally here is a proposed answer sample with this formula so you can check the full configuration of the solution.
You can also just copy paste the data you have in to it, if it has the same structure and it will dynamically adapt to your information. You can also copy this spreadsheet to make it private to you on File> Make a copy.
Other formulas you can use is QUERY or VLOOKUP
If you need further assistance you can contact one of stack overflow members through Stack overflow or you can join a social group like this facebook group where we attend this kind of questions.

Is it possible to use LookupSet/Lookup with Running Value in SSRS

This is my first question on StackOverflow so apologies if there is not enough appropriate information.
Rather than having four different tables that I try to position 'just so' so that they look like one table, I was hoping to have all of my data in one visible table and hide the rest.
To do this I was trying to use LookupSet/Lookup with Running Value (I need a cumulative figure for each fortnight from a start date).
I have used the following code which supplies me with figures in the table - however the figures seem to be nearly double what they actually are.
=Lookup(Fields!StartFortnightDate.Value, Fields!StartFortnightDate.Value,
Fields!RowIdentifier.Value, "KPI004")
Is it possible to use Lookup with RunningValue? It won't let me use ReportItems either its obviously only pulling from the first box and therefore is just repeating the first figure again and again.
Any help, guidance, or even a simple "it's not possible" would be appreciated.
Edited to add more information as suggested:
It's difficult to add example data without worrying about data protection etc.
Report design is currently:
ReportDesign
Each table has it's own dataset - I'm trying to get them all into one table.
Lets say the first dataset is number of cars sold in each fortnight.
The second dataset (table) is number of meetings held.
The third dataset is number of days weather was sunny/cloudy/rainy etc.
(This obviously isn't what the datasets are, but I'm trying to show that they don't actually relate to each other that much and therefore can't all be in the same script)
All datasets have a table of the fortnightly dates within that quarter, my hope was to get one table that showed the cumulative figures of each item even though they're not in the same dataset - the tables are all grouped by the StartOfFortnightDate.
The script =RunningValue(Fields!NumberOfFordCarsSold.Value, Count, Nothing) and similar works fine in the separate tables, however if I add a row to the top table and try to use RunningValue with Lookup it doesn't work.
When I used the script mentioned at the top (Lookup script) I get inflated figures (top row of this image) compared to the expected figures (bottom row of the image): IncorrectAndCorrectFigures
Apologies if this doesn't make sense, it's likely that my complete confusion in trying to find the answer is coming across in the question.
If the resulting datasets are all similar then why can you not combine them?
From the output they seem to be just Indicator & Date.
Add an extra column to indicate which set of data each row belongs to (Cars Meetings etc), this might help with grouping rows in the report.

Excel Scalability and Speed Issues (VBA, Array and Comboboxes)

Context
There are two excel.workbooks in the same location: database and dashboards. Whereas database.workbook has as many tabs as clients I manage, dashboard.workbook has as many tabs as reports are required.
Navigation across report's (dashboard.worksheets) it's pretty simple. On each report there's a combobox that contains every dashboard.worksheets' names. Selecting any report on that combobox hides the current worksheet/report and open the desired one.
In each tab/report there is a second combobox that allows you to select a client, populating the report with the selected client's data.
The report
The information in the database looks like this:
Date|Device|Group|Subgroup|metric1|metric2|metric3|etc.
The information displayed in the report (in the one I'm having issues with) looks like this:
Group|metric1|2|3|...
The issues
1) Currently the group is displayed like this:
=IFERROR(LOOKUP(2,1/(COUNTIF($C$17:C18,IF($C$8="Goldsmiths",Client1_GroupName,IF($C$8="Client2",Client2_GroupName,IF($C$8="Client3",Client3_GroupName,IF($C$8="Client4",Client4_GroupName)))))=0),IF($C$8="Client1",Client1_GroupName,IF($C$8="Client2",Client2_GroupName,IF($C$8="Client3",Z2,Client3_GroupName($C$8="Client4",Client4_GroupName))))),"")
The combobox prints its value into Range("C8"). Through a nested ifs structure the formula identifies the client and then pulls a unique list of groups from the selected client tab (from database.workbook).
One issue is that it is very messy and hard to escalate (the more clients I get, its complexity growth exponentially). I bet there are easiest ways to do it (maybe VBA?).
It can be quite slow, the more "groups" we get and more days recorded into the database, more slow it will get.
2) Pulling the data
Most of the data to pull can be done through array formulas like this one:
={SUM((Client1_GroupName=C20)*Metric1)}
It sums all the Metric1 for the group matching C20,C21,22,23 (in that c20:xx range we have the first formula pulling the Group list.
I haven't added the nested ifs yet. It's going to be a pain to do it across 5 more columns. Again very hard to escalate.
This can be terribly slow. It comes a point that changing client means waiting 2 or 3 minutes to process the array.
Conclusions
I guess what I'm seeking is some advice on how to face this issues, which essentially are: scalability and speed.

How to add Sub-Reports in Multi-Page SRSS Reports?

We are using SQL Server Reporting Services for our reports. We have a report that is comprised of several sub reports. For simplicity, let's say cars. And each car has it's own part list. A one-to-many relationship.
So on the Car report, there's all the car information - and a sub-report, the part list. This works fine for a single car as there is a single Car.ID, which can be passed as a parameter to filter the Part List by the specific car.
But, if there's several cars specified to the report, we want each car to be on it's own page. with it's own part list.
I've had a look around an am struggling to figure it out. The solution I'm looking at involves putting everything in a List control, adding a page break after each record. Then adding a row number to each item in the dataset, then matching page number and the row number up for the sub-report.
I figure there's got to be a simpler way to do this, that I've overlooked. Or if there isn't, how can I match up the Page Number and Row Number? I've tried using the Lookup function --
=Lookup(=Fields!Page.Value, =Globals!PageNumber, =Fields!ID.Value, "DataSet1")
However, this returns an error that the Globals!PageNumber variable is only available to the page header/footer sections.
Any help is greatly appreciated.
Never mind, I was being an idiot and completely over complicating it.
If anyone else find it useful, here's the steps.
Create your sub-reports, specifying the ID of the record as a parameter.
Create your main, encapsulating report.
Add a list control to the page, go to the Tablix properties and add a page break.
Add your sub-reports to the list control
Specify the value to the identity parameter, by using the fields collection - in this case:
=Fields!ID.Value
Test report, then sit back and don't think about how complicated I tried to make it.

Resources