Prompt Details
Model
(claude-4-6-sonnet)
Token size
292
Example input
[ConditionColumnA]: PaymentReceived
[ConditionColumnB]: ItemsShipped
[ExemptColumn]: IsExempt
[TableName]: Orders
Example output
// Example 1: Orders table — PaymentReceived and ItemsShipped are the two conditions, IsExempt is the exempt flag
Compliance Status =
SWITCH(
TRUE(),
// Exempt: row is marked as excluded from compliance checks
Orders[IsExempt] = TRUE(), "Exempt",
// Compliant: payment received AND items shipped
Orders[PaymentReceived] = TRUE() && Orders[ItemsShipped] = TRUE(), "Compliant",
// Partial: one condition met but not both
Orders[PaymentReceived] = TRUE() || Orders[ItemsShipped] = TRUE(), "Partial",
// Non-Compliant: neither condition met
"Non-Compliant"
)
// Self-check: possible output values are Compliant, Partial, Non-Compliant, Exempt
By purchasing this prompt, you agree to our terms of service
CLAUDE-4-6-SONNET
Evaluate any combination of true/false columns in Power BI to return Compliant, Partial, Non-Compliant, or Exempt. Paste your column names and conditions — get a clean, production-ready DAX calculated column with inline comments and a self-check note. Built for Power BI report developers who need consistent, auditable compliance logic.
...more
Added 1 week ago
