This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Code formatter for PowerBI


WordPress plugin for formatting and beautifying of DAX and M code
(as used in PowerQuery, PowerBI and Excel PowerPivot)

M code (PowerQuery)

[mcode theme=dark linewidth=90 width=600px ]let a = 1 in a[/mcode]

DAX code (PowerBI, PowerPivot)

[daxcode width=600px region=US]EVALUATE myTable[/daxcode]

All shortcode attributes are optional.

The plugin formats your code, by sending it to the following free services and showing the result on your site.
The formatted results for unchanged code are cached (for 30 days) via WordPress transients.

By using the plugin (and therefore using the services of DAXFormatter and PowerQueryFormatter) you agree to their terms of use (see links above).

Power BI is a registered trademark of Microsoft Corp.


I need a feature the plugin does not provide

This plugin is open source. Please provide a pull request or create an issue on the github repository.


There are no reviews for this plugin.

Contributors & Developers

“Code formatter for PowerBI” is open source software. The following people have contributed to this plugin.




Initial release