
Anonymous
Not applicable
2015-12-30
05:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
left function in set analysis
hello,
how to use left function in set analysis if i have multiple conditions-
for example
if(left(item,2)=22 or if(left(item,2)=24 and so on.. then sum the sales
i want to write it in set analysis so that in any case it will show me the sales of those items.
thanks!
- Tags:
- new_to_qlikview
7,317 Views
1 Solution
Accepted Solutions

Anonymous
Not applicable
2015-12-30
08:02 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 Replies

Anonymous
Not applicable
2015-12-30
08:02 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
may be this?
=sum({<Item={'22*','24*'>} Sales)

Master
2015-12-30
08:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can use left function and modify your dimension as required in back-end and call it in front end into set analysis .
Check this ,
Qlik Design Blog : String Functions | Qlik Community
- Left(YourFieldName, 3) as [New Field Name]
To pick desired record.
Hope this Helps,
Thanks,
Hirish
HirisH
“Aspire to Inspire before we Expire!”
“Aspire to Inspire before we Expire!”
5,457 Views

Anonymous
Not applicable
2015-12-30
08:07 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks again Balraj
5,457 Views

MVP
2015-12-30
08:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just for record purposes, you are missing a curly bracket:
=Sum({<Item={'22*','24*'}>} Sales)

Anonymous
Not applicable
2015-12-30
08:37 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ohh..Okay.
5,457 Views

MVP
2015-12-30
08:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Anonymous
Not applicable
2015-12-30
08:40 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank Sunny
5,457 Views
