Power Query Automation in Excel - excel

Has anyone tried doing automation using Power Query in Excel? I had this thought that of data set that has country-wise data of maybe around 10 countries. The data is to be provided on 10 worksheets. If we could make the queries in Excel and link the sheets to the queries which filter for each country - then we would only have to paste the dataset on one sheet and refresh the other country-wise sheets.
My question is would this pose any problems when the file is distributed?

Related

How to add multiple Dynamic Power Queries into one spreadsheet excel

Is it possible to insert multiple dynamic power queries, one on top of the other, into a single excel spreadsheet and have the queries refresh when new data has been added to the tables?
I have six different dynamic power queries from six different tables.
When I put each query into their own spreadsheet by themselves they work perfectly. When I add additional data to the table and refresh the query the new data is added to the query worksheet.
However, when I place all six queries into one worksheet one on top of the other, the new data added to the tables will not refresh.
Any help would be greatly appreciated.
Using Excel 365 on Windows 10

Merge and sort data from multiple tabs to a single "Master" tab in Excel

Our company was using Google Sheets for the last several months and we had a system working great, but are now transitioning to Excel.
The tab in the Google Sheet where all the data is merged and sorted is called MASTER TEST and is found here
In Google Sheet we used formula:
=query({Data1, Data2, Data3},"Select Col1, ... where Col1 is not null order by Col1")
Data is merged: {Data1, Data2, Data3} is data from multiple tabs.
The result is merged and sorted data. How can I make the same report in Excel?
Basically, every call we receive is logged in a spreadsheet in a tab unique to each representative. We have a CURRENT WEEK tab which is supposed to hold a static version of all the calls received by every rep, sorted by date. In Sheets this was done with a =query() formula, but Excel does not seem to support such a thing.
I tried using Data>From Other Sources>From Microsoft Query but frankly this does not work since it only grabs the data from columns with data validation and gets very slow and breaks with too much data.
Pivot Tables in Excel VS query in Google Sheet
I suggest you using Pivot Tables, or Pivot Query in Excel. Here's some explanations:
Pivot Tables in Excel can handle big data very fast, query in Google Sheets can't do this
but query is more flexible and it refreshes simultaneously.
So if you are willing to work with data in excel, it may be harder to set your report. Sorting is easy task for Pivot Tables, but merging data from multiple tabs is not so easy.
Merging data
The goal in your case is to merge data from multiple tabs in excel. You can make it in two ways:
Use VBA to collect data into single tab.
Use Pivot Tables. Here's tutorial on how to accomplish this.
And still the best way for data manipulating is to use single tab for all your data.

Adding multiple tables on one excel sheet onto Tableau

The excel files I'm working with have multiple tables on one sheet separated by empty rows or in some cases empty columns. I'm having trouble separating these tables and adding them to Tableau. I have multiple sheets with multiple tables. I also have multiple excel workbooks for each year.
Sometimes I have 7-8 tables each below the other.I want to add each distinct table into tableau and compare the data in one table in one excel workbook by another table in another excel workbook by year.
What version of Tableau are you using? and why don't you turn on excel.
You can install Tableau Data Tool and get started on data cleansing.
Alternatively you can also use the Data parsing tool available in TD 9.0 on-wards. It will automatically ask you if you want to tune in the data after connecting to the excel file.

Is it possible to have 1 pivot table from 2 workbooks?

I've been using Excel a lot lately and I'm not quite familiar with Pivot table. Is it possible for me to combine 2 workbooks into 1 pivot table? The first workbook is about the days of leave of the employee and the second one is about the days that the employee is present. They have similar fields which is the internal ID. I was wondering if there's a way to combine the two workbook to make it 1 pivot table only. I tried the connection in excel that helps connecting my two workbooks but that will make 2 pivot tables. Any help would be appreciated. Thank you in advance!
You can use the free add-in Power Query for Excel 2010 and 2013, or the built-in Get & Transform in Excel 2016 to combine data from different workbooks.
Create a query into the first workbook table and save it as a connection only. Then create a query into the second workbook table. Make sure the columns have identical names and are of the same data type. Then click append to combine with the first query, load to the workbook and create a pivot table as usual.

Conditionally linking cells in Excel 2007

I have a series of worksheets in an Excel spreadsheet. Each worksheet details a set of requirements, along with each component necessary to make that requirement happen, broken down into the following layers: UI, backend, services, database, and misc.
So columns like this:
Req#, Description, UI, Hours, Backend, Hours, Services, Hours, Database, Hours, Misc, Hours
Now I am trying to selectively take some of this data and place it into another worksheet to specifically detail what all has to be done in a given layer, for example the Database layer.
So I would select only the Database (and related hours) column, and link to them in this new "Master Database" worksheet. I don't know how to do this in Excel.
For comparison though, here's what I'd write as a SQL query:
SELECT Database,DatabaseHours
FROM ReportsTable,FeedbackTable,AdminTable
WHERE Database IS NOT NULL;
I just don't know how to make these relationships very easily in Excel.
I would look into using Pivot Tables. If you have all your data in an Excel sheet, creating a pivot table on another sheet will allow you to summarize data however you want.

Resources