Export ssrs report to excel in 1 sheet - excel

I have two tablix in ssrs. I want all the data in the first Tablix in sheet 1, but when I export my ssrs report to excel, it breaks it down to 10 sheets.The second tablix is on the 11th sheet, which i want to be the second sheet. I Added "a page break after" on the first tablix but it is still splitting up the data from the first tablix. How do i go about this?

There must be a Page Break on a Row or Column Group in the first table that is causing it to create pages for each Group.
Click on the table and click on the drop down by the Grouping for each Group at the bottom and go to the Group Properties.
Then go to the Page Break tab and make sure that the Page Break property box is unchecked.

Related

Merge two tables with some different headers in Excel formulas

I have a table in sheet a, that I want to merge with sheet b, and output on sheet c. Most of the column titles are the same but there are a few that are unique to a and to b. I want my output table to have every possible column title so that it can exist as a single table.
Please let me know if you know how to do this, or anything that can put me in the right direction. Very interested in not using Macros and using formulas.
Thanks
To merge two tables with formulas you can use either "Vlookup" or a combination of the "index" and "Match" functions. However, I prefer the method I did below Using power pivot.
If you want to use vlookup here is a good resource:
https://exceljet.net/excel-functions/excel-vlookup-function
Using Power Pivot:
You can merge 2 tables in excel using power pivot. It requires a bit of setup but it is not hard to do.
If you do not have power pivot you can get the add in by doing the following:
1.) Clicking on File on the top left > select "Options" on the bottom left
2.) From the pop up select the "Add-ins" section
3.) From the drop down on the bottom select "COM Add-ins" > click go
4.) Select the check box next to "Microsoft power pivot for excel"
5.) A new "Power Pivot" tab will appear on the ribbon
With That out of the way you first need to convert your tables into "Official excel tables" so you can merge them. To do this click anywhere onto the table and press CTRL+T. You have to do this for each table.
Next you need to click anywhere on one of your new tables and go to the data tab and select "From Table/Range"
Since there are two tables we just want to add the first table to our power pivot queries for now. In the next screen on the top left click on "Close and load to" >> then select "Only create connection".
We need to add the other table to power pivot as well but the second step is a bit different because we are going to merge the two tables.
1.) Like before click anywhere on the 2nd table and click on From Table/Range.
2.) This time when the power query editor comes up we want to select the merge "queries button" on the top
3.) From the merge window select the table that you want to join with and the click on the ID to join on from both tables. You may also want to update the join kind from the drop down list then click ok.
4.) After merging Your table will have a new column with a value of table, click on the little arrow icon next to the column header to expand it and select the fields that you want to display from table 2 and click OK. All the columns you selected will be added to the table. At this point you can rename the column names so they do not display something like Table2.Name
5.) Click close and load to from the top left, keep the first option "Table" , and click ok. You should have your new table in a new worksheet now.

Hiding Tablix in SSRS report using Expressions

I have a report in which there are two tables from the same dataset, and i want to hide second table when the report runs at first, then when i click on the Product id i want to display the second table
Anyone help?enter image description here
I'm not sure you can do this by clicking on a textbox within a table as it might be out of scope, but if your first tablix is just a single line then you could just use a series of textboxes to emulate the 1st tablix.
Once you have done this, set the ToggleItem property of the 2nd tablix to be the name of the textbox that contains the ProductID.
I've just tested this and it works as expected.
...and if that does not help...
If your 1st tablix shows mutliple rows, you might want to consider adding a second row to it with the columns you require from your 2nd tablix and setting the toggleitem property of the 2nd row.

Removing PivotTable label that appears when 2 items in "Value" area

I am trying to create a PivotTable.
However I am getting an extra row appearing above my titles with the word "Values" in one of the cells. This naturally comes from the "COLUMNS" area, as a field is automatically appearing in it.
This only appears when I have 2 or more fields in the "VALUES" area. With 1 it is not present.
I don't want it and cant see a way of getting rid of it. Deleting it also removes the two fields in the "VALUES" area.
If you right click the pivot table and select "Pivot Table Options...", then in "Display" tab of the new window there is checker for "Show the Values row". Uncheck it and is should disappear.

Excel: Return the last entries from a list of entries

Please excuse me for the wording of the title. Not sure exactly how to word this so it's probably best to just show.
I have a list that looks like this
Name Date Updated
==== ===========
Item 1 1/1/2015
Item 2 1/2/2015
Item 3 1/3/2015
Item 2 1/4/2015
Item 3 1/5/2015
Item 1 1/6/2015
This will be an ongoing list. As items are updated they will be entered in like this. I would like to create a second sheet that gives me the last date that each item was updated. So the result based on the above table would look like this.
Name Date Updated
==== ===========
Item 1 1/6/2015
Item 2 1/4/2015
Item 3 1/5/2015
I have found a few solutions on the web that work when I first input the formula (Links below), BUT when I add more entries in the first table the results wont update or they'll show the wrong data.
Links:
http://blog.contextures.com/archives/2014/02/04/find-last-item-in-group-with-index-match/
http://www.get-digital-help.com/2014/02/07/find-last-matching-value-in-an-unsorted-list/
Thanks in advance for any help.
You can simply omit the numbers in the formula to get the whole column:
=INDEX($C:$C,MAX(($E$3=$B:$B)*MATCH(ROW($B:$B),ROW($B:$B))))
(following the formula from your second link).
You can record a macro as you do it manually one time. Then assign that macro to a button. Then click the button anytime you need the sheet updated.
Steps:
Start on a sheet other than the one with the data. Explanation in #3 below.
Start recording your macro by going to View > Macros > Record Macro. In the bottom left you'll now see a square stop button for when you want to stop recording.
Select the sheet with the data. This way the macro will always remember to select the right sheet regardless of where you are.
Select the two-column range of cells that has your data, then continue selecting a few hundred rows down, or at least well beyond where you think your data will eventually go down to.
Copy
Select the sheet where you want to have the summarized data.
Paste
Sort by name (ascending) and date (descending) all at once (rather than two operations). Do this by going to the Data tab in the ribbon and selecting the white and blue sort button that has two A's and two Z's and says "Sort".
With this pasted and sorted range still selected, remove duplicates in the name column. To do this, do not change the selection. Go to the Data tab and select Remove Duplicates.
Now your items will appear once and the date will be the most recent date.
Click the "stop recording" square blue button in the bottom left to stop recording your Macro.
You can assign this macro to a button or to a shortcut. To add a button you need to show the developer tab and then draw the button using one of the options on the developer tab. I can't remember offhand how to show the developer tab. Once you have a button, right click and assign the macro to the button.
13A. If you want to customize the macro, click ALT+F11 to get to the visual basic editor. Double click on one of the things named something like "module" on the left and you can edit your the range in your macro, for example if your data suddenly goes down 100 more rows than what you planned and you want the macro to cover it. Save with CTRL+S. The next time you run your macro, it will reflect these changes.
13B. View > Macros to edit your macro if you want to assign a shortcut key to it instead of adding a button.
Try all this with a copy of your spreadsheet so that you don't delete data by accident.
Does it work for you?
You could easily do this with a Pivot Table. Drag Item to Rows area and Dates to the Values area. Then format the values as Date, and select to return Max.

Word - Excel table caption

I have added a table from Excel to Word. The table is too large for one page and is divided into two pages. Now when I add a caption, this is only displayed at the top of page 1, but nothing on page 2. How can I edit it so I can put something like
"Page1"
Table1: Sales
(table)
*Page2*
**++Table1: Sales (continued)++**
(table continues)
Its a bit of a cludge, but you can put the caption in the first row of the table itself, and turn on "Repeat as header row at top of each page".
Merge all cells and turn off borders in the first row, caption then looks like its outside the table.
Easy way to get the caption into the table is to insert it normally, then cut and paste it into the table.
Use Headers inplace of caption. Use a different header for the first page and yet another one for the 2nd page. Use page numbers in the format "page x of y" in the fotter to make it more accesible.
You may also make the single table as two tables. If your single table is too large, to fit in one page vertically, word will put it in 2 or more pages. This however will not result in the repeating of the caption or even the column headers. This obtion is however available in Excel where you go to page setup and select the rows and columns to repeat at the top.
When u break you single table into two tables, one for each page you can customize the caption for each table seperately. You can also than repeat the column headers.

Resources