Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

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


1 Reply
Valued Contributor II

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

my qvw

Community Browser