Can I use Power Query to Import a table from Excel sheet range which starts not from the top row?

Hi,
Being an experienced Excel user before Power BI, I am just starting to explore the M and Power Query capabilities, and need help already (ain't easy to google this use case somehow):
I need to import the table which sits in the Excel file with header row in the row 17 of Excel sheet, with some metadata header in the preceding rows of the columns A and B.
01: Report name, Quick Report
02: Report Date, 1/1/2014
17: Employee Name, Manager, etc...
18: John Doe, Matt Beaver, etc.
Both (a) direct attempt to load as Excel file and (b) the indirect way through [From Folder] and formula in custom column -- both lead to the same error: "[DataFormat.Error] External table is not in the expected format."
Specifically, I tried to use the [Power Query -> From File -> From Folder] functionality, select an Excel file and add a custom column to access the binary content: [Add Custom Column] with formula "=Excel.Workbook([Content])".
It looks like Power Query expects a rectangular range with headers full-width followed by a contiguous table range to import anything, and refuses to load if that is not the case...
QUESTION: Is there any way to load whatever-formatted data from Excel first, and then manipulate the overall imported range (like referring to rows starting from 17th using "Table.SelectRows" etc.) to read the actual data? Reading and using
the metadata from header would be a bonus, but that comes second... The main issue is to get something from a non-regular Excel file to later work with using M formulae ...
Thanks!
SAM

Finally found the answer to this one in ():
You Cannot Open a Password-Protected Workbook
 If the Excel workbook is protected by a password, you
  cannot open it for data access, even by supplying the correct password with
  your connection settings, unless the workbook file is already open in the
  Microsoft Excel application. If you try, you receive the following error
  message:
Could not decrypt file.
ANSWER: So, will have either weave in the work with temporary unprotected files or requires opening them before updating the data source (although this almost defeats the purpose of automation...)
ANSWER to ORIGINAL QUESTION: password was preventing Power Query from reading the Excel file. For solution see above.
Thanks anyway for participation and inspiration, Imke!

Similar Messages

  • Using Power Query to import image files for Power View

    I am trying to use Power Query to import image data from a SQL Azure database for use in Power View.  I've selected both the source image table and the ?images table in the workbook query.  The files seem to load as binary data in the Power
    Query editor but when loaded to the data model with Power Pivot, the field becomes "text" type rather than binary.  Does anyone know the procedure to use  PowerQuery to load image files into PowerPivot?

    Hi,
    We currently do not support loading binary data from Power Query into the Power Pivot data model. This is something we'd like to address soon. For now, you will need to use the Power Pivot import capabilities if you want to achieve this.
    Sorry about the inconvenience - we will try to enable this feature over the coming months.
    Faisal Mohamood | Program Manager | Data Platform Group - Microsoft

  • How can I import a change request to a system which is not in the domain

    how can I import a change request into a system which is not part of the transport domain?

    Hi,
    You can transport any requests to any systems even though they are not in the transport domain.
    1) Move the corresponding data & cofiles( in /usr/sap/trans/data & /usr/sap/trans/cofiles directories) to the same location in the target system.
    2)Add the request to the queue from  STMS ->Import Queue ->Extras ->Other Requests - >Add.
    3)The execute the transport as usual.
    Regards,
    Sam

  • How to use power query with sitecatalyst

    Hello,
    I need to use power query to import a table from sitecatalyst. Doing some tests I found that If remove the session from the url that has the report parameters, the app will redirect me to the login page, after entering the company, username and password
    it will load the report page with the data according to my filters.
    When I add the report url on the From Web option, excel does not allow me to add credentials. If I add the login+redirect url it allows me to add user/password but does not load the tables that appear on a regular browser.
    Is it possible to consume sitecatalyst without using Report Builder? If not, how you access the security info after you added the url.
    Thanks.

    To the best of my ability to tell, the right way to use this product from within Power Query would be to use its API. Unfortunately, we don't currently support either of the methods needed to be able to authenticate with the service (OAuth 2.0 and a relatively-custom
    digest-based method). Adding a mechanism to allow use of arbitrary OAuth-protected resources is a fairly high priority for us, and I hope we'll be able to deliver something before mid-2015.
    Scraping the website is very hard to do well -- both from an authentication and from a data discovery perspective.

  • How to load excel files from my SharePoint site to Excel client by using Power Query

    Hello,
    I am using Power Query to import some Excel files from shared documents on SharePoint site. After I type the URL of my SharePoint site into the filed, the expected Excel files do not appear in Power Query. Please provide the method as soon as possible.
    Thanks!

    Could you check if
    this post can help?

  • Can't Enable Power Query Add In

    I have the same issue as described by Bill on April 1, 2014.  
    I am using Win-7 Enterprise SP-1 64-bit; MS-Office Professional Plus 2010 ver: 14.0.7140.5000 (32-bit) and have been using Power Query (32-bit) Add-in on Excel for the past 12-18 months.  I have regularly been notified of available PQ upgrades and have
    installed them successfully.
    Yesterday, I opened Excel, but PQ was not enabled.  The Office Add-in manager shows that PQ is disabled.  I attempted to enable the COM Add-In but to no avail. The Add-In location folder for PQ shows (C:Windows\SysWOW64\mscorre.dll).  That
    folder and file is at that location.  Going through the enabling process produces no positive result and no warning message complaints.
    I visited MS Power Query download site, downloaded the latest PQ and ran the install.  I choose all the default responses during the install and got no warning messages.  I an still unable to enable PQ.
    Any help anyone may provide would be appreciated!

    If you go into the registry (through regedit), what is the value of LoadBehavior when you navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Excel\Addins\Microsoft.Mashup.Client.Excel?
    Is it 0x00000003 (3)?

  • How to use Power Query to load data from a single source into multiple tables

    Hi all,
    I have a requirement to load my data into three different data models using Power Query. Is that possible?
    My source is a SharePoint survey list, with similar questions like:
    1) Course lecturer - John Doe
    1a) The course was useful (rate 1 to 5)
    1b) The lecturer displayed good knowledge of topic (rate 1 to 5)
    2) Course Lecturer - Mary Brown
    2a) The course was useful (rate 1 to 5)
    2b) The lecturer displayed good knowledge of topic (rate 1 to 5)
    I would like to split the data into separate data models (one for John Doe; another for Mary Brown), so that I can compare the different lecturers. Other than running separate surveys for each of them, I thought of using Power Query to transform the data.
    Is it possible?
    Thanks.
    Regards
    GM

    Yes, this is possible.
    Start with a single query that returns you the data for all lecturers.
    Right-click on the "all lecturers" query in the queries pane, and choose Reference, once for each lecturer. This will create a query for each lecturer.
    Open the query for each lecturer and filter the data so that only that lecturer's results are visible.
    Click "Close & Load To..." for each lecturer's query  to load the data into the data model. This will create a data model table for each lecturer.
    If your question is more about how to transform such a survey list into a table that can be easily filtered, please provide an example of how the list shows up in Power Query.
    Ehren

  • Can I update datas of Power Query after making relation tables in Power Pivot ?

    Can I update datas of Power Query after making relation tables in Power Pivot ?
    I want to update datas at day by day to viewing today's graph by Power View on Excel.
    Power Query use to transform web site to Power Pivot data model table.
    Power Pivot use to making relasing tables, and making measuers.
    Regards,
    Yoshihiro Kawabata.

    Hi Yoshihiro,
    Can you share an example of the things you are doing in Power Pivot? There are some operations that prevent the query from being refreshed in Power Query; this is not ideal so we are currently working on fixing it.
    Thanks for your feedback.

  • Help Required -- Can we use SQL Query to READ data from SAP MDM Tables

    Hi All,
    Please help.........
    Can we use SQL Query to READ(No Creation/Updation/Deletion  just Read) Data from SAP MDM tables directly, without using MDM Syndicator.
    Or direct SQL access to SAP MDM tables is not possible. Only through MDM Syndicator can we export data.
    Thanks in Advance
    Regards

    All the tables you create in Repository comes under A2i_CM_Tables in Database named as your repository name. So the tables names are fields of table A2i_CM_Tables. Now i tried it but cant make it.
    Now, I dont think its possible to extract all fields in tables and there values using select query. May be pure sql guy can do that or not.
    But there is no relation of data extraction and syndicator. Data is viewed in Data Manager. and you can also store data in a file from DM also.
    BR,
    Alok

  • Can I use custom query in DB Adapter with Polling

    Hi All,
    I am getting problem while using db adapter with polling. Can I use custom query in db adapter with polling.
    I am using 2 tables; table 1 and table2
    Structure of table1 is as:
    File_name
    Batch_id
    Creation_date
    Status
    Structure of table2 is as:
    Batch_id
    Employee_ID
    Last_Name
    First_Name
    Middle_Name
    Group_ID
    Site_ID
    Dept_Num
    Report_id
    I have to use below query while polling to table1
    Select count(*) as NOSEXP, Report_id
    from table1, table2
    where table2.batch_id =
    table2.batch_id
    and table1.Status= 0
    group by Report_id;
    I mean, when I use DB adapter to poll table1, I have to use above query.
    Can you Please suggest on this.
    Thanks in advance.

    I will check for existance not based on Primary key but based on three other fields in the table. I think , by default DB adapter configured for MERGE checks for existance based on PK. Can we change the Primary Key in the mapping file after the DB adapter is configured. In that case , will it check for existance based on the fields , I mention.
    Edited by: user12020809 on Sep 16, 2012 6:08 PM

  • Can I copy Power Query queries to other Excel workbook ?

    Can I copy Power Query queries to other Excel workbook ?
    I want to copy some Power Query queies to other Excel workbook.
    a workbook have some queries about population.
    a workbook have some queries about labor market.
    I want to build a workbook with population queries and labor market queries for sharing OneDrive.
    Regards,
    Yoshihiro Kawabata

    Thank you, Curt.
    Yes, Now I copy by M code.
    I want  more easy way.
    When sharing Query at Power BI, Excel automatically share all related queries by one click.
    Regards,
    Yoshihiro Kawabata 

  • Can I use Power BI capabilities in iPad with Office 365

    Hello,
    Can I use power BI features in office 365 as native app in ipad ? if this is not possible what are the other options we have to use power BI features in ipad ?
    Thanks in advance.

    HI Anush,
    At the recent PASS BA conference, Microsoft announced that there will be a native iOS app for Power BI by the end of Summer 2014.
    At the moment this is the current availability of Power BI on Mobile and tablet.
    "No matter where you are, you can access data in Power BI for Office 365 through the browser with Excel and Power View in HTML5
    or through the Power
    BI Windows Store app, which provides touch-optimized access to BI reports and models stored in Office 365. We will offer support
    for other widely adopted platforms at a later date."

  • Can I share Power Query's queries to Public ?

    Can I share Power Query's queries to Public ?
    I want to share my queries on my friends.
    Now, I share my queries by sharing Excel files by OneDrive.
    My friends copy and paste queries from my Excel files.
    It hard to search and update rather than Power BI's sharing query.
    Regards,
    Yoshihiro Kawabata

    It's something we're considering but don't support today.

  • Can I use control query and Variant?

    Can I use control query and Variant?
    I tried both but it’s not working, what’s my requirement is in a web template having material, distribution as drop box and I have to create for all countries(Like USA, Canada,China…)so what I did , I created a control query as material& distribution and I created variants for countries. After precalculating it’s not working.
    Any help ll be appreciated
    Thanks

    Yes you can use Control Query AND Variant in your Setting. Maybe you did not setup you Web template correctly?

  • Can I use Power BI graphs on non-desktop's Internet Explorer ?

    Can I use Power BI graphs on non-desktop's Internet Explorer ?
    I want to use Power BI graphs web page on non-desktop's Internet Explorer.
    Now, I try it, get alerts Silverlight need.
    and I still installed on my Windows 8.1.
    and I can use Power BI graphs on desktop's Internet Explorer.
    But, I cannot use Silverlight on non-desktop's Internet Explorer.
    Regards,
    Yoshihiro Kawabata

    Dear Yoshihiro,
    Got it, I see your point, will check with the team why we don't default here to HTML5
    Did you look at using the Power BI App?
    http://apps.microsoft.com/windows/en-us/app/microsoft-power-bi/b7e7c94d-2ea3-4fa6-a277-9d19a1f697ba
    And I can think of other workarounds but it really depends on the scenario. If you wish to share some more info please send us a mail to
    this address.
    Guy
    GALROY

Maybe you are looking for