ADD Total is Greyed Out In SSRS Tablix - reporting-services

I am trying to add Totals to at the end for many columns,but when i right click on the box Add Total is Greyed out,How can i enable ADD Totals?
thanks in advance

At the extreme bottom in visual studios you have your groups listed.
Right click on the group name for which you want to add the total. Go to Add Total -> After .
Refer to the image below :

If "Add Total" is greyed out, right click on your package and choose "View Code."
Search for the field you want to total.
In my case this field was defined as
<rd:UserDefined>true</rd:UserDefined>
even though the underlying datatype was an int.
Replaced this with
<rd:TypeName>System.Int32</rd:TypeName>
The "Add Total" option will be enabled.

Related

How to display group by(department) value outside the table in ssrs?

I am working on ssrs can someone tell me How to display group by(department) value outside the table in ssrs when page break is set on groups ?
Actually i want to show the department name on top of S.no,Computer etc row which is set to Repeat on new Page:
in image i want to display PROJECT MANAGEMENT on top of table and that name should be changed accordingly(department vice) when navigate to next page.
Make sure the department name is in your table somewhere, you can hide it if you don't want to see it in the output. Make a note of the TextBox name by looking at it's properties (let's say it's called DeptName)
Then in the page header, add a textbox and set it's expression to reference the textbox in the main part of the report using it's name (in our case DeptName) like this.
=ReportItems!DeptName.Value
try something like this
Insert your table in List component then set list GROUP BY "Project Management" Column
Set Tablix Use GROUP BY "Project Management" Column
See image below
But I'm not sure Project Management column are repeat on other page
Hope it Help.

How can I prevent the horizontal alienation of TextBoxes on generated report (SSRS)?

I set up my TextBoxes to be close together:
Yet when the report is generated, they are barely in the same zip code:
How can I prevent this AWOListic behavior of the ExecutionTime (and, to a lesser extent, UserID) TextBoxes?
UPDATE
I'm sure the answer is correct, but getting it to work is another matter. When I right-click in the Textbox and select "", I am able to navigate to the Date format I want:
...but after I mash the "OK" button, I get:
So it's another case of non-intuitive/non-user-friendly software. I guess the Redmondians are standing in the bread line and can't afford to make it work as it should.
just use 1 text box, just right click inside textbox select "create placeholder"..

Filtering form results with a combo box in microsoft access

Ok so I've been trying to look for a solution to this since I'm new to access but can't find anything (seriously no one has experienced this problem?)
Here's the problem:
I'm trying to filter the data in my CustomerSearch form by last name using a combo box which includes all the last names in my Customer table.
Using an "After Update" event macro, I use the "ApplyFilter" action and input the "Where Condition" with the following lines with different results:
(1) [LastName]=[Forms]![CustomerSearch]![cboLastNameSearch]
--> gives me blank results
(2) [LastName]=[cboLastNameSearch]
--> a popup appears every time I use the combo box asking for a last name input, which defeats the purpose of making the combo box in the first place.
where cboLastNameSearch is the name of the combo box.
Could anyone please kindly explain why (1) doesn't work, and how to improve on (2) so the popup stops showing? Thanks in advance.
Try this:
"[LastName]='" & [Forms]![CustomerSearch]![cboLastNameSearch] & "'"

SSRS Print one row then detail

I have a report that has two sections of data. In a list component with textboxes I have Barcode, warehouse location, pallets. Then below this I have detail information in a tablix including Racklocation Use by date, Qty, Product, Description, PalletID, Customer Product and Weight. How do I print one barcode row then detail for that shipment, then page break? Then same again for next row? Thanks i'm really banging my head with this one!
Do you mean you just want there to be a page break after each of your packing slips? If so select the list, then at the bottom of the window where it says "Row Groups" right click the first group and go to "Group Properties". Finally, go to the "Page Breaks" window and click "Between each instance of a group" and then "Also at the end of a group". That should do it.
What i ended up doing was using the lookup function for EACH item I needed to lookup referencing unique value i.e. pickrouteID to then lookup what i needed. Example
=Lookup(Fields!.Value, Fields!.Value, Fields!.Value, "containing dataset")

Only allowing one Drilldown in SSRS

It took me hours of searching and putting together piecemeal parts to find the solution to this, so I figured I'd post it on here in the hopes of helping someone else.
The Problem: We need to display a report, with proper grouping and drilldowns. However, we should only allow one group to be drilled down at one time.
SSRS doesn't exactly have robust scripting options - for instance, you can't close other groups "on click" or anything like that. So how do you do it?
In My example i'm using the AdventureworksDW database. I want to have a dataset that includes the total sales for each group and region. My Stored Procedure looks something like this:
SELECT dst.SalesTerritoryGroup,
dst.SalesTerritoryRegion,
SUM(fis.SalesAmount) AS SaleTotal,
DATEPART(YEAR,fis.OrderDate) AS OrderYear
FROM [dbo].FactInternetSales AS fis
INNER JOIN [dbo].DimSalesTerritory AS dst
ON fis.SalesTerritoryKey = dst.SalesTerritoryKey
WHERE fis.OrderDate < #QueryEndDate
GROUP BY
dst.SalesTerritoryGroup,
dst.SalesTerritoryRegion,
DATEPART(YEAR,fis.OrderDate)
UNION ALL /*The ResellerSales table. Same info.*/
From there I added a table with two groups: SalesTerritoryRegion and its parent, SalesTerritoryGroup. I also added a column to the left INSIDE the SalesTerritoryGroup, with an X (this can also be an image if you'd like). This is the "Drilldown" button that we'll use.
Create a string parameter, mine was #ExpandedGroup. Set the Default to an empty string (so that all the groups start out collapsed). Right click on the SalesTerritoryRegion group, or whatever your subgroup is, and go to the visibility tab. Click "Show or Hide based on Expression" and enter something like this:
=iif(Parameters!ExpandedGroup.Value="" or
Fields!SalesTerritoryGroup.Value<>Parameters!ExpandedGroup.Value,True,False)
This statement means: If we haven't opened a dropdown, or if the dropdown isn't the one selected, set hidden to true. Otherwise, false.
Next click on your "X" column to the left of SalesTerritoryGroup or your supergroup. Right click to go to Textbox Properties. Click the action tab. From there select "Go to Report". When you specify a report, make the target itself (For instance, mine is Main). Then, add parameters to the report.
The most important here is ExpandedGroup. The name should be ExpandedGroup, but the value is not just [ExpandedGroup]. Instead, it's an expression:
=IIF(Fields!SalesTerritoryGroup.Value=Parameters!ExpandedGroup.Value,
"",
Fields!SalesTerritoryGroup.Value)
This expression says: If the Group is the same as the Expanded group, make ExpandedGroup an empty string when you load the report. Otherwise, send the TerritoryGroup value. Essentially, this will let us toggle on and off the drilldown (same as you would in the report if you had traditional drilldowns).
Note: Also be sure to pass other parameters! For instance, my query requires a date to exclude some transaction data. If you don't pass this parameter in the "Go to Report" action, then you'll have to enter it again when you DrillDown. This also means you can give yourself even more flexibility when you click a drilldown (changing a chart that's displayed etc.) which is what I'm doing for this project.
Hope it helps someone out! Of course, if there is a more elegant or simpler solution I'd absolutely love to hear it.