Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Correct the expr

If(GetSelectedCount(Quarter)=0,'$(=varCurQtr)',GetFieldSelections(Quarter))

getting expected ')' error..

15 Replies
tamilarasu
Champion
Champion

Try,


If(GetSelectedCount(Quarter)=0,'$(varCurQtr)',GetFieldSelections(Quarter))

Chanty4u
MVP
MVP

Remove the  "=' symbol  before the variable and try

If(GetSelectedCount(Quarter)=0,'$(varCurQtr)',GetFieldSelections(Quarter))

Not applicable
Author

Thanks for the reply, it was showing same error again. It was not resolved.

Not applicable
Author

same error

Chanty4u
MVP
MVP

try

If(GetSelectedCount(Quarter)=0,'$(varCurQtr)',  and GetFieldSelections(Quarter))

Chanty4u
MVP
MVP

remove quotes to variable and try

If(GetSelectedCount(Quarter)=0,$(varCurQtr),GetFieldSelections(Quarter))

tamilarasu
Champion
Champion

Try as well,

If(GetSelectedCount(Quarter)=0,$(varCurQtr),GetFieldSelections(Quarter))


or


If(GetSelectedCount(Quarter)=0,varCurQtr,GetFieldSelections(Quarter))

Chanty4u
MVP
MVP

try this too

If(GetSelectedCount(Quarter)=0,=$(varCurQtr),GetFieldSelections(Quarter))

clondono
Creator III
Creator III

Hi Subba,

Try this:

=if=If(GetSelectedCount(Quarter)=0,$(varCurQtr),GetFieldSelections(Quarter))

Regards,

Carlos