Cheat Sheets/Power BI/CUSTOMDATA
DAX function

CUSTOMDATADAX function reference

Read a value passed in the connection.

Syntax

dax
CUSTOMDATA()

Examples

dax
CUSTOMDATA()
A string
dax
LOOKUPVALUE(Tenant[Region], Tenant[TenantID], CUSTOMDATA())
Looks up a region using a tenant ID passed in via the connection string, for embedded multi-tenant RLS
dax
IF(ISBLANK(CUSTOMDATA()), "No custom data passed", CUSTOMDATA())
Guards against a report opened without the CustomData connection parameter set

Common mistakes & gotchas

Related DAX functions

From Security & context info

← Back to the Power BI (DAX) cheat sheet