Prompt Details
Model
(claude-4-6-sonnet)
Token size
254
Example input
[TableName]: Orders
[DateColumn]: ShipDate
[MeasureName]: OrderDateFormatted
[FormatStyle]: DD/MM/YYYY
Example output
OrderDateFormatted =
VAR _Date = SELECTEDVALUE( Orders[ShipDate] )
RETURN
IF(
ISBLANK( _Date ),
"",
-- Formats date as short numeric: DD/MM/YYYY
FORMAT( _Date, "DD/MM/YYYY" )
)
By purchasing this prompt, you agree to our terms of service
CLAUDE-4-6-SONNET
Stop hand-coding date formats in every report. This prompt generates a production-ready DAX measure that formats any date column exactly the way you need it — short, long, relative, or fully custom. Works with any table and any date field across any Power BI model.
...more
Added 3 weeks ago
