Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
pranubitla
Contributor II
Contributor II

Color code Expression issue

Dear Experts, could any one help with my attached script error. all i am trying to do apply color coading based on percentage  levels for
"Early arrears" and  "late arrears" ,


Details: Straight table dimention is "Arrearsprofile" , expression is sum(Current balance)
Backend script Dimension caluculated like this
  IF (ArrearsBand > 0 AND ArrearsBand <=3 ,'Early Arrears',
    IF (ArrearsBand >3 ,'Late Arrears',)) AS   'ArrearsProfile',  

12 Replies
Anil_Babu_Samineni

It's tricky to monitor in image, Can you share the expression on wall.

Updated:

IF (ArrearsBand > 0 AND ArrearsBand <=3 ,'Early Arrears',

    IF (ArrearsBand >3 ,'Late Arrears') AS   'ArrearsProfile', 


Then use Dim as ArrearsProfile

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
el_aprendiz111
Specialist
Specialist

hi,

par.png

pranubitla
Contributor II
Contributor II
Author

=IF(ArrearsProfile = 'Early Arrears' AND (Sum(CurrentBalance))<.01,  RGB(16,163,41),
IF((ArrearsProfile = 'Early Arrears' AND (Sum(CurrentBalance))>.01  AND (ArrearsProfile = 'Early Arrears' AND (Sum(CurrentBalance)) <= .02,  RGB(255,255,0),
IF(ArrearsProfile = 'Early Arrears' AND (Sum(CurrentBalance))>.02  AND  (ArrearsProfile = 'Early Arrears' AND (Sum(CurrentBalance))<=.03,  RGB(255,140,0), RGB(254,51,56))
,
IF
(ArrearsProfile = 'Late Arrears' AND Sum(CurrentBalance)<.02, RGB(16,163,41),
IF(ArrearsProfile = 'Late Arrears' AND Sum(CurrentBalance)>.02 AND IF(ArrearsProfile = 'Late Arrears' AND Sum(CurrentBalance)<=.04, RGB(255,255,0))
IF(ArrearsProfile = 'Late Arrears' AND Sum(CurrentBalance)>.04, AND IF(ArrearsProfile = 'Late Arrears' AND Sum(CurrentBalance)<=.06, RGB(255,140,0),RGB(254,51,56)))) 

pranubitla
Contributor II
Contributor II
Author

Hi Fer, is that a error with dimension.?

Anil_Babu_Samineni

Would you share Application for work? Does it possible to share. So glad to help

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
pranubitla
Contributor II
Contributor II
Author

Anil, Dimension is ArrearsProfile:

I would like to show the color update based on percentage level on the straight table. , the above expression not getting right. please suggest.

pranubitla
Contributor II
Contributor II
Author

Colorcode2.JPG

Anil_Babu_Samineni

Try like this, I don't know what was the expression you had tried

If([Arrears Balance %]<=3, Red(), If([Arrears Balance %]>=4 and [Arrears Balance %]<=50, Green(), Yellow()))

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
vinieme12
Champion III
Champion III

MODIFIED, you only need as below

=IF(ArrearsProfile = 'Early Arrears',

  If(Sum(CurrentBalance)<.01,  RGB(16,163,41),

   IF(Sum(CurrentBalance) <= .02,  RGB(255,255,0),

   IF( Sum(CurrentBalance)<=.03,  RGB(255,140,0),RGB(254,51,56))))

,

IF(ArrearsProfile = 'Late Arrears',

  if(Sum(CurrentBalance)<.02, RGB(16,163,41),

   IF(Sum(CurrentBalance)<=.04, RGB(255,255,0),

    IF(Sum(CurrentBalance)<=.06, RGB(255,140,0),RGB(254,51,56))))))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.