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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis Expression

I have the following expression:

Screen Shot 2016-05-01 at 11.22.05.png

I get the following error message:

Screen Shot 2016-05-01 at 11.22.51.png

What could be wrong with the expression?

1 Solution

Accepted Solutions
sunny_talwar

I think you have extra parenthesis in your set analysis

Try this:

=Num(Sum({<MonthID = {"<=$(=Max(MonthID))"}>}, Year = {$(=Max(Year))}, Quarter =, Month= >} Amount))


Capture.PNG

View solution in original post

5 Replies
sunny_talwar

I think you have extra parenthesis in your set analysis

Try this:

=Num(Sum({<MonthID = {"<=$(=Max(MonthID))"}>}, Year = {$(=Max(Year))}, Quarter =, Month= >} Amount))


Capture.PNG

jduenyas
Specialist
Specialist

Yap. That is correct. Extra paren.

Anonymous
Not applicable
Author

Thanks Sunny

I get the following error message with your suggestion:

Screen Shot 2016-05-03 at 03.25.28.png

Anonymous
Not applicable
Author

Hi Sunny

Removing the extra circled symbols works.

sunny_talwar

This time I added an extra parenthesis. I fixed it in the above expression also:

=Num(Sum({<MonthID = {"<=$(=Max(MonthID))"}>}, Year = {$(=Max(Year))}, Quarter =, Month= >} Amount))