Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

undefined

Create a calculated column in Job Table as "Status Colour Code" where Job Status = "SUCCESS" should be 1, "FAILED" should be 2, "CANCELLED should be 3"

  • TheoC's avatar
    TheoC
    4 years ago

    You may need to write the table as 'Job Table' rather than Job Table.

4 Replies

  • Anonymous , a new column

     

    Status Colour Code = Switch ( Job Status,

    "SUCCESS" , 1,

    "FAILED" , 2,

    "CANCELLED , 3

    )

  • TheoC's avatar
    TheoC
    Community Champion
    Status Colour Code =

    SWITCH (
        TRUE () , 
             Job Table[Job Status] = "SUCCESS" , 1 ,
             Job Table[Job Status] = "FAILED" , 2 ,
             Job Table[Job Status] = "CANCELLED" , 3 )

    Anonymous  Hope this is what you're after 🙂 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank for your reply.

      But it did not work and I am facing an error

       

       

       

      • TheoC's avatar
        TheoC
        Community Champion

        You may need to write the table as 'Job Table' rather than Job Table.