Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

sql expression in qlikview

Hi Experts,

i have the below expressions in sql.

Drops% =Fields!Drops.Value/Sum(Fields!Drops.Value, "Driver")


Run 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))

)

In Qlikview, Drops is calculated as below

Drops: sum(aggr(count(DISTINCT customer),ORDERNO))


how can i calculate above (sql) Drops% & Run Time in qlikview.


Please help

1 Solution

Accepted Solutions
Not applicable
Author

Run time: interval(sum(time)/24/60,'hh:mm')

View solution in original post

2 Replies
Gysbert_Wassenaar

Run Time: Time(Fields!Time.Value/86400, 'mm:ss')


talk is cheap, supply exceeds demand
Not applicable
Author

Run time: interval(sum(time)/24/60,'hh:mm')