Select to view content in your preferred language

how to add k in arcade if value more zero

358
1
12-31-2023 05:48 PM
maherelayyan2
Emerging Contributor

Hi 

Since i am new to Arcade , how can i how to add letter k in arcade if value more zero in Arcgis dashboard indicator values

since some values are zero which i dont want to add K in those cases

Thanks 

0 Kudos
1 Reply
AlfredBaldenweck
MVP Regular Contributor

Should be something like this:

var val = $feature.whatever

if (val>0){
    val = Text(val) + "k"
}
return val
0 Kudos