Hi @allyazz ,
You need to switch to Advanced mode to get values from other columns.
Below is my Demo JSON code for your reference:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"attributes": {
"class": "=if(@currentField != [$sum_x0020_calc],'sp-css-backgroundColor-blockingBackground50', '')"
}
}
Test result:
Besides, the data type returned from the calculated column must be number type:
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.