Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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!


1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

may be this?

=sum({<Item={'22*','24*'>} Sales)

View solution in original post

7 Replies
Anonymous
Not applicable
Author

may be this?

=sum({<Item={'22*','24*'>} Sales)

HirisH_V7
Master

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!”
Anonymous
Not applicable
Author

Thanks again Balraj

sunny_talwar

Just for record purposes, you are missing a curly bracket:

=Sum({<Item={'22*','24*'}>} Sales)

Anonymous
Not applicable
Author

ohh..Okay.

sunny_talwar

Anonymous
Not applicable
Author

Thank Sunny