Forum Discussion
Anonymous
4 years agoNot applicable
Create Measure for Conditional Formatting Categorical values
Hi there, I have a categorical column with three values: On Time, Late, or Blank. I am trying to apply condition formatting to the x-axis (date) for a chart. I need a measure to return red if va...
amitchandak
4 years agoSuper User
Anonymous , Create a color measure and use that in conditional formating using field value option
Ontime_Number =
VAR OnTime = max(FlaggingLabor[On Time])
RETURN
SWITCH(TRUE(),
OnTime = "On Time", "Blue",
OnTime = "Late", "Red",
ISBLANK(OnTime),"Green"
)
How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4
- Anonymous4 years agoNot applicable
Hi amitchandak ,
Thanks for your response. When I implement your suggestion, all of the dates on the x-axis still show as one color or "On Time". I think what is happening, is that on some dates have multiple values for the field On Time. In this case, I would want to have the date show red if any record is late on that date. Is this possible?
Thanks