Please help. I would like to edit the code below so that cells in my table that have null values will show the word "Missing" rather than be blank.
I assume it is this line that needs to change. "numsurcharge" is the column that occasionally has blank information that I would like to clearly identify with the word "Missing."
displayText : Text($datapoint.numsurcharge),
Thank you!
Arcade Expression for Table in GIS Dashboard:
return {
cells: {
name: {
displayText : $datapoint.name,
textColor: '',
backgroundColor: '#ffffff',
textAlign: 'center',
iconName: '',
iconAlign: '',
iconColor: '',
iconOutlineColor: ''
},
numsurcharge: {
displayText : Text($datapoint.numsurcharge),
textColor: '',
backgroundColor: '#ffffff',
textAlign: 'center',
iconName: '',
iconAlign: '',
iconColor: '',
iconOutlineColor: ''
},
currentrenteffdate: {
displayText : Text($datapoint.currentrenteffdate),
textColor: '',
backgroundColor: '#ffffff',
textAlign: 'center',
iconName: '',
iconAlign: '',
iconColor: '',
iconOutlineColor: ''
},
}