Slicer data source connection in Excel 2013 - pivot-table

The issue is that I have various chart connected to various Slicers, but now i need to change the data connection of those chart. Once i change the data connection of the charts the slicer can't recognize the charts. Is it possible to change a slicer data source connection in Excel 2013 without deleting and creating the slicer all over again?

I use slicers frequently, on multiple Pivot tables. Sometimes after editing a table, I can't see the same number of Pivot tables available in Report Connections. Sounds similar to what you experience.
I learned that if you change the source area for one Pivot, you must change the source area for the other(s) as well. Same sheet, same start coordinate and same end coordinate.
Hope that helped.

Related

SSIS: Loading Fact Table ID's (Look up Dimension ID's) and measures data (from Excel file)

I'm having some trouble loading a fact table (Fact_Servicio) of a star schema I made in SQL Server, here the diagram:
All the ID's are identity columns.
Our case is the following: we have a Service Desk software which makes daily reports, and we want to use this data to make Business Intelligence, creating a Data Mart (Star Schema) in which we will populate all this data and then display it through Power BI.
Current problem: our issue is in the ETL process with SSIS. After creating the database in SQL Server, we made a SSIS Package to populate all the data from the excel file to this Star-Schema, we start by populating the dimensions, and after this we attempt to populate the fact table Fact_Servicio, but we don't know how exactly to take the ID's of each dimensions, join them with the fields we need to grab from the excel file(which are our previously defined measures) and then insert all in the fact table, we tried using the lookup transformation, but we cannot match any dimension ID with any column in the excel file because these ID's are created in the database and they just autogenerate per record. (The lookup task needs to match the columns we grabbed with columns in the excel file but in the Excel file we don't have any column for ID's, and we wouldn't like to create fields for it because we want to avoid manual tasks as much as possible, because this would be a repetitive task every time we export the data from the Service Desk Software). Here I'm putting some pictures of our SSIS Package structure:
Control Flow View:
Data Flow View of the Fact Table:
Look Up View:
Connection Tab
Columns Tab
Here is where we can't match columns because the ID's are created in the database.
Guys, if there is maybe other way to do this data load, then go ahead and propose how would you do it, otherwise what can we fix here or what transformations from the toolbox can we use. We were also thinking about loading the big excel file sheet to one big single table in SQL Server and work from there but we aren't sure if we would get advantages by doing this.
Thank you all!

Get data from SQL Server with Excel vba and modify some of them then update the table

I have a SQL Server table with some row (max 6000). With Excel vba, I can create a query and the results can show in a sheet.
Next I can change some record in the worksheet.
After all I can make a copy from the original sheet and after some cells changed I compare all the cells and I can update in the SQL Server database only the different cells.
My question is there a simpler way to do this?
Maybe after I leave a cells the vba compare the before/after content and make an update if required?
Thanks your opinions!
This is the VBA event you should use to catch if a cell is changed:
https://msdn.microsoft.com/en-us/vba/excel-vba/articles/worksheet-change-event-excel
If you don't want to spend much time on it, I have created an Excel AddIn which updates data from Excel to SQL Server. It is a commercial product, but if it is a one time job there is a fully functional 14-day trial which you can download from
https://sqlspreads.com

What would be the best method for building Dynamic Reports from my SQL DB Data?

I am building a simple database with about 6-7 tables. I will be setting a schedule to do a clean import from a .txt file.
I want to take this data and create a report, like I would do in an excel spreadsheet, convert it to a pdf and post it to our company intranet for those interested to access it.
I'm trying to think of the best way to build my report. Would I just use an excel spreadsheet with a direct connection to the database? Would I create some sort of console application (c/c#/vb/vb.net) that would query the db, generate the report in an excel file, convert to pdf and save?
I'm quite comfortable in these different languages, just not as experienced in the reporting services (although I do have a lot of experience working with EXCEL and VBA Macros) but I want to get into it (SSRS) and get familiar with it as I will be doing a lot of projects like this in the future. This is seems like an easy one to get my hands dirty with and learn and build off of.
Any insight or suggestions would be greatly appreciated.
Thanks so much!
My suggestion:
Create desired SQL queries to retrieve the data in desired form
Link these queries to your Excel sheet, perhaps directly in form of pivot tables for aggregation of results
Using VBA, you can easily create PDF from the data at the click of a button
The initial design will be time intensive, but after that, everything is automated and one just needs to press the button that creates the PDF.
How to link Access queries to your Excel file:
Data --> Get external Data
You can easily refresh all data whenever you open the Excelsheet by using the code below in the On Open event of the workbook:
ThisWorkbook.RefreshAll
If you need further clarification, do not hesitate to ask
If your end goal is to create a PDF that will be out on your intranet then I would create the report in SSRS. Then you can schedule it to run and output a PDF to your network location.
I've had good experiences using a pivot table in Excel which is a connected table to your SQL database.
In the connection parameters in Excel there is a field where you can define your SQL query, whether it be to call a stored procedure or just a simple SELECT statement.
The main reason I prefer a pivot table SQL connection rather than a normal table connection is because if you have a chart that references the connected table, the chart formatting will be reset when you refresh your connection (if you need to updated your report).
If I use a chart that references a pivot table (or a pivot chart) then the formatting is retained.

SSIS Get Columns of Two Different SharePoint Lists

I'm trying to get two columns but each one of them are in differents SharePoint Lists.
Is it possible to get these columns and put it into a single destination? I'll need to use both later.
Thanks in advance.
Assuming you can use SSIS this article gives detailed instructions on how to get information from a sharepoint list. Once you have set up the sharepoint data sources to get the single column from the lists. Then point the data flow out to a Union All component, this will allow you to combine the two desperate data flows into on data flow (see attached picture). Then you can connect the single data flow to data destination, in the case of the picture it is a SQL server table.
If you do not have access to SSIS it is possible to do extract the data directly from the SQL tables if you have access to the sharepoint database. Not an approach that l would recommend.

Querying Excel Table

Is it possible to query a table that is located inside Excel's worksheet? Specifically I am looking for SQL like SELECT and all it's features (sorting, grouping, filtering etc.)
Is it possible to display the result in a different worksheet and dynamically bind the two?
Sound like MS Query might be the tool for you. Basically it is a tool that connects to various external data sources from MS Office, and it can also connect to Excel from Excel. In Excel 2010 things get easier, but you are using 2007.
Check this or this or Google to find various examples of how to implement this.

Resources