powerquery

How to wait for a Power Query refresh to finish? I've tried “DoEvents” with “BackgroundQuery = False”, and more, nothing works

懵懂的女人 提交于 2020-08-04 04:39:47
问题 Setup: Windows 7 (at work) Windows 10 (at home) Excel 2016 (build 4627 at work) Excel 2016 (build 8730 at home) Power Query is setup to import, append, and transform a folder of Excel Files. This step works. Description of Problem After using any combination of any technique to wait for a Power Query to finish refreshing as described in the "Things I have tried:" section shown below. A message box can be displayed and any other code can be executed before the Power Query tables have finished

How to wait for a Power Query refresh to finish? I've tried “DoEvents” with “BackgroundQuery = False”, and more, nothing works

时光总嘲笑我的痴心妄想 提交于 2020-08-04 04:39:38
问题 Setup: Windows 7 (at work) Windows 10 (at home) Excel 2016 (build 4627 at work) Excel 2016 (build 8730 at home) Power Query is setup to import, append, and transform a folder of Excel Files. This step works. Description of Problem After using any combination of any technique to wait for a Power Query to finish refreshing as described in the "Things I have tried:" section shown below. A message box can be displayed and any other code can be executed before the Power Query tables have finished

Is there any way to invoke PowerQuery/M outside of Excel or PowerBI?

扶醉桌前 提交于 2020-08-02 06:08:49
问题 Our BI team is really growing to like the Power Query ETL tool used within Excel and Power BI. The functional language M/PowerQuery has great utility and it would be nice to be able to utilize outside of the context of PowerBI. Is there or are there plans for exposing "M" as a stand-alone module, callable form the likes of c# or PowerShell? 回答1: It appears that this is now possible via the Power Query SDK. This has enabled projects such as PowerQueryNet, which can already execute the M

How to download data from Yahoo finance limited to 100 rows

浪尽此生 提交于 2020-07-19 06:49:20
问题 So I'm doing this project where I have to download historical stock data from yahoo finance. Got this code. It's working fine, BUT it only downloads max 100 rows. I tried to scan the web for answers or a different code (this one is just recorded macro from excel) but I saw a few tutorials on YouTube that use his solution and it's just fine. .. I don't understand it then Sub Makro6() ' Dowload stock prices from Yahoo Finance based on input Dim ws As Worksheet Set ws = Sheets("Data") 'clear

Clockify - Best way to get ALL data into excel or access using the REST api?

做~自己de王妃 提交于 2020-07-10 06:57:39
问题 I am trying to get all data into excel using the Get data from web option but I am not sure how to properly configure it. I did get the API key. EDIT: Below is the path I use, but that is only the time entries for one user, I need them for ALL users. https://api.clockify.me/api/v1/workspaces/myWorkspace/user/myUser/time-entries Any help is appreciated. 回答1: EDIT: I didn't read that you wanted to use Power Query in Excel. The Advanced Editor only works with this code in Power BI Desktop. You

Clockify - Best way to get ALL data into excel or access using the REST api?

痴心易碎 提交于 2020-07-10 06:57:21
问题 I am trying to get all data into excel using the Get data from web option but I am not sure how to properly configure it. I did get the API key. EDIT: Below is the path I use, but that is only the time entries for one user, I need them for ALL users. https://api.clockify.me/api/v1/workspaces/myWorkspace/user/myUser/time-entries Any help is appreciated. 回答1: EDIT: I didn't read that you wanted to use Power Query in Excel. The Advanced Editor only works with this code in Power BI Desktop. You

How to merge queries in power bi with 2 primary keys

你说的曾经没有我的故事 提交于 2020-06-28 05:07:42
问题 How do we merge two queries in power bi when the primary key is a combination of 2 columns. for example i have 2 tables Table A : year cost center col a col b col c Table B: year cost center col x col y col z The primary key in both the columns is a combination of the 1st two columns. How do i merge these two queries? 回答1: When you merge the queries using the GUI, you can hold down Ctrl to select multiple columns from each table. (Make sure you select them in the same order on both tables.)

Passing a “list” to a function call with the 'each' keyword

Deadly 提交于 2020-06-27 13:20:13
问题 First things first, I will confess I am not an M or Power Query expert, though I do have some experience with Power BI. I am trying to develop a stock portfolio that will track a customised list of stocks with their price history and other metrics. Part of my code is based on the following blog, due to the problem I am trying to solve: https://datachant.com/2016/08/09/sentiment-analysis-power-bi-part-2/ I have the following function getPriceMetrics in my project that will take one parameter

Refresh certain queries if the value of functions changes

北慕城南 提交于 2020-06-17 15:45:11
问题 The manual entry of one of the following numerical values ​​will be entered in cell "AC1": 1; 2; 3; 4 or 5. Each of them represents a range of cells that will take priority among all the others. Each of the cells in the range "A2:A86" contains a function with a similar structure: = ‘SheetX’AX! . For example: = ‘Sheet1’B4! ; = ‘Sheet2’B4! ; = ‘Sheet6’B4! ; etc. The ranges of cells that form groups are: Range 1 = "A2:A18"; range 2 = "A19:A35"; range 3 = "A36:A52", range 4 = "A53:A69"; and range

Power Query: Function to search a column for a list of keywords and return only rows with at least one match

空扰寡人 提交于 2020-06-17 12:58:38
问题 I am making a simple Google-like search function in Power Query. Let's say I have a column called Description in a table called Database . The user then inputs some search queries like "dog, cat, animals". I want to filter Database for rows that contain at least one of these keywords. They keywords can change each time, depending on what the user types in a named range in Excel. I know you can filter a column in Power Query for multiple keywords, like this: FilterRows = Table.SelectRows