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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Excel expression **URGENT**

Hi,

Can someone please help me understand what this excel expression does...

=AVERAGE((IF(SUBTOTAL(9,OFFSET($L$5,ROW($L$5:$L$706)-ROW($L$5),0))<>0,SUBTOTAL(9,OFFSET($L$5,ROW($L$5:$L$706)-ROW($L$5),0)))))

Thanks!

10 Replies
dcohen13
Contributor III
Contributor III

Please post sample data...

robert_mika
Master III
Master III

This is array formula winch is taking Average from filtered column

Before

30-Apr-15 3-46-18 PM.jpg

after filter has been apply

30-Apr-15 3-46-42 PM.jpg

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Why ask in a QlikView forum? Don't we all "hate" Excel?

robert_mika
Master III
Master III

Not all...

Anonymous
Not applicable
Author

Can you please help me write this in qlikview

if(sum([CC.Total Hotel Cost])/sum([CC.Rooms per Night]) <> '0' , sum([CC.Total Hotel Cost])/sum([CC.Rooms per Night]))

am trying to exclude 0 values from average

shree909
Partner - Specialist II
Partner - Specialist II

Hi,

Try this,

=if((sum([CC.Total Hotel Cost])/sum([CC.Rooms per Night])) > 0 , (sum([CC.Total Hotel Cost])/sum([CC.Rooms per Night])))

Thanks...

Anonymous
Not applicable
Author

No that didn't work...

robert_mika
Master III
Master III

Can you describe your problem,post some data or add your qvw?

danieloberbilli
Specialist II
Specialist II

just to add an idea: one way to exclude zero values could be done in set analysis:

Avg({<MyField={">0"}>} MyField)