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: 
Tommmy
Contributor III
Contributor III

sum and left

Hi experts

I need the sum of amount over all account not starting with '1' as first value. The following formula doesn't work, there is a syntax problem. Any ideas? Thanks.

sum({<left([Account], 1)-={'1'}>} amount)

Labels (5)
3 Replies
Mark_Little
Luminary
Luminary

I would move you left(Account,1) to script and then reference in the set analysis.

So 

left(Account,1) as Account_Flag

sum({<Account_Flag -={'1'}>} amount)

martinpohl
Partner - Master
Partner - Master

Hi,

the Flag suggest is the better, but you also can do this with set expression

sum({<Account-={"1*"}>} amount)

Regards

BrunPierre
Partner - Master II
Partner - Master II

This maybe

Sum({<"=Left([Account],1)"-={'1'}>}amount)