Giter Site home page Giter Site logo

powerquerynet's Introduction

PowerQueryNet

Run Power Query M formula language from anywhere.

About

PowerQueryNet allows you to run M formulas commonly used in Power BI and Excel (aka Get & Transform) from the Command Prompt or any .NET application.

Download

Installer: PowerQueryNet.msi

Dependency: PowerQuerySdk.vsix 1.0.0.16

(Upon installation PowerQuerySdk.vsix must be in the same folder as PowerQueryNet.msi)

Samples: PowerQueryNet.Samples.zip

PQNet

PQNet is a Command Line Interface (CLI) that comes with the installation of PowerQueryNet.

Features

Export the result of a query to several formats (CSV, JSON, HTML, XML)

pqnet "#Hello World.pq" -o json

Export the result of a query to a SQL Server database

pqnet "#Hello World.pq" -s "Data Source=.\SQL2016;Initial Catalog=AdventureWorks2012;Integrated Security=SSPI" -t "dbo.HelloWorld"

Output the result of a Power BI query to file

pqnet MyReport.pbix Query1 -o csv -f result.csv

Hello, World! - PQNet (CLI)

  1. Create a new file with the following content:
let Source = "Hello, World!" in Source
  1. Save the file as helloworld.pq
  2. Run the following in the Command Prompt:
pqnet helloworld.pq

Hello, World! - .NET (C#)

  1. From your .NET project, add a reference to PowerQueryNet.Client
  2. Run the following:
var qry = new Query { Formula = "let hw = \"Hello World\" in hw" };
var pqc = new PowerQueryCommand() { ExecuteOutputFlags = ExecuteOutputFlags.Csv };
var result = pqc.Execute(qry);

Power Query App

Run queries in a standalone application PowerQueryApp

Build requirements

  • Visual Studio 2015+

To build the Setup project, WiX Toolset must be installed.

Copyright

Copyright 2019

Licensed under the MIT License

powerquerynet's People

Contributors

gsimardnet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.