I've got a tablix in a report like the following:
Case Owner Contract
1 Dario 123
1 Mario 456
2 Giorgio 789
2 Carla 910
By clicking on any cell of column Case I want to pass all the parameters associated for column Owner.
For example if you clicked 1 the tablix should pass: Dario and Mario.
Related
I use a combobox to select value form a query. and make 2 columns in combobox.
the list will be
John 1
David 2
Michael 3
and expect when I selected John, will save 1 to table. but access save 0 to table, and if select David, will save 1. how can I save to Column 2 value to table?
I am using VS2010 with Microsoft Report Viewer v11.0.0.0. I would like to group my output data based on my Facility value. I managed it by adding a row group and set groupby value to [Facility]. It is working fine. And I want all the facility groups in a different page. I also managed it set "page break" as between each instance of group in the properties of added row group.
My problem is that I would like to hide the Facility column and instead of it use Facility: <<*Expression>> at the top of each page. Note that Facility: <<*Expr>> is repeating at the top of each page already. However, I couldnt manage to update the expression on each page. The expression is: Fields!Facility.Value. My current output is like below:
Facility: <<Expr>>> (repeating for each page, <<Expr>> is always X in my case! :( )
-------------Page 1 starts----------
Facility Name Age
X Jack 28
John 25
Jillian 18
-------------Page 1 ends & Page 2 starts-----------
Y Brian 19
-------------Page 2 ends & Page 3 starts-----------
Z Hossein 20
Z Brandon 30
-------------Page 3 ends-----------
What I want is:
----------Page 1 starts--------
Facility X
Name Age
Jack 28
John 25
Jillian 18
----------Page 1 ends & Page 2 starts-------
Facility Y
Name Age
Brian 19
----------Page 2 ends & Page 3 starts-------
Facility Z
Name
Hossein 20
Brandon 30
Any help would be so appreciated!
Based on the way you typed up your current output, you need to change it like this:
-------------Page 1 starts----------
Facility: <<Expr>>>
Facility Name Age
X Jack 28
John 25
Jillian 18
-------------Page 1 ends & Page 2 starts-----------
Facility: <<Expr>>>
Y Brian 19
-------------Page 2 ends & Page 3 starts-----------
Facility: <<Expr>>>
Z Hossein 20
Z Brandon 30
-------------Page 3 ends-----------
And then go into the Advanced view of the groups and hide the Column Group that contains the first visible column "Facility X / Facility Y / etc".
EDIT:
When you have your tablix selected, you should see something like this on the left side of it:
You need to insert your Facility: <<Expr>> row just above the row with the 3 little horizontal lines in it.
I've been making an award system in ms access but trying to use the if statement for 2 distinct parameters, i.e. in one class top 3 students get a different amount from what the top 3 students of another class might get. All the data of all classes is in one table.
See:
Student ID Class ID Average Rank Awards
1111 Form4 77.79166667 2
1189 Form4 105 1
1222 Form4 73.41666667 3
1234 Form4 69.95833333 4
1235 Form 3 77.16666667 3
1236 Form 3 72.875 4
1258 Form 3 82.54166667 1
1333 Form 3 77.25 2
1367 Form 2 56.54545455 4
1445 Form 2 75.66666667 2
1447 Form 2 75.72727273 1
1465 Form 2 74.18181818 3
1523 Form 1 76.18181818 3
1542 Form 1 75.51515152 4
1552 Form 1 79.03030303 2
1555 Form 1 79.63636364 1
at the awards column when creating a query the build formula I use i.e. IIf([Rank]=1,1100) gives all student IDs ranked 1 an award of 1100 but I want only form 1 student IDs to get 1100 and the others ranked 1st with different award values please assist.
I think you want something like:
IIF([ClassID] <> "Form 1", IIf([Rank]=1,500), IIf([Rank]=1,1100))
Obviously, you will have to edit the award amount since you didn't specify what you were giving, but the logic should hold true.
If this gets a bit more complicated, you can write a function in VBA (in any code module in the 'modules' section), and use it in the query:
ExpressionName: evaluateAward(ClassID, Rank)
In the function, you can then use nested select case statements. This may be much better for readability.
I have a SharePoint list with 5 options (questions). Each option has a dropdown with values 1-6. The user (employee of a company) needs to select an option, then select a value from the dropdown and hit Submit. The selected value is unique. In other words, if the user selects the value 1 for the first option, that value cannot be chosen again. Here's an example form -
Category Rank
------------------------------
1. Work/Life Balance 4
2. Compensation 2
3. Commute 3
4. Work 1
5. Development 5
After filling the form, the data looks likes this on the Sharepoint list -
Employee Manager Work/Life Compensation Commute Work Development
--------------------------------------------------------------------------------
1. Employee 1 Manager 1 2 4 3 1 5
2. Employee 2 Manager 3 1 3 4 5 2
3. Employee 3 Manager 1 5 4 2 3 1
4. Employee 4 Manager 2 4 1 5 2 3
I'm able to get the Y-axis (for Rank) on the report just fine. The X-axis needs to display each category grouped by each Manager. Here's a sample of how I want it to look like -
Each colored bar on the X-axis is a Manager. This is my first time with SSRS (2012) and I'm just not sure how to accomplish this. If this is not possible, will moving the data to a SQL table in a different layout help? Any help is greatly appreciated.
You could aggregate each employee's response into an average in your dataset (I'm assuming you know how to do this):
Averages (just pretend)
Manager Work/Life Compensation Commute Work Development
--------------------------------------------------------------------------------
1. Manager1 2 4 3 1 5
2. Manager3 1 3 4 5 2
3. Manager2 4 1 5 2 3
Then you can use the categories as you have, with the manager as the series field. Pretty sure that should achieve what you're looking for.
I have a data query that returns data in the following format:
Name Period Value
-----------------------------
Bob Jan 123
Bob Feb 456
Bob Mar 789
Tom Jan 321
Tom Feb 654
Tom Mar 987
Joe Jan 147
Joe Feb 258
Joe Mar 369
The different periods are constant between names, but will be different between executions of the report (ie, I may query a report on Jan/Feb/Mar now, or Apr/May/Jun later). I'm trying to put that into a table in my Reporting Services report, that would look something like this:
Name Jan Feb Mar
----------------------------
Bob 123 456 789
Tom 321 654 987
Joe 147 258 369
Can anyone point me to an example of doing something like that? I'm not even sure how to describe that 'rotation'(?) of the data. The columns should be dynamic based on what Period values are in the dataset.
Found the answer right after posting. Here's what I did.
Created a new Tablix. Dragged the Name field to the data row of the first column. Dragged the Value column to the data row of the second column. Dragged the Period field to the header row of the second column. That created a new group, and a new second level header column. I then copied the value from that new top header column to the header cell below it, and deleted the whole new header row. When asked whether to delete the row and associated groups, or just row, choose just the row. You should be left with a Row Group and two Column Groups, and it should render as intended.