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: 
Sai_Mohan
Contributor III
Contributor III

To calculate avg() for the Expression

Hi All,

I am new to qlik sense. I have one expression and i am trying to calculate average for that. Please help me with that.

Expression:

IF(MATCH(Status,'Active'),'NA',    REPLACE(REPLACE(REPLACE(REPLACE(
INTERVAL(TIME(EndDate, 'd:hh:mm:ss') - TIME(Begindate, 'd:hh:mm:ss'), 'd!hh@mm#ss$')
,'!','d : '),'@','h : '),'#','m'),'$','s')

 

Thanks In Advance! 

Sai

Labels (1)
2 Replies
JustinDallas
Specialist III
Specialist III

It's not quite clear what you want to AVG().  In any case, I would do all the ...REPLACE(REPLACE(REPLACE.. in my data load and not in my dimension or measure.

Sai_Mohan
Contributor III
Contributor III
Author

Hi @JustinDallas 

Thanks for replying!

I got solution for that.

 

Thanks 

Sai