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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with set analysys when text variable contain space or special symbol

I can't figure out how can I overcome this issue.

I have a variable (Top1) which determines the name of 1 top selling brand: =only({<Brand= {"=rank(sum(Sales), Brand) =1"}>} Brand )

then this value is passed to textbox to get the sales for this top brand: =sum({$<Brand={$(Top1)}>}Sales),

Formula works fine if Brand doesn't have spaces or special characters. Please see the screenshot for the results:

error loading image

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello and welcome to the Forums,

I think it's because text in set analysis have to be quoted:

=sum({$<Brand={'$(Top1)'}>}Sales)


Hope that helps

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello and welcome to the Forums,

I think it's because text in set analysis have to be quoted:

=sum({$<Brand={'$(Top1)'}>}Sales)


Hope that helps

Not applicable
Author

Many thanks, Miguel. It worked.