Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Everyone,
I am trying to highlight the date column red when the date is blank and the status field is "Completed"
I have been able to create a measure that turns the date field red when status is completed, how do i make this only happen when the date is blank?
Solved! Go to Solution.
[Color Date MPLA] =
var StatusValue =
SELECTEDVALUE( 'PLP & MPLA Qualification Data'[MPLA Status] )
var DateValue_ =
SELECTEDVALUE(
'PLP & MPLA Qualification Data'[MPLA Date],
// This value makes sure that when many dates are
// visible in the current context BLANK is not
// returned as that could change the logic.
dt"3000-01-01"
)
var ColorCondition =
StatusValue = "Completed" && ISBLANK( DateValue_ )
VAR Color =
IF( ColorCondition, "red" )
return
Color
[Color Date MPLA] =
var StatusValue =
SELECTEDVALUE( 'PLP & MPLA Qualification Data'[MPLA Status] )
var DateValue_ =
SELECTEDVALUE(
'PLP & MPLA Qualification Data'[MPLA Date],
// This value makes sure that when many dates are
// visible in the current context BLANK is not
// returned as that could change the logic.
dt"3000-01-01"
)
var ColorCondition =
StatusValue = "Completed" && ISBLANK( DateValue_ )
VAR Color =
IF( ColorCondition, "red" )
return
Color
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |