Accessing data functions
The Power Query Formula Language is a powerful query language optimized for building queries that mashup data. It's a functional, case sensitive language similar to F#, which can be used with Power Query in Excel, Get & Transform in Excel 2016, and Power BI Desktop. To learn more, see the PowerQueryName reference.
Functions in this section access data and return table values. Most of these functions return a table value that is called a navigation table. A navigation table is a two column table. The first column contains the name of an item and the corresponding second column contains the value of that item. This shape is primarily used by the Power Query user interface to provide navigation experience over the potentially large hierarchical data returned.
| Function | Description |
|---|---|
| Access.Database | Returns a structural representation of an Microsoft Access database. The database argument is The return value is a record, where each field represents a table in the Access database. |
| ActiveDirectory.Domains | Returns a table with Domain information available in the current domain or optional Active Directory forest. |
| AdoDotNet.DataSource | Returns the schema collection for an ADO.NET data source. |
| AdoDotNet.Query | Returns the result of running a native query on an ADO.NET data source. |
| AnalysisServices.Database | Returns a table of multidimensional cubes or tabular models from the Analysis Services database. |
| AnalysisServices.Databases | Returns the Analysis Services databases on a particular host. |
| AzureStorage.Blobs | Returns a navigational table containing all containers found in the Azure Storage account. Each row has the container name and a link to the container blobs. |
| AzureStorage.Tables | Returns a navigational table containing a row for each table found at the account URL from an Azure storage vault. Each row contains a link to the azure table. |
| Csv.Document | Returns the contents of a CSV document as a table using the specified encoding. |
| CsvStyle.QuoteAfterDelimiter | Quotes in a field are only significant immediately following the delimiter. |
| CsvStyle.QuoteAlways | Quotes in a field are always significant regardless of where they appear. |
| Cube.AddAndExpandDimensionColumn | Merges the specified dimension table, dimensionSelector, into the cube’s, cube, filter context and changes the dimensional granularity by expanding the specified set, attributeNames, of dimension attributes. |
| Cube.AddMeasureColumn | Adds a column with the name column to the cube that contains the results of the measure measureSelector applied in the row context of each row. |
| Cube.ApplyParameter | Returns a cube after applying parameter with arguments to cube. |
| Cube.AttributeMemberId | Returns the unique member identifier from a member property value. |
| Cube.CollapseAndRemoveColumns | Changes the dimensional granularity of the filter context for the cube by collapsing the attributes mapped to the specified columns columnNames. |
| Cube.Dimensions | Returns a table containing the set of available dimensions within the cube. |
| Cube.DisplayFolders | Returns a nested tree of tables representing the display folder hierarchy of the objects (e.g. dimensions and measures) available for use in the cube. |
| Cube.Measures | Returns a table containing the set of available measures within the cube. |
| Cube.Parameters | Returns a table containing the set of parameters that can be applied to cube. |
| Cube.ReplaceDimensions | |
| Cube.Transform | Applies the list cube functions, transforms, on the cube. |
| DB2.Database | Returns a table with data relating to the tables in the specified DB2 Database. |
| Excel.CurrentWorkbook | Returns the tables in the current Excel workbook |
| Excel.Workbook | Returns a table representing sheets in the given excel workbook. |
| Exchange.Contents | Returns a table of contents from a Microsoft Exchange account. |
| Facebook.Graph | Returns a table containing content from the Facebook graph . |
| File.Contents | Returns the binary contents of the file located at a path. |
| Folder.Contents | Returns a table containing the properties and contents of the files and folders found at path. |
| Folder.Files | Returns a table containing a row for each file found at a folder path, and subfolders. Each row contains properties of the folder or file and a link to its content. |
| GoogleAnalytics.Accounts | Returns the Google Analytics accounts for the current credential. |
| Hdfs.Contents | Returns a table containing a row for each folder and file found at the folder url, {0}, from a Hadoop file system. Each row contains properties of the folder or file and a link to its content. |
| Hdfs.Files | Returns a table containing a row for each file found at the folder url, {0}, and subfolders from a Hadoop file system. Each row contains properties of the file and a link to its content. |
| HdInsight.Containers | Returns a navigational table containing all containers found in the HDInsight account. Each row has the container name and table containing its files. |
| HdInsight.Contents | Returns a navigational table containing all containers found in the HDInsight account. Each row has the container name and table containing its files. |
| HdInsight.Files | Returns a table containing a row for each folder and file found at the container URL, and subfolders from an HDInsight account. Each row contains properties of the file/folder and a link to its content. |
| Informix.Database | Returns a table of SQL tables and views available in an Informix database on server server in the database instance named database. |
| Json.Document | Returns the contents of a JSON document. The contents may be directly passed to the function as text, or it may be the binary value returned by a function like File.Contents. |
| Json.FromValue | Produces a JSON representation of a given value value with a text encoding specified by encoding. |
| Marketplace.Subscriptions | Returns feeds offered by the Microsoft Azure DataMarket subscribed by the current user as a table. |
| MQ.Queue | Returns a table that defines the IBM WebSphere MQ Server information required for reading and writing messages. |
| MySQL.Database | Returns a table with data relating to the tables in the specified MySQL Database. |
| OData.Feed | Returns a table of OData feeds offered by an OData serviceUri. |
| Odbc.DataSource | Returns a table of SQL tables and views from the ODBC data source specified by the connection string connectionString. |
| Odbc.Query | Connects to a generic provider with the given connection string and returns the result of evaluating the query. |
| OleDb.DataSource | Returns a table of SQL tables and views from the OLE DB data source specified by the connection string. |
| OleDb.Query | Returns the result of running a native query on an OLE DB data source. |
| Oracle.Database | Returns a table with data relating to the tables in the specified Oracle Database. |
| PostgreSQL.Database | Returns a table with data relating to the tables in the specified PostgreSQL Database. |
| RData.FromBinary | Returns a record of data frames from the RData file. |
| Salesforce.Data | Connects to the Salesforce Objects API and returns the set of available objects (i.e. Accounts). |
| Salesforce.Reports | Connects to the Salesforce Reports API and returns the set of available reports. |
| SapBusinessObjects.Universes | Connects to the SAP BusinessObjects BI Universe at the specified URL and returns the set of available universes. |
| SapBusinessWarehouse.Cubes | Returns the InfoCubes and queries in an SAP Business Warehouse system grouped by InfoArea. |
| SapHana.Database | Returns the packages in an SAP HANA database. |
| SapHanaDistribution.All | Returns the packages in an SAP HANA database. |
| SapHanaDistribution.Connection | 'Connection' distribution option for SAP HANA. |
| SapHanaDistribution.Off | 'Off' distribution option for SAP HANA. |
| SapHanaDistribution.Statement | 'Statement' distribution option for SAP HANA. |
| SapHanaRangeOperator.Equals | 'Equals' range operator for SAP HANA input parameters. |
| SapHanaRangeOperator.GreaterThan | 'Greater than' range operator for SAP HANA input parameters. |
| SapHanaRangeOperator.GreaterThanOrEquals | 'Greater than or equals' range operator for SAP HANA input parameters. |
| SapHanaRangeOperator.LessThan | 'Less than' range operator for SAP HANA input parameters. |
| SapHanaRangeOperator.LessThanOrEquals | 'Less than or equals' range operator for SAP HANA input parameters. |
| SapHanaRangeOperator.NotEquals | 'Not equals' range operator for SAP HANA input parameters. |
| SharePoint.Contents | Returns a table containing a row for each folder and document found at the SharePoint site url. Each row contains properties of the folder or file and a link to its content. |
| SharePoint.Files | Returns a table containing a row for each document found at the SharePoint site url, and subfolders. Each row contains properties of the folder or file and a link to its content. |
| SharePoint.Tables | Returns a table containing the result of a SharePoint List as an OData feed. |
| Soda.Feed | Returns the resulting table of a CSV file that can be accessed using the SODA 2.0 API. The URL must point to a valid SODA-compliant source that ends in a .csv extension. |
| Sql.Database | Returns a table containing SQL tables located on a SQL Server instance database. |
| Sql.Databases | Returns a table with references to databases located on a SQL Server instance. Returns a navigation table. |
| Sybase.Database | Returns a table with data relating to the tables in the specified Sybase Database. |
| Teradata.Database | Returns a table with data relating to the tables in the specified Teradata Database. |
| Web.Contents | Returns the contents downloaded from a web url as a binary value. |
| Web.Page | Returns the contents of an HTML webpage as a table. |
| WebMethod.Delete | Specifies the DELETE method for HTTP. |
| WebMethod.Get | Specifies the GET method for HTTP. |
| WebMethod.Head | Specifies the HEAD method for HTTP. |
| WebMethod.Patch | Specifies the PATCH method for HTTP. |
| WebMethod.Post | Specifies the POST method for HTTP. |
| WebMethod.Put | Specifies the PUT method for HTTP. |
| Xml.Document | Returns the contents of an XML document as a hierarchical table (list of records). |
| Xml.Tables | Returns the contents of an XML document as a nested collection of flattened tables. |