Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Newbie Alert: If Statement between two number columns

Hi All   I was tring to add a new column with a very simple Goal - If estimated costs is less than or equal to Actual Cost  then its green ; otherwise red.   I know below  (Fig 1)  shows equal to...
  • TomMartens's avatar
    3 years ago

    Hey Anonymous,

     

    try the DAX below to create a calculated column:

    Cost RAG = 
    IF( PMO[Estimated Labour Cost - Widget Project Board] <= PMO[Actual Labour Cost to Date - Widget Project Board],"Green","Amber" )

    Hopefully, this provides what you are looking for.

     

    Regards,

    Tom