Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
IAMDV
Luminary Alumni
Luminary Alumni

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

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

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

Hello,

Try single quoting the usertype

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


Hope that helps.

IAMDV
Luminary Alumni
Luminary Alumni
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.