6

Tip of the Day - How to format a measure that is in seconds as hours minutes and seconds

How to format a measure that is in seconds as hours minutes and seconds

Imagine you have a table column in a model that represents the duration of a period in seconds, and you plan to use it to create a measure. The resulting measure should be able to bring back SUM, Average, Max etc. and the count is in number of seconds. 

As it it very complicated to relate time in seconds for larger numbers, you might prefer to present the results in a more convenient time format like hours minutes and seconds. This can be achieved pretty easily.

  1. Just go to the measure settings and access the Format Mask
  2. Delete the existing formatting and instead type “hh:mm:ss” (notice this can be done from the tables or the columns view)
  3. Apply

 

 

After processing you will receive Seconds formatted as below

 

 

P.S. This will also work directly in a discover if you change the format in the measure properties. Or via the format pane in a discover.

 

Let us know how you like these small tips below

2 replies

null
    • Achim_Stump
    • 3 mths ago
    • Reported - view

    Have you tried to get this formatted seconds to an axis in a bar chart or a line chart?
    I got this:

      • Customer Solutions Architect
      • Moshe_Yossef
      • 3 mths ago
      • Reported - view

       

      just remove the auto format from the axis:
       

Content aside

  • 6 Likes
  • 3 mths agoLast active
  • 2Replies
  • 140Views
  • 3 Following