Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
pranubitla
Contributor II
Contributor II

Convert time value into Qlikview

Greetings,

I am struggling here to write the below SQL calculation in QlikView. please suggest





1. Time:

=IIF(Fields!Time.Value\60 < 10, "0" + CStr(Fields!Time.Value\60), CStr(Fields!Time.Value\60))

+ ":" +

IIF(Fields!Time.Value mod 60 < 10, "0" + FormatNumber(Fields!Time.Value mod 60,0), FormatNumber(Fields!Time.Value mod 60,0))

----------------------------------------------------------------------------------

2. Total:

=IIF((Sum(Fields!Time.Value)\60) < 10, "0" + CStr(Sum(Fields!Time.Value)\60), CStr(Sum(Fields!Time.Value)\60))

+ ":" +

IIF((Sum(Fields!Time.Value) mod 60) < 10, "0" + FormatNumber(Sum(Fields!Time.Value) mod 60,0), FormatNumber(Sum(Fields!Time.Value) mod 60,0))

Labels (1)
1 Reply
sunny_talwar
MVP
MVP

Not an expert in SQL, but seems like you might be able to use Interval() function -> QlikView ‒ Interval - script and chart function