EvaluationContext.Colour
A set of DAX User-Defined Functions (UDF) designed to enable easy manipulation of hex colours for Power BI.
Download From DaxLib Download Example PBIP 0.1.2-beta
Colour Conversion
Functions for converting between different color formats:
- Convert between hex and integer formats
- Transform RGB values to hex
- Convert HSL colors to hex
Hex Colour Manipulation
Core functions for working with hex colours directly:
- Adjust color properties (hue, saturation, luminance, alpha)
- Extract color components
- Optimize text contrast
View Hex Manipulation Functions →
Colour Theming
Functions for creating and managing consistent color themes:
- Generate color palettes
- Create smooth color transitions
- Build linear color themes
Getting Started
- Download the library from DaxLib
- Install using TMDL view
- Start using the functions in your measures
For detailed examples, check out our example PBIP file.