All Projects → hohlick → Power-Query-Excel-Formats

hohlick / Power-Query-Excel-Formats

Licence: MIT license
A collection of M code to get various formats from Excel sheets in Power Query

Projects that are alternatives of or similar to Power-Query-Excel-Formats

PowerQueryNet
Run M Language (Power Query Formula Language) from anywhere.
Stars: ✭ 146 (+239.53%)
Mutual labels:  excel, powerbi, powerquery
LibPQ
Detach your M code from workbooks to reuse it! Import modules from local or web storage (unlimited number of sources)
Stars: ✭ 55 (+27.91%)
Mutual labels:  excel, powerbi, powerquery
PowerBI-book-ru
Проект открытого методического пособия по Power BI, Power Query, Power Pivot
Stars: ✭ 76 (+76.74%)
Mutual labels:  powerbi, powerquery
m-custom-functions
This library contains created mostly pure M-functions without any other languages.
Stars: ✭ 24 (-44.19%)
Mutual labels:  powerbi, powerquery
PowerQueryConnectors
A collection of data connectors for Power BI
Stars: ✭ 30 (-30.23%)
Mutual labels:  powerbi, powerquery
powerbi
Repository with links and files for using in PowerQuery and PowerBI
Stars: ✭ 32 (-25.58%)
Mutual labels:  powerbi, powerquery
financial-forecast
Personal Financial Forecasting Model
Stars: ✭ 24 (-44.19%)
Mutual labels:  excel, workbook
XToolset
Typed import, and export XLSX spreadsheet to JS / TS. Template-based create, render, and export data into excel files.
Stars: ✭ 110 (+155.81%)
Mutual labels:  excel, workbook
openharmony-sheet
📊从零开始使用华为鸿蒙 OpenHarmony 开发游戏和表格渲染引擎
Stars: ✭ 132 (+206.98%)
Mutual labels:  excel, sheet
CXLinkageSheetDemo
一个同时支持横向和纵向滚动的表格框架 CXLinkageSheetView,适用于一些数据展示页面
Stars: ✭ 78 (+81.4%)
Mutual labels:  excel, sheet
Power-Refresh-VBScript
Visual Basic Script Refresher for Excel files with Power Query and PowerPivot model
Stars: ✭ 18 (-58.14%)
Mutual labels:  excel, workbook
Data-Science
Using Kaggle Data and Real World Data for Data Science and prediction in Python, R, Excel, Power BI, and Tableau.
Stars: ✭ 15 (-65.12%)
Mutual labels:  excel, powerbi
datapackage-m
Power Query M functions for working with Tabular Data Packages (Frictionless Data) in Power BI and Excel
Stars: ✭ 26 (-39.53%)
Mutual labels:  excel, powerbi
json2xls
{"generate excel by json data": "根据json数据生成Excel表格"}
Stars: ✭ 30 (-30.23%)
Mutual labels:  excel
power-bi-embedded
Use Power BI Embedded to embed dashboards, reports, report visuals, Q&A, and tiles in your WordPress website.
Stars: ✭ 37 (-13.95%)
Mutual labels:  powerbi
PowerBI-visuals-ForceGraph
Repo for Power BI Force Graph custom visual
Stars: ✭ 46 (+6.98%)
Mutual labels:  powerbi
ModelAutoBuild
A framework for dynamically creating a tabular model based on an Excel template.
Stars: ✭ 43 (+0%)
Mutual labels:  powerbi
office-addin-react
To help you learn to use Office.js and React build an Excel add-in
Stars: ✭ 46 (+6.98%)
Mutual labels:  excel
web-pivot-table
A feature-rich JS pivot grid library for creating interactive reports. Integrates with any front-end technology
Stars: ✭ 35 (-18.6%)
Mutual labels:  excel
customer-tracker
R data products: Reports, Presentations, Apps, and API's
Stars: ✭ 19 (-55.81%)
Mutual labels:  excel

README на русском

Power-Query-Excel-Formats

A collection of M code to get various formats from Excel sheets in Power Query

Main purpose

Information, stored in the Excel workbooks, often has additional metadata, important for analyzis. This metadata could be stored in various forms, mostly as cell formats, number formats, colours, etc. Often a row, column or cell format is a critical element of the workbook data set.

At the moment (Aug 2017) the Microsoft Power Query and corresponding "Query Editor" in Microsoft Power BI do not allow users to get additional information (stored in Excel workbooks and spreadsheets as various applied formats) natively, except (sometimes) the data types of calculated values.

A wide range of formats and the complexity of extracting their parameters by other tools, such as Power Query, lead to the loss of a noticeable piece of information. Additional problem is storing extracted formats data in Power Query for further use. Задачи и методы

Tasks

Develop a set of functions to extract/import specific info about sheet and/or cell formats into Power Query.

In the future - develop universal functions:

  • spreadsheet information (info about rows, columns, sheet in whole)
  • cells info (colors, fonts, alignment, number formats, indents etc.)

The versatility of the methods due to the same tools (unzip and XML parsing) and the similarity of data sources. Specific kind of function result can be selected via function argument.


Methods

Unzip

Main method is unpacking of XLSX/XLSM as zip and working with XML documents inside. Unpack performed via custom function UnZip.pq by Mike White. But any other analogue to unpack zip archives in Power Query can be used.

XML Parsing

After UnZip the XML files (binary type) from workbook structure become available for the (current) main function. Possible parse methods - with built-in functions Xml.Tables or Xml.Document, or with other suitable XML parsing methods.

  • Main problem: cell formats stored separate from cells, cells itself stored inside row element, cell address stored in A1 notation (need additional convert to R1C1-style or similar).
  • Additional problem: linking/mapping extracted format info with cell position in Power Query table.

Work plan

(released projects have hyperlinks)

  1. Sheet structure:
    • rows outline levels,
    • columns outline levels,
    • extended rows state (visibility, spans, outlines, collapsed, etc.),
    • extended columns state.
  2. Cell indents and alignment
  3. Cell number formats
  4. Cell color
  5. Top-left rows and columns addition to UsedRange/dimension (see this post about UsedRange pitfall)
  6. Additional formats, conditional formats and further development
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].