I have an dashboard indicator that displays sum of a field (bctotal). When there are no records, it shows "no data." I would like it to show 0 (zero) AND the icon. If I change the label to 0 for no data, the icon is not present. I tried using advanced formatting to check for null and return 0, but that didn't work. Help?
return {
textColor: '#ffffff',
backgroundColor: '#38a800',
middleText: Iif(IsEmpty($datapoint["sum_bctotal"]), 0, $datapoint["sum_bctotal"]),
middleTextColor: '',
middleTextOutlineColor: '',
middleTextMaxSize: 'large',
bottomText: 'CONTAINERS',
bottomTextColor: '',
bottomTextOutlineColor: '',
bottomTextMaxSize: 'small',
iconName: 'icon1',
iconAlign: 'left',
iconColor: '',
iconOutlineColor: ''
}
Indicator currently shows

but would like it to look like this, except 0 instead of 58
