Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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
Partner - Master

This maybe

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