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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
IAMDV
Master II
Master II

Space (Character) problem in Set Analysis

Dear All,

I have an expression which works for all the dimensions expect one of them. The one which does not work have a space between two words like (example : Hard Coder). And rest all of them are single words and they work perfect! Please help me to solve this problem...

=Sum({1<Year={$(=($(vMaxYear)))}, MonthNumber={$(=($(vCurrentMonthNumber)))}, Usertype = {$(=(Usertype))}>} Sales)

Usertype : This is the field name which contains - Hard Coder.

I hope this makes sense. I am sure this must be simple but I can't get my head around this one...

TIA!

Cheers - DV

Labels (1)
1 Solution

Accepted Solutions
Miguel_Angel_Baeyens
Support
Support

Hello,

Try single quoting the usertype

Sum({1<Year={$(=($(vMaxYear)))}, MonthNumber={$(=($(vCurrentMonthNumber)))}, Usertype = {'$(=(Usertype))'}>} Sales)


Hope that helps.

View solution in original post

2 Replies
Miguel_Angel_Baeyens
Support
Support

Hello,

Try single quoting the usertype

Sum({1<Year={$(=($(vMaxYear)))}, MonthNumber={$(=($(vCurrentMonthNumber)))}, Usertype = {'$(=(Usertype))'}>} Sales)


Hope that helps.

IAMDV
Master II
Master II
Author

Miguel - Thanks so much! I had tried the same but in wrong place. I was trying like this...

Sum({1<Year={$(=($(vMaxYear)))}, MonthNumber={$(=($(vCurrentMonthNumber)))}, Usertype = {$(=('Usertype'))}>} Sales)

I am kicking myself now!

Thanks again for your help.