Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

Calculation for Color

Hi All,

Having a little problem with a statement trying to set text color, but not working.  Need a little help.

Thanks

Round(sum({<Node3 = {'A420000000'},FISYR = {$(=$(vFisYr) - 0)},[GL Hier 1] = {[ZMR Chart of Accounts]}, YTDFlag = {1},[HighNode] = {'ZMR_SALESCOSTS2'}>} [In company code currency_HSL]) /
sum({<Node3 = {'A420000000'},FISYR = {$(=$(vFisYr) - 0)},YTDFlag = {1}, NodeIDGLAccountsName = {ZMR_GROSS.GLPCT}>} [In company code currency_HSL] * -1),0.001 >= [SL Top],RGB
(255,0,0),RGB(0,204,0)

1 Solution

Accepted Solutions
Anil_Babu_Samineni

How about this?

If(Round(sum({<Node3 = {'A420000000'},FISYR = {$(=$(vFisYr) - 0)},[GL Hier 1] = {[ZMR Chart of Accounts]}, YTDFlag = {1},[HighNode] = {'ZMR_SALESCOSTS2'}>} [In company code currency_HSL]) /
sum({<Node3 = {'A420000000'},FISYR = {$(=$(vFisYr) - 0)},YTDFlag = {1},NodeIDGLAccountsName = {ZMR_GROSS.GLPCT}>} [In company code currency_HSL] * -1),0.001) >= [SL Top],RGB
(255,0,0),RGB(0,204,0))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

How about this?

If(Round(sum({<Node3 = {'A420000000'},FISYR = {$(=$(vFisYr) - 0)},[GL Hier 1] = {[ZMR Chart of Accounts]}, YTDFlag = {1},[HighNode] = {'ZMR_SALESCOSTS2'}>} [In company code currency_HSL]) /
sum({<Node3 = {'A420000000'},FISYR = {$(=$(vFisYr) - 0)},YTDFlag = {1},NodeIDGLAccountsName = {ZMR_GROSS.GLPCT}>} [In company code currency_HSL] * -1),0.001) >= [SL Top],RGB
(255,0,0),RGB(0,204,0))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tmumaw
Specialist II
Specialist II
Author

perfect.....thanks