Select to view content in your preferred language

Trying to Convert a field that is in minutes to hours via arcade for a Dashboard Indicator.

145
4
Jump to solution
Friday
Labels (1)
Zelong
by
Occasional Contributor

I am trying to create an indicator that will show my drone flight time from minutes (which is what it is currently in from my Survey 123 app) to hours.  Per the image what I want to do is turn the minutes into hours.

Zelong_0-1763151864569.png

 

I am grasping at straws on how to figure this out.  Has anyone done something similar?

 

0 Kudos
2 Solutions

Accepted Solutions
Neal_t_k
Frequent Contributor

In the configuration settings, in the indicator section, click advanced settings and set the display text to something like:

middleText: ($datapoint.minutes)/60,
 
edit: link added
 
You could also use Round() to standardize decimal places or some other formatting in here to achieve what you want.

View solution in original post

Neal_t_k
Frequent Contributor

Something like this should do it

Round($datapoint.SUM_FLIGHT_TIME_NUMBER/60,0),

Then you can also change the top text to "Flight Time in Hours"

View solution in original post

0 Kudos
4 Replies
Neal_t_k
Frequent Contributor

In the configuration settings, in the indicator section, click advanced settings and set the display text to something like:

middleText: ($datapoint.minutes)/60,
 
edit: link added
 
You could also use Round() to standardize decimal places or some other formatting in here to achieve what you want.
Zelong
by
Occasional Contributor

that got me to here.

Zelong_0-1763153892036.png

 

Now I just need to round up.  

0 Kudos
Neal_t_k
Frequent Contributor

Something like this should do it

Round($datapoint.SUM_FLIGHT_TIME_NUMBER/60,0),

Then you can also change the top text to "Flight Time in Hours"

0 Kudos
Zelong
by
Occasional Contributor

Thank you!

0 Kudos