
Contributor III
2022-09-15
07:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
491 Views
3 Replies


Luminary
2022-09-15
08:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
474 Views


Partner - Master
2022-09-15
08:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
the Flag suggest is the better, but you also can do this with set expression
sum({<Account-={"1*"}>} amount)
Regards
471 Views

Partner - Master
2022-09-15
08:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This maybe
Sum({<"=Left([Account],1)"-={'1'}>}amount)
471 Views
