Column formatting with Currency

Iron Contributor

Hi There Everyone!

 

I have started using the column formatting for some simple things but ran into my first speed bump. I have a calculated currency column, and my JSON formatting works just as I want, the only problem is the JSON formatting strips the currency format away. 

 

Can someone point me in the right direction on how to format this column?

 

{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"attributes": {
"class": "=if(@currentField > 0, 'sp-field-severity--blocked', '')"
},
"children": [
{
"elmType": "span",
"style": {
"display": "inline-block",
"padding": "0 4px"
},
"attributes": {
"iconName": "=if(@currentField > 0, 'Error', '')"
}
},
{
"elmType": "span",
"txtContent": "@currentField"
}
]
}
0 Replies