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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
qliklizzy
Creator II
Creator II

what am I doin wrong? - expression

Hi

i have this formula which works great until i add in a IF to it - what am i doing wrong?

thanks

avg({<OperationOrder={1}>} {<CancelledOnDay={0}>} MinAnaesthetistStart)

avg(if(Session='AM',{<OperationOrder={1}>} {<CancelledOnDay={0}>} MinAnaesthetistStart))

1 Solution

Accepted Solutions
sunny_talwar

Try using the set analysis before the if:

Avg({<OperationOrder={1}, CancelledOnDay={0}>} If(Session='AM', MinAnaesthetistStart))

View solution in original post

9 Replies
sunny_talwar

Try using the set analysis before the if:

Avg({<OperationOrder={1}, CancelledOnDay={0}>} If(Session='AM', MinAnaesthetistStart))

alexandros17
Partner - Champion III
Partner - Champion III

try with:

avg({<OperationOrder={1}>} {<CancelledOnDay={0}>} if(Session='AM',MinAnaesthetistStart))

avinashelite

you can also try like this :

if(Session='AM',avg({<OperationOrder={1}>} {<CancelledOnDay={0}>} MinAnaesthetistStart))

qliklizzy
Creator II
Creator II
Author

Thanks you works perfect!

i just got it all the wrong way round, simple hey, yet seems backwards.

big leanring curve this Qlikview thanks

qliklizzy
Creator II
Creator II
Author

Thanks you works perfect!

i just got it all the wrong way round, simple hey, yet seems backwards.

big leanring curve this Qlikview thanks

qliklizzy
Creator II
Creator II
Author

i did have it like this to start, but it woudlnt work so tried it that way and thought - im not understand this, i best ask the professionals

thanks for the reply

sunny_talwar

No problem.

I am glad I was able to help.

Best,

Sunny

alexandros17
Partner - Champion III
Partner - Champion III

Wellcome in this wonderful Group!

sasiparupudi1
Master III
Master III

Please close this thread by marking the correct answer