Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
alvinford
New Contributor III

Set Analysis

Hi All,

I am using the following expression. The results are correct.

Sum($(=Only(AreaThisYear)))

I want to add some conditions and add it to the set analysis expression as below but not getting the desired results.

=if($(vTodaysYear)=Right(vSelectStartDate,4) AND $(vTodaysYear)=Right(vSelectEndDate,4) ,

sum({<AreaMonthYear = {">=$(vSelectStartDateMY)<=$(vSelectEndDateMY)"},Year={'$(vTodaysFYear)'}>} $(=Only(AreaThisYear))))

Kindly suggest the solution. Can we use Sum along with only in the set analysis.

Regards,

Alvin

Community Browser