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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
priyarane
Specialist
Specialist

Not excluding Negative values

Hi Community,

What is the wrong in below expression which is not excluding nagative values. I want negative values should be exclude with the help of(LEV_NETTING_18={"=sum(EAD)-sum(COLL_AMOUNT)>0"}), but it is not doing.

Sum({<%YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'},LEV_NETTING_18={"=sum(EAD)-sum(COLL_AMOUNT)>0"}>} EBD) -
Sum({<%YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'},LEV_NETTING_18={
"=sum(EAD)-sum(COLL_AMOUNT)>0"}>} COLL_AMOUNT)

Can some one pls suggest

-Priya

Labels (1)
6 Replies
kaushiknsolanki
MVP
MVP

Hi,  Try this

Sum({<%YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'},LEV_NETTING_18={"=(sum(EAD)-sum(COLL_AMOUNT))>0"}>} EBD) -

Sum({<%YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'},LEV_NETTING_18={"=(sum(EAD)-sum(COLL_AMOUNT))>0"}>} COLL_AMOUNT)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
MK_QSL
MVP
MVP

May be this...

Sum(

  {<

  %YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'},

  LEV_NETTING_18={"=(sum({<%YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'}>}EAD)-sum({<%YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'}>}COLL_AMOUNT))>0"}

  >}

EBD)

-

Sum(

  {<

  %YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'},

  LEV_NETTING_18={"=(sum({<%YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'}>}EAD)-sum({<%YearMonthID={'>=$(=max(%CurrentYearMonthID)-2)<=$(=max(%CurrentYearMonthID))'}>}COLL_AMOUNT))>0"}

  >}

COLL_AMOUNT)

priyarane
Specialist
Specialist
Author

Not working

priyarane
Specialist
Specialist
Author

Not working

MK_QSL
MVP
MVP

What is the dimension(s) you have in this chart/table?

priyarane
Specialist
Specialist
Author

%YearMonthID - dim, %CurrentYearMonthID - selection