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.
paulyeo11
Valued Contributor II

How to make my LY sTOCK display -1,534,101 ?

Hi All

I have below expression from Ruben , it return -1,534,101 when i click on Blue Button is correct :-

Sum({$<year, month, date={'<=$(=AddMonths(Max(date), -12))'}>}TOTAL Aggr(Sum({<year, month, date={'<=$(=AddMonths(Max(date), -12))'},sTOCK = {'sTOCK'}>}[Amount]), YearMonth))

But when i not select sTOCK field = sTOCK , it return -1,306,777 which is wrong , How to make it display -1,534,101 ? ( when user click organ color button )

Reason in QS my app does not allow me activated  field = sTOCK.

Paul

1 Reply
paulyeo11
Valued Contributor II

Re: How to make my LY sTOCK display -1,534,101 ?

my qvw

Community Browser