Complimentary resource

DAX function to create icons easily in Power BI

A ready-to-use function to generate icons in a few clicks, with access to more than 1,000 Lucide icons.

Animated preview of the Lucide UDF for Power BI
tmdl · udf_function_embedded_all_icons.tmdl

Copy the TMDL code

Open the file

DAX function to create icons easily in Power BI

This resource includes a ready-to-use TMDL UDF to generate icons easily inside Power BI. It is based on the open-source Lucide library and gives you access to more than 1,000 icons in just a few clicks.

What you get

  • A reusable function for your visuals
  • Clean and consistent SVG rendering
  • A simple baseline to customize your business badges

Included file

  • udf_function_embedded_all_icons.tmdl

Quick setup

  • In the TMDL view inside Power BI, click Copy the code.
  • Copy the code.
  • Paste it into TMDL.
  • Run the script.
  • Create a new measure.
  • Use the example below as a starting point.

Create a new DAX measure next and use the example below as a quick starting point inside Power BI.

Example DAX measure

imgBadgeEmbeddedAllIcons(
        "circle-dollar-sign",
        "#FFFFFF",
        "#2563EB",
        60,
        40,
        1.5
)

If you have questions, or if you run into any difficulty setting this up, feel free to message me on LinkedIn. My inbox is open, so use it.

If you find this library useful, I am not asking you to buy me a coffee. Just send me a quick LinkedIn message to say you think it is cool. I would genuinely love the feedback.

No Warranty / Limitation of Liability

This function is provided "as is" without support and without warranties or conditions of any kind, either express or implied. I shall not be liable for any damages arising from use, misuse, or misconfiguration of this function.

Ready to go further
Benjamin Ejzenberg

Benjamin Ejzenberg

Microsoft MVP and Power BI Trainer

Ready to accelerate on Power BI?

Discover our services
  • Tailored training
  • Support toward agentic AI
  • Advanced consulting
Icon browser

Browse all Lucide icons

Search by keyword, scan the full catalog, then click an icon to copy its exact name for your DAX measure.

1951 icons available
Click an icon to copy its name
No icon matches your search.

Lucide icons are displayed locally for search and selection. License: ISC.