MS Report builder how to select only the required cells? - reporting-services

How do I select only cells? For example, if we choose only B2 and B6, let's add and subtract each other because I can only go through all columns, for example A2,A6.
B2,B6
C2,C6 How do we select only cell B?

Related

SSIS Visual Studio select only some rows based on length of expression

I need to find a transformation which will help me select only the red rows from this Excel table in SSIS Visual Studio (2017).
The output table is supposed to have 2 columns, 14 rows.
In the first column, the rows I want to select always have LEN=5 and start with CZ0 (the 2 following numbers differ)... and then I need to add the 5th column with corresponding rows.
I tried Derived Column, Conditional Split, Merge Join etc. in various combinations but nothing seems to work.
Table to select from

How to get total for top n rows (not for whole dataset) in SSRS 2017

I need to get SUM for TOP 10 rows only by counting unique claim numbers. Not for the whole dataset.
for that in a group properties I set Filter with expression:
But the total sum reflected for the whole dataset, not for top 10.
I tried using RunningValue finction, but no success:
https://mkncreations.com/site/2012/05/filter-top-n-group-totals/
What would be the way to capture sum for only top 10 rows?
Create row inside the group
2.Enter expression referencing dataset name (not group name):
=RunningValue(Fields!IdemnityReserves.Value,SUM,"UnitedSpecialty")
Make this row invisible
Add total row
Enter expression in total row referencing cell created in step 2:
=reportitems!Textbox288.Value

Calling the contents of a cell inside a SUMIF function

I have a budgeting spreadsheet where I am trying to get the sum of cells in col A if the string in Col B is a certain keyword. For example, one of my formulas is =SUMIF(D13:D36,"Restaurant",C13:C36), so if any of cells in Col D are Restaurant, it takes the amount in Col C and adds them up. I have about 10 of the same formula, each with a unique string/keyword. This function works fine.
My problem is when I add a lot of entries and my columns get longer than the code specifies, I need to go into each formula separately and update the cells (eg, change C13:C36 to C13:C45, but 10 times).
If I enter "C13" into a cell, for this example T1, is it possible to call the contents in cell T1 within the SUMIF function? So the function would look something like =SUMIF(D13:D36,"Restaurant",CELL(T1):C36). I know the CELL function doesn't work here but is there something that could?
What I am trying to do is write the start and ending cells somewhere in my sheet then call them inside the SUMIF function, so if I need to change them later I only need to update 4 cells rather than 10+.
First as stated in the comments, there is no cost to using full columns:
=SUMIF(D:D,"Restaurant",C:C)
Which now it does not matter how large it gets.
excel
But if one wants to limit it using other cells, I would use INDEX, instead of INDIRECT as INDIRECT is volatile(This only works in Excel):
=SUMIF(INDEX(D:D,T1):INDEX(D:D,T2),"Restaurant",INDEX(C:C,T1):INDEX(C:C,T2))
Where Cell T1 holds the start row and T2 holds the end row.
you could use simple QUERY like:
=QUERY({C13:D}, "select Col2, sum(Col1)
where Col2 matches 'Restaurant'
group by Col2
label sum(Col1)''", 0)
or for the whole group:
=QUERY({C13:D}, "select Col2, sum(Col1)
where Col2 is not null
group by Col2
label sum(Col1)''", 0)

SUM of same data in access report based on 2 column

How can I count how many rows have same data in 2 columns on an access report?
This report is always changing based on selections that are made by the user in a combo box and a list box. I want to do the coding in the report. is it possible?
I'm assuming you are looking for rows that have duplicate data across columns 1 and 2. So if in the first row column1 = a and column2 = b, and in another row column1 = a and column2 = b, then we have a duplicate row regardless of other columns. We have found 1 duplicate row.
Access has a find duplicates wizard under the create- query wizard tabs. Playing around with the wizard I got a count of rows with the same data. we subtract 1 to get the number of duplicate rows. Then I had to go to the sql pane of the designer to quickly wrap that query in a sum to get SumDuplicates. The resulting sql which give the total number of duplicate rows is:
SELECT Sum(Duplicates) as SumDuplicates
FROM
(
SELECT Count([column1])-1 AS Duplicates
FROM Table1
GROUP BY Table1.column1, Table1.column2
HAVING (((Count(Table1.column1))>1) AND ((Count(Table1.column2))>1))
);
Adust column and table names to fit your database structure

SSRS sum values by different group and merge cells

I got a sum Table 1 from a dataset, grouped by a parent Group 1 and a child group 2.For C, it sums values for different Sites.
The table I really want is to merge the SumValue under one column and re-name the group, e.g., C1 & C2 instead of Site-C1 & Site-C2.
I have tried to rename the Group 2 from Site_C1 and Site_C2 to C1 and C2, but it still splits to different columns:
Thank you for your help in advance.
It is similar to a question you posted before. As I said in that moment you can use an expression to conditionally set the grouping settings in your matrix. Add a matrix and add the Group 1 to Column Groups
In the Group properties / Group on put this expression:
=IIF(
Fields!Group.Value="C",
RIGHT(Fields!Subgroup2.Value,2),
Fields!Group.Value
)
Note Subgroup2 is Group 2 in your case.
Put the same expression on the header (the selected cell in the screenshot). It will preview the following matrix:
Let me know if this helps.
I would add one ore more calculated field to the dataset. There you can add the values of the relevant columns like this:
=IIF(IsNothing(Fields!C10.Value), 0,Fields!C10.Value)
+ IIF(IsNothing(Fields!C11.Value), 0,Fields!C11.Value)
+ IIF(IsNothing(Fields!C11.Value), 0,Fields!C12.Value)
In your table, don't bind a column to C10, C11.. but bind it to the calculated field.