SSRS Hide duplicate columns in tandem - duplicates

Data Example
**Row Location Column Location Other Location**
1.28 A 02-120
1.28 A 02-121
1.28 A 02-211
1.28 B 02-213
1.28 B 02-320
1.28 B 02-203
1.28 B 02-201
1.28 C 02-314
I want to duplicate hidden for Row and Column location except when either row or column location changes
EXAMPLE:
**Row Location Column Location Other Location**
1.28 A 02-120
02-121
02-211
1.28 B 02-213
02-320
02-203
02-201
1.29 B 02-314

You need to setup groups in your table object. There are lots of information if you google.
Below is an example. You need to group by Row Location and Column Location.
You will Notice Row Groups. To add group you need to right mouse click on Detail in Row Groups and a menu will pop up to add.
Once you added the Group you can right mouse click and get the properties to display (see below).
You will need to group by your Row Location and Column Location.

Related

Google Sheet - How to create a link to a cell, which will also update the destination cell value when clicked?

I am building a dashboard on google sheet for the first time.
On tab 'Restaurants', I have summed sales grouped by restaurant names
restaurant_name
sales
A
100
B
250
On tab 'Orders' are dimensions and metrics at order level
restaurant_name
order_id
A
123
A
456
B
123
B
456
The cell A1 in 'Orders' allows to filter orders from one specific restaurant by inputing the restaurant name.
I would like to add a column in the 'Restaurants' tab with links directing to 'Orders'!A1 and updating A1 value with the according restaurant_name (A or B).
restaurant_name
sales
link
A
100
orders_detail(link)
B
250
orders_detail(link)
Ideally I am looking for a no code solution which allow me to add a parameter to the A1 cell link
https://docs.google.com/spreadsheets/d/ABCDqHgy_y7RqBE-kdRkwmg/edit#gid=999&range=A1*&new_value=B2*

How to remove repeated headers in ssrs 2008

I have got a table in ssrs 2008 like that:
Replacement
Location Date
Total Missing
X 100 20
Location Date
Total Missing
Y 200 50
Location Date
Total Missing
Z 300 80
I want to get rid of the repeats of titles but I could not manage it. I check Tablix properties and see "Repeat header..." and "Keep header..." options are all unchecked. Note that the table is grouped by Row:Location and Column:Date.
How can I remove repeated headers?
I want something like:
Replacement
Location Date
Total Missing
X 100 20
Y 200 50
Z 300 80
I appreciate for helps.
The group by Location appears to be on two rows of data, first row contains the title "Location" and the second row contains the expression =Location.
The group by Location needs to be on one row without the title in the grouping as denoted by the grouping handle.

How to add dynamic range to database (store the ranges in a table)

Table (CostTitle)
Id_ _costTitle_
1 A
2 B
3 C
4 D
5 E
6 F
A Refers numbers between 0-99
B Refers numbers between 100-199
C Refers numbers between 200-299
D Refers numbers between 300-399
E Refers numbers between 400-499
F Refers numbers between 500-599
costCode will be base on costTitle's refers numbers
Table (CostCode)
Id_ _costTitle_ _costCode_ _costProductTitle_
1 A 12 productX
2 B 111 productY
3 B 142 productZ
4 C 201 productK
5 F 511 productL
6 F 582 productM
I am trying to add product and assign dynamically cost code.
Thanks for advance
I suppose you want to store the ranges in a table. So you need a BEFORE INSERT trigger, which sets new.costTitle. Triggers are explained here:
http://dev.mysql.com/doc/refman/5.6/en/create-trigger.html
MariaDB offers an alternative: dynamic columns. However, because of the limits of this feature, you cannot store the ranges in a different table. You will need to hardcode the ranges in the virtual column definition, which doesn't seem to me a great idea (but you decide, of course).
https://mariadb.com/kb/en/mariadb/virtual-computed-columns/

ClosedXML Outline

I am trying to create a Group in the exported Excel Workbook using OpenXML.
My source data table looks like this:
Row State Product Sales
1 NY A 100
2 NY A 200
3 NY B 300
4 CA A 100
5 CA A 200
6 CA B 300
I would like to create an outline by State and then Product with a subtotal on each group
I tried
ws.Outline.SummaryVLocation = XLOutlineSummaryVLocation.Top;
ws.Rows(1, 3).Group(); // Create an outline (level 2) for rows 1-4
ws.Rows(4, 6).Group();
But it's not giving me what I want, and I don't see an option to add the subtotals.
How can I achieve this?
The code example in the documentation which you use is either outdated or just wrong.
If you want to group rows 2 to 4 you need to use the code ws.Rows(3, 4).Group(); (see picture). This is consistent with Excel itself, there you have to select only rows 3 and 4 before clicking the group button to get the same result.
When you try to group rows 1 to 3 like in your code you group them all under row 0 which leads to errors since there is no row 0.
You can control this behaviour to some extend with the XLOutlineSummaryVLocation property. If you use Bottom instead of top you use the top two rows to group rows 2 to 4: ws.Rows(2, 3).Group();
With all this said two more points:
You need to use Excel row numbers not the numbers in your column "Row".
All this grouping and collapsing is only for display purposes. To sum up the sales numbers you have to use the subtotal functions in Excel (which I find rather confusing and unhelpful in this case) or add columns and results directly in C#.
Using this code should lead to your desired result (see picture below):
ws.Outline.SummaryVLocation = XLOutlineSummaryVLocation.Top;
ws.Cell(1, 5).SetValue("Product subtotals");
ws.Cell(1, 6).SetValue("State subtotals");
ws.Rows(3, 4).Group(); // group rows 2 to 4 (state NY), outline level 1
ws.Cell(2, 6).SetFormulaA1("=SUM(D2:D4)"); // subtotal for all NY sales
ws.Row(3).Group(); // group rows 2 and 3 (product A), outline level 2
ws.Cell(2, 5).SetFormulaA1("=SUM(D2:D3)"); // subtotal for all NY, product A sales
ws.Cell(4, 5).SetFormulaA1("=SUM(D4)"); // subtotal for all NY, product B sales
ws.Rows(6, 7).Group(); // group rows 5 to 7 (state CA), outline level 1
ws.Row(6).Group(); // group rows 5 and 6 (product A), outline level 2
ws.CollapseRows(2); // collapse group level 2 (products)

Define Column Values and relevant values Populate data Field in SSRS

I am Trying to do a Matrix Style Report , where the Rows get Populated from the Query.
Can we Give Values in the Column Field(These are Row Values from the Query) and the data gets Populated from the Query itself.
Why I want to do this is, the query does not show the row if the Value that I want to display in the column field on the report is Null. And Hence in return cannot Display it on the report if the Query itself Does not have the value.
Now there are No values for any member in the Group, the transfers field will not show up. But it has show with a value 0 in all the columns with Row Members.
EDIT:
My query returns a table like this . Parameter: 'YEAR'
Group Group_Items EMP_ID Status
Group1 Alpha 1 Continuing
Group1 Alpha 2 Continuing
Group1 Alpha 6 Continuing
Group1 Beta 8 First Time
Group1 Beta 11 Continuing
Group1 Gamma 14 First Time
Group1 Gammma 15 First Time
Group1 Gamma 10 First Time
Group1 Zeta 12 Continuing
Group1 Zeta 23 Continuing
Group1 Zeta 44 Continuing
Group1 Zeta 56 First Time
So I want to know how we can put this in the BI and count(Emp_ID) according to First Time, Transfer and Continuing. There is transfer value sometimes , but have to show it all the time and if no values come up we have to show it as 0
You could check for NULL/non-existent values in the transfer cell by using an expression like:
=IIf(IsNothing(Sum(Fields!Transfer.Value))
, 0
, Sum(Fields!Transfer.Value))
This will display 0 if there is are no values in that row/group or they're all NULL.
More logic can be added to the first section of the IIf statement if required.