Related blog post
Three months ago, Microsoft introduced the User-Defined Functions (UDFs) in the DAX language. From the first day,
https://daxlib.org has been available to
share libraries of functions with the Power BI community. We published DAX Lib with a low profile because we did not have many libraries available at the beginning, but now it is time to
spread the word!
Using DAX Lib is fast and simple: copy the function code from a TMDL script in DAX Lib, then paste it into the TMDL view of your Power BI model and apply it.
Watch the video to see a complete walkthrough.
In these first months, we have already received many contributions and published
more than 30 libraries: functions that you can
import and use immediately. You can find functions to create SVG visuals, format measures, apply conversions, implement DAX patterns, and much more.
If you have never used UDFs, start with
Introducing user-defined functions in DAX.
If you want to
contribute by creating and publishing a new library, make sure to develop model-independent functions as described in
Model-dependent and model-independent user-defined functions in DAX. And
Users of Tabular Editor 3 already have a
DAX Package Manager that imports and DAX libraries without opening a web browser:
Introducing the DAX Package Manager in Tabular Editor.
We expect other external tools to provide similar functionality: the
DAX Lib APIs are accessible via DaxLib.Client library for .NET:
Integrate DAX Lib with Third-Party Tools. We will soon publish the API documentation to enable integration with other languages, such as Python.
We are still learning and improving the system; our to-do list is already long, but user feedback will be the primary driver for the next steps.
Let us know your thoughts, and... Enjoy DAX!