Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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 too however i cant get anythng working and I cant see whats wrong?
Appreciate any advice.
Jimmy
Cost RAG = PMO[Estimated Labour Cost - Widget Project Board] = PMO[Actual Labour Cost to Date - Widget Project Board],"Green","Amber")
Fig 1
Solved! Go to Solution.
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
@TomMartens Would you believe me if I told you I tried this and it was not working.
And I just copied your code and it works.
It change it around to this but all good.
Cost RAG = 
IF( PMO[Estimated Labour Cost - Widget Project Board] >= PMO[Actual Labour Cost to Date - Widget Project Board],"Green","Amber" )
Thanks Tom. I know it was an easy peasy one.
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.