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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error in Expression: if takes 2-3 parameters

Hi,

I have a straight table with a number of dimensions, one is calculated dimension to only include items that start with F.

I have added an expression to calculate the quantity this is a simple addition of 2 fields. When I refresh the presentation I don't have a problem.

However, I need to create another expression work out the invoice amount which is [Inv Qty]*[Sales Unit Price]. The expression editor says that there is an error in the expression and when the reports runs I get the error" Error in Expression: if takes 2-3 parameters. Even though it is not an if statement.

Any help would be appreciated as this is driving me made

20 Replies
vishsaggi
Champion III
Champion III

Can you show us the expressions you are using ?

Not applicable
Author

Sorry

Inv Qty is [Inventory Free Quantity]+[Inventory Reserved Quantity]

and

The price is [Inv Qty]*[Sales Unit Price]

in the second I get a message saying "Errors in expression"

ahaahaaha
Partner - Master
Partner - Master

Hi,

May be Sum( [Inv Qty]*[Sales Unit Price])

vishsaggi
Champion III
Champion III

Can you send me the snapshot where its throwing the error? Are Inv qty and Sales unit price fields from a table or labels from other expressions? I need to know where exactly you are using these.

Not applicable
Author

Capture.PNG

Inv Qty is an expression that I have built

Not applicable
Author

same issue still says it's an error

vishsaggi
Champion III
Champion III

Can you share the expression you have for this [Inv Qty]? Hmmm not sure why it is throwing error. BTW what error is that can you take a snapshot of that actual error msg?

awhitfield
Partner - Champion
Partner - Champion

Hi Dave,

any chance that you could upload an example QVW?

Andy

Not applicable
Author

no company policy, not even using the scrambler