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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Error in expression: ')' expected

Hi experts

This formula gives an error:  Sum([Group]={'General','Cars','Bikes','Houses'} [Total Stock])

It says: Error in expression: ')' expected

Where is the problem? Brackets should be fine.

Thanks for any help.

Tom

1 Solution

Accepted Solutions
Taoufiq_Zarra

Hi @TomBond77  the difference :

Sum({<[Group]={'General','Cars','Bikes','Houses'}>} [Total Stock])

if it doesn't solve the problem maye be can you share a sample data and the expected output

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

5 Replies
Taoufiq_Zarra

@TomBond77  like :

Sum({<[Group]={'General','Cars','Bikes','Houses'}>} [Total Stock])

if you have [Total Stock] field if not maye be you want :

Sum({<[Group]={'General','Cars','Bikes','Houses'}>} Total [Stock])

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Qlik1_User1
Specialist
Specialist

@TomBond77 ,Try this

SUM({<[Group]={'General','Cars','Bikes','Houses'}>} [Total Stock])

TomBond77
Specialist
Specialist
Author

Hi, I don't see any difference to my formula. Or am I blind? 😉

TomBond77
Specialist
Specialist
Author

Hi Taoufiq 

"Total Stock" is one measure. 

Do you other way of solution?

Rgds

Tom

Taoufiq_Zarra

Hi @TomBond77  the difference :

Sum({<[Group]={'General','Cars','Bikes','Houses'}>} [Total Stock])

if it doesn't solve the problem maye be can you share a sample data and the expected output

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉