Prompt Details
Model
(claude-4-6-sonnet)
Token size
379
Example input
[TABLE NAME]: Employees
[SLICER COLUMN]: Department
[PREFIX LABEL]: Dept
[DEFAULT TITLE]: Headcount Report
Example output
// Example 1: Orders table — Year slicer prepended to Sales Overview title
Report Title =
VAR vSelected = SELECTEDVALUE(Orders[Year], BLANK()) // Read selected Year from slicer; blank if none or multiple
VAR vDefault = "Sales Overview" // Default title when no year is selected
VAR vResult =
IF(
ISBLANK(vSelected),
vDefault, // Return default title if no year selected
"Year: " & vSelected & " | " & vDefault // Prepend Year label and selected value
)
RETURN vResult
By purchasing this prompt, you agree to our terms of service
CLAUDE-4-6-SONNET
Make your Power BI report titles respond to slicer selections automatically. This prompt builds a DAX measure that prepends a user-selected value to any default title string, so your report header always reflects the current filter context. Works with any slicer column in any table — no hardcoded values, no manual updates.
...more
Added 3 days ago
