
Contributor III
2020-07-13
11:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
560 Views
2 Replies

Specialist III
2020-07-13
02:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
530 Views

Contributor III
2020-07-14
02:25 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
516 Views
