Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

IF Condition

Hello Qlik Folks,

I have 2 expression some thing like below 

if(isnull(OldPrize),(sum(GROSS_SALES)/sum(SHIPPED_QUANTITY)),OldPrize)---Old Gross Price / Unit - this is working fine 

if(isnull(AdjSale),(sum([Adj Sales])/sum(SHIPPED_QUANTITY)),AdjSale)----Old Adj Sales/Unit- Not Working 

the only diff I see in both expressions GROSS_SALES vs [Adj Sales], GROSS_SALES  is coming from data, [Adj Sales] is an other expression contains multiple other expressions.

[Adj Sales] defined as: [Gross Sales] - (Royalties + [PA - Acc] + [PA - UnAcc] + [Unplanned Allowances])

which is 

clipboard_image_0.png

when I elaborate it is throwing error in expression please help me to write this in proper format?

 

Tanks,

D

Labels (5)
1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Did you notice that the error is actually coming from double commas?

clipboard_image_0.png

 

View solution in original post

2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Did you notice that the error is actually coming from double commas?

clipboard_image_0.png

 

Brett_Bleess
Former Employee
Former Employee

D, did Arthur's post catch the issue?  If so, please do not forget to use the Accept as Solution button on his post to mark that as the solution and give him credit. 

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.