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

Announcements
Discover how organizations are unlocking new revenue streams: Watch 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

6 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/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