Forum Discussion

RachelMiller's avatar
RachelMiller
Qrew Cadet
11 years ago

How do I add color coding to a calendar report based on text?

I have a calendar report that I need to add color coding to. I'm looking for a simple formula that says:

If [Activity] = Build, make bar green

If [Activity] = Go-Live, make bar red

If [Activity] = Support, make bar blue

I'm not sure where to add this formula since I don't see a formula option for the report type calendar. I've tried adding the formula to a field I'm listing on the calendar but the color didn't change.

I'm hoping there is an easy solution that I'm just not thinking of.

Thanks!

24 Replies

  • I can only tell you an example what works.  I suspect it has to do with the difference between your  <div style> and my <span style>.
  • This didn't work for me. When I setup the Activity Label field, I kept getting a syntax error message. Apparently, you can't just put in the html, there has to be an If statement or some other type of expression.
  • I suggest that you post a new question and reference this thread in your question.  Please also post your current formula and what the error message says.
  • AZAZ's avatar
    AZAZ
    Qrew Member
    I created this and it worked for me. All you have to do is create a new TEXT Formula field. Put this formula it there. Change the field names to your fields and it should work. 

    var text NameAbsenceHours = List(" | ", [Employee First Name] &" "& [Employee Last Name], [Absence],[Hours]);

    If([Status]="Approved", "<b><font color = #008000>" & $NameAbsenceHours & "</font color></b>", "<b><font color = #FF0000>" & $NameAbsenceHours & "</font color></b>" )