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: 
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