Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

pROBLEM WITH SET ANALYSIS SYNTAX

Dear all

Could someone kindly help me rewrite the following syntax for the expression below as it is getting an error..  I am unsure what I have done wrong

The variable golds the maximum MonthYear

=Count({<MonthYear ={$(v_Max_MonthYear)}>}OP_Atd_ID)

Kind Regards

Helen

1 Solution

Accepted Solutions
sunny_talwar

What is the format for MonthYear? Does v_Max_MonthYear gives you the output in correct format?

=Count({<MonthYear ={"$(=$(v_Max_MonthYear))"}>}OP_Atd_ID)

or

=Count({<MonthYear ={"$(=v_Max_MonthYear)"}>}OP_Atd_ID)

View solution in original post

3 Replies
MK_QSL
MVP
MVP

=Count({<MonthYear ={'$(v_Max_MonthYear)'}>}OP_Atd_ID)


What is the result of v_Max_MonthYear?

Also the format of MonthYear and v_Max_MonthYear must be same.

sunny_talwar

What is the format for MonthYear? Does v_Max_MonthYear gives you the output in correct format?

=Count({<MonthYear ={"$(=$(v_Max_MonthYear))"}>}OP_Atd_ID)

or

=Count({<MonthYear ={"$(=v_Max_MonthYear)"}>}OP_Atd_ID)

helen_pip
Creator III
Creator III
Author

Thank you Sunny

Your formula is working for me.  I also ensured that the variable and Field are in the same format

Kind Regards

Helen