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


Library in Action


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

View Conversion Functions →


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

View Theming Functions →


Getting Started

  1. Download the library from DaxLib
  2. Install using TMDL view
  3. Start using the functions in your measures

For detailed examples, check out our example PBIP file.