Autor Thema: Statistics By Date Minutes (VIEW)  (Gelesen 2210 mal)

Offline alecrespi

  • Junior Mitglied
  • **
  • Beiträge: 80
  • Geschlecht: Männlich
    • alecrespi
Statistics By Date Minutes (VIEW)
« am: 07.03.07 - 10:26:19 »
In the view mentioned above I can see 2 different column with 2 differen formulas:

1) TIME OF FIRST RESPONSE
_intTimeMinutes := @Integer(@Modulo((@TextToTime(openedByIT)- @TextToTime(dspDateCreated));3600)/60);
_intTimeHours := @Integer((@TextToTime(openedByIT)- @TextToTime(dspDateCreated))/3600);
@Text(_intTimeHours) + ":" + @Right("00" + @Text(_intTimeMinutes);2)

2) TIME OF TICKET COMPLETION
_intTimeMinutes := @Integer(@Modulo((@TextToTime(DateCompleted)- @TextToTime(dspDateCreated));3600)/60);
_intTimeHours := @Integer((@TextToTime(DateCompleted)- @TextToTime(dspDateCreated))/3600);
@Text(_intTimeHours) + ":" + @Right("00" + @Text(_intTimeMinutes);2)

Is there a way to count the difference (in format "hh.mm") between these two column or value?
Thank you

Offline Thomas Schulte

  • @Notes Preisträger
  • Moderator
  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 4.388
  • Geschlecht: Männlich
  • Ich glaub mich tritt ein Pferd
Re: Statistics By Date Minutes (VIEW)
« Antwort #1 am: 07.03.07 - 10:57:07 »
Build a new column and insert the following formula:
Code
_intTimeMinutes := @Integer(@Modulo((@TextToTime(DateCompleted)- @TextToTime(openedByIT));3600)/60);
_intTimeHours := @Integer((@TextToTime(DateCompleted)- @TextToTime(openedByIT))/3600);
@Text(_intTimeHours) + ":" + @Right("00" + @Text(_intTimeMinutes);2)
« Letzte Änderung: 07.03.07 - 10:59:08 von Thomas Schulte »
Thomas Schulte

Collaborative Project Portfolio and Project Management Software

"Aber wo wir jetzt einmal soweit gekommen sind, möchte ich noch nicht aufgeben. Versteh mich recht, aufgeben liegt mir irgendwie nicht."

J.R.R.Tolkien Herr der Ringe, Der Schicksalsberg

OpenNTF Project: !!HELP!! !!SYSTEM!!  !!DRIVER!!

Skype: thomasschulte-kulmbach

Offline alecrespi

  • Junior Mitglied
  • **
  • Beiträge: 80
  • Geschlecht: Männlich
    • alecrespi
Re: Statistics By Date Minutes (VIEW)
« Antwort #2 am: 08.03.07 - 09:34:29 »
that's incredible!
it suits perfectly my needs
 ;D

thank you very much.
you are GREAT
 8)

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz