Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Set analysis

Hi All ,

How to write this with set analysis expression.

if(dealstate_id=8 or dealstate_id=9 or dealstate_id=33 or dealstate_id=34 or dealstate_id=71,UPPER(customerFirstName)&' '&UPPER(customerSurname)  )

Thanks,

1 Solution

Accepted Solutions
sunny_talwar

Use this in your set analysis for your expression

{<dealstate_id = {8, 9, 33, 34, 71}>}

and create a new field in the script

Upper(customerFirstName & ' ' & customerSurname) as Customer_Full_Name

and use Customer_Full_Name as your dimension

View solution in original post

4 Replies
jyothish8807
Master II
Master II

Try this:

maxstring({<dealstate_id={'8','9','33','34','71'}>}UPPER(customerFirstName)&' '&UPPER(customerSurname))


Br,

KC

Best Regards,
KC
sunny_talwar

You can also try this

Upper(Only({<dealstate_id = {8, 9, 33, 34, 71}>} customerFirstName & ' ' & customerSurname))

suvechha_b
Creator III
Creator III
Author

Hi Sunny ,

I have tried your its coming error .Uppercase.PNG

I have used the below one in dimension . I am not sure is it the correct way of doing according to performance .of pivot table .

=if(dealstate_id=8 or dealstate_id=9 or dealstate_id=33 or dealstate_id=34 or dealstate_id=71,UPPER(salesperson)) .

it is working but my pivot table is slow that why I am trying of different set analysis.

Thanks

sunny_talwar

Use this in your set analysis for your expression

{<dealstate_id = {8, 9, 33, 34, 71}>}

and create a new field in the script

Upper(customerFirstName & ' ' & customerSurname) as Customer_Full_Name

and use Customer_Full_Name as your dimension