Select to view content in your preferred language

Dashboard expression to calculate total of 3 separate fields

243
14
Wednesday
aroininen
Occasional Contributor

Hello folks,

I am trying to get the total of three fields to display on an Dashboard Indicator , Table or Gauge

the layer where the fields are located is called:

TBM Internal Planning - Sewer Capacity-CWWTP

Looking for the Gauge/ Indicator/ table to show something like this:

CanCoonect 1614

Reserved 3193

DesPro 1679

Total 6486

All would be ideal ... just the total would be fine too..

Here is my expression so far.... any suggestions...? this expression seemed to work in a popup but no luck in dashboard

FYI - I'm pretty new to Arcade - 

var Canc = Sum(fs, "S_CanConne_");
var Reserved = Sum(fs, "S_Reserved");
var DeswPro = Sum(fs, "S_DesWpro");
var Total = Canc + Reserved + DeswPro;

// structure the result
var result = "CanConnect: " + CanC;
result += TextFormatting.NewLine + "Reserved: " + Reserved;
result += TextFormatting.NewLine + "DeswPro: " + Deswpro;
result += TextFormatting.NewLine + "Total: " + Total;

// return the result
return result;

 

0 Kudos
14 Replies
aroininen
Occasional Contributor

I have ... different error though...

Test execution error: Unknown Error. Verify test data

0 Kudos
KenBuja
MVP Esteemed Contributor
0 Kudos
aroininen
Occasional Contributor

aroininen_0-1749751346097.png

 

0 Kudos
KenBuja
MVP Esteemed Contributor

That appears to be the page for 4a1e7bbdef0045599cbf567451bcd2bf

0 Kudos
aroininen
Occasional Contributor

interesting...  thanks for all your help on this I will keep playing around and hopefully get it to work cheers

 

0 Kudos