newbie - Simple beast mode calc not showing in Summary number

Newbie here...

I am simply trying to divide a field by a number to convert total seconds into Hours:

`calendar_duration`/3600

 

Calendar_duration is a number. The calculation works but does not show as in the summary number section.

Must be simple syntax to fix this. Sorry I am new to SQL code

 

Thanks,

Best Answer

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    Hi @tstimple ,

     

    This is because you can't use a beast mode as a summary number unless you're using aggregate functions (SUM, COUNT etc)

     

    I'm not certain exactly what you're trying to show as a summary number but if you're looking for the total across all your rows you could do:

    SUM(`calendar_duration`/3600)
    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    Hi @tstimple ,

     

    This is because you can't use a beast mode as a summary number unless you're using aggregate functions (SUM, COUNT etc)

     

    I'm not certain exactly what you're trying to show as a summary number but if you're looking for the total across all your rows you could do:

    SUM(`calendar_duration`/3600)
    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • Thanks Grant

    That's all (and exactly what) I needed!