powerquery

How to remove duplicate values in one column and concatenate values from another column where removal happens?

情到浓时终转凉″ 提交于 2020-06-17 09:46:40
问题 The Data: ACCOUNT DESC Gallup 1 Gallup 2 Phoenix 2 Red Rock 1 Red Rock 2 Albuquerque 1 The desired output: ACCOUNT DESC Gallup 1,2 Phoenix 2 Red Rock 1,2 Albuquerque 1 but in a general scope as this is a small subset (Many other accounts, 100+) Is there a way to remove duplicate values of "ACCOUNT" and to concatenate values from the removed duplicates where the "ACCOUNT" matched?? (this method is the preferred approach desired if possible) 回答1: Right click Account column, Group By use New

Skip 6 rows before “reading” into powerquery

本小妞迷上赌 提交于 2020-06-13 07:17:33
问题 I am trying to automate a few reports that are built off of CSV exports from Netsuite (our ERP software). The files never import directly into PowerQuery correctly because there are 6 rows that are "header" rows. These header rows do not have the correct amount of commas so PowerQuery only shows 1 column of data. I currently am opening the files with Notepad++ and deleting those 6 rows and then importing the file into PowerQuery. Is there a way to skip the first 6 rows using PowerQuery code

How to model queries in Power BI for daily append of new data instead of overwriting

為{幸葍}努か 提交于 2020-06-07 07:25:25
问题 I'm trying to build a simple report in Power BI based upon data published on a website. Here is what I want to achieve This website publishes data for COVID cases in the country. The number are just the current numbers, without any time-series. I want to fetch these numbers from this website daily and build a report on top of it (with time series kind of analysis). So I fetch these numbers (Get Data > Web > URL) and get this into a query I then add a custom column with a timestmap (M's

How to use VLOOKUP to split multiple-valued cell into separate rows?

泪湿孤枕 提交于 2020-06-01 07:12:21
问题 As the title says, how do you split this into 回答1: Not sure where the VLOOKUP comes from in your question, but if you have Excel 2010 or later you can do this through PowerQuery Select your data Data tab > From Table/Range You have headers, so choose accordingly PowerQuery should now start, and within the opened tab: Start tab > Split column > by delimiter Obviously choose a comma as delimiter > Choose Advanced and tick by Row instead of Column . Choose no quotes and confirm. Right click the

How to use VLOOKUP to split multiple-valued cell into separate rows?

匆匆过客 提交于 2020-06-01 07:12:11
问题 As the title says, how do you split this into 回答1: Not sure where the VLOOKUP comes from in your question, but if you have Excel 2010 or later you can do this through PowerQuery Select your data Data tab > From Table/Range You have headers, so choose accordingly PowerQuery should now start, and within the opened tab: Start tab > Split column > by delimiter Obviously choose a comma as delimiter > Choose Advanced and tick by Row instead of Column . Choose no quotes and confirm. Right click the

Expanding all columns simultaneously in Power Query

安稳与你 提交于 2020-05-27 13:02:08
问题 Need help expanding all columns in a spreadsheet simultaneously using Power Query. I have transposed the spreadsheet from this: to this: Each table is a long column of values (9,000+ rows). I would like each column to be a separate ID. Expanding columns manually would be a tedious job and our team is adding data from new study participants (IDs) regularly, so I need help creating a code that can expand all columns simultaneously without having to indicate the column names (IDs) in the code.

How was the data loaded here with power query?

无人久伴 提交于 2020-05-17 07:26:34
问题 We have a task to be able to connect to HFM in Power BI. I found this article: https://poweronbi.com/2016/04/from-hyperion-planning-or-hyperion-financial-management-to-power-bi/ but i dont understand HOW the database tables were/can be loaded from HFM into PowerBI. This is as far as the statement goes, without any demo or explanation in step1-2: I have attached a screenshot of the HFM data base, and you can load all the tables listed in the left column and load it to Power BI with Power Query

Bridge tables - DAX or M?

送分小仙女□ 提交于 2020-05-15 06:37:05
问题 Should we construct bridge tables with DAX or M? Picture stolen from here It seems very tempting to use DAX. With DAX the code is short and clear: IDList = DISTINCT( UNION( DISTINCT(Table1[ID]) ,DISTINCT(Table2[ID]) )) Moreover, DAX tables do not need to be loaded as M tables. However I wonder if advantage of DAX over M is not illusory? M seems to load once and DAX seems to be calculated on the fly, maybe anytime, over and over? 回答1: DAX calculated tables are re-calculated if any of the

Always Allow Native DB Queries

ぃ、小莉子 提交于 2020-05-11 07:36:09
问题 In Excel 2013 how can I change options (or is it possible) to always allow native DB Queries? Can someone walk me through how to set this up? 回答1: When in Excel 1) Click Power Query from the "Ribbon" across the top 2) Choose Options 3) From the Options Window that loads select Security from the left 4) Untick the box that says "Require user approval for new native database queries" 5) Click OK 回答2: I don't yet have a high enough reputation to comment this on user2676140's answer, but to

Always Allow Native DB Queries

ぐ巨炮叔叔 提交于 2020-05-11 07:36:04
问题 In Excel 2013 how can I change options (or is it possible) to always allow native DB Queries? Can someone walk me through how to set this up? 回答1: When in Excel 1) Click Power Query from the "Ribbon" across the top 2) Choose Options 3) From the Options Window that loads select Security from the left 4) Untick the box that says "Require user approval for new native database queries" 5) Click OK 回答2: I don't yet have a high enough reputation to comment this on user2676140's answer, but to