How to create SSRS Pie chart with only 2 report items, or 2 values - reporting-services

How to create SSRS Pie chart with only 2 report items, or 2 values
the attached pic show the 2 expression report items which represents % complete, and the remaining of 100%
it asks for category, but there is no category, just 2 values
I tried to add 2 report items on values,
it keeps asking for the category
enter image description here

Related

Report Builder Query

How to display a table in separate pages for each multivalued parameters in Report Builder?
For example : If I have chosen 2 values of a parameter ,i.e., A and B , then the data table for parameter A should be displayed in first page and B should be displayed in the next page.

SSRS: Subtotal on filtered row

I've a custom Invoice that I'm building and it's divided up into four sections. I have built the data set so that it has the following data:
Code, Earnings, Rate, Cost, Total, Section
My stored procedure attaches a section based on criteria in within.
I placed a table on the report and added the first 4 data elements and then put a row visibility constraint on it based on section <> 1. Then I added three more tables to the report, each instead having the row visibility constraint <> 2,3,4.
All this displays properly.
Now in each table, i want to subtotal only the rows that are visible based on the filter. But when I try to do a sum, I get the "grand total" of all rows(unfiltered).
In the sample picture below you can see the 4 sections and the red circles show where =SUM(Fields!Total.Value) display the "grand total". The values should be:
17,887.55
0
32.48
22.86
Ideas?
Thanks,
PS It won't let me display the image of my report, so i have it here on my Microsoft Exchange OneDrive: http://1drv.ms/1HPXdgO
It seems like you have a row group on “wc code/Description”. You just need to pass scope (name of the row group) in your sum method. So your method will look like:
=SUM(Fields!Total.Value,””)
Here is what I did to solve the problem though it's a work around rather than actually doing what I wanted SSRS to do.
I added four more records to my stored procedure each one grouping by section and forcing a section 101, 102, 103, and 104 to correspond to sections 1, 2, 3, and 4. Then a fifth record is added to correspond to the grand total record and section 1000 is used to denote this.
Then I added 4 more tables(each having only one row) to the report each filtering on 101, 102, 103, and 104 respectively and the grand total table filtering on 1000.
This makes the report function as per my requirements. If anyone knows how to do it in the report designer, please reply and i'll mark as solution.

Grouping In RDLC/SSRS reports

I am new to SSRS/RDLC reports and I have to create a report . I have two data sets and in the two sets i have an year field I have to group it by year . First dataset 1 should come based on year after that dataset2 should come according to year.
Thanks in advance
It appears that you have two options:
A)Use the Lookup Function to link your two datasets together.
B)Use a subreport(Easier):
Create a three row tablix.
Row 1: Column Headers
Row 2: DataSet 1 Data
Row 3: A Subreport.
Create a second report for your second dataset. You can then add it into the report by following the steps below.
1.Go to insert > Subreport and click on the third row. This will insert the subreport into the tablix.
2.Highlight all the cells in row 3 and press merge.
3.Right click the Sub Report > Properties.
4.In the text box entitle 'Use this report as the subreport' enter the URL from the second report.

Multiple values to subreport [duplicate]

This question already has an answer here:
Link Subreport to matrix
(1 answer)
Closed 9 years ago.
I a matrix which shows count of Invoices (InvoiceID) with countries on rows and years on headers
Country 2001 2002
US 100 300
UK 200 400
IR 500 90
I have requirement of creating a subreport which shows Invoices details. When I click 100(US-2001) on my main report I have to show all the 100 Invoices. I tried this way: since I am doing count of InoviceID in matrix, I tried using Join(Fields!InvoiceID,", ") expression on the data text box action (Go to report). on the other side I created a subreport with multivalue parameter. but this approach dint work. Later I discovered that Join will not work rows as it expects only arrays.
later I used Join(LookupSet(1,1,Fields!InvoiceID.Value, "DatasetName")," / ") I could join the invoice ids but the problem is, this expression joins all the invoice ID in complete dataset. I just need US-2001 invoices to take to my subreport.
Your subreport should have two parameters:
#Year
#Country
With those two parameters, the subreport can find the clicked invoices. For example, if the following values are passed:
#Year = "2001"
#Country = "UK"
Then it should be able to find those "200" invoices and display their details.
If you base both the main report (that shows COUNT(InvoiceID) and the subreport (that shows Invoice.* details) on the same view, you're pretty safe in getting consistent results in both reports.
With the "Go to subreport" action you should be able to fill those parameters.

SSRS 2008 CSV Export appending column names to each row

I am trying to export CSV in SSRS 2008. I am getting my data, but on top of that the column names are being appended to the front of each row.
So if my report is this:
ColA ColB ColC
1 1 1
2 2 2
3 3 3
My CSV Export looks like this:
ColA,ColB,ColC,1,1,1
ColA,ColB,ColC,2,2,2
ColA,ColB,ColC,3,3,3
Where is this coming from? I have never had this issue in an SSRS report before.I have tried setting some of the output properties for these columns, but when I do that, I lose the entire column.
The .csv export will include each groups fields with rows underneath. Sounds like you have these labels in a group total row. If the labels are just in headers they shouldn't be included in the data of the report.
One indicator of header rows versus Group total rows are the icons on the left side of the tablix when a cell is selected. Header rows will have a blank gray square. Group Totals will have part of a bracket/parenthesis.