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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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
Partner - Champion III
Partner - Champion III

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