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

Background color for an expression in a straighttable

Hi Guys,


IF(Sum(DeliveryQuantity/[ST/KAR1])/ sum(OrderQuantity/[ST/KAR]) < 0.96, RGB(250,0,0)
,
IF(Sum(DeliveryQuantity/[ST/KAR1])/ sum(OrderQuantity/[ST/KAR]) >= 0.96 and Sum(DeliveryQuantity/[ST/KAR1])/ sum(OrderQuantity/[ST/KAR]) <= 0.985, RGB(250,150,0)
,
IF(Sum(DeliveryQuantity/[ST/KAR1])/ sum(OrderQuantity/[ST/KAR]) > 0.985 and Sum(DeliveryQuantity/[ST/KAR1])/ sum(OrderQuantity/[ST/KAR]) <= 1, RGB(0,150,0)
,
Null()
)
)
)


I have this code in a straighttable expression under Background color,

I wonder why 0.96 is still Red instead of Orange.

Any ideas?

Thanks

Sravan

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Sravan

Is it possible that the value you see as displayed as 0.96 is actually something like 0.959? Your expression would colour that red.

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

5 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Sravan

Is it possible that the value you see as displayed as 0.96 is actually something like 0.959? Your expression would colour that red.

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Hi Jonathan,

I found out exactly that. sometimes eyes dont see small things:-)

Thanks

sravan

Not applicable
Author

Hi Jonathan,

one more Q. How can I correct the Sum here in the expression service Level%? The 10,978,6 is not correct.

Regards

Sravan

jonathandienst
Partner - Champion III
Partner - Champion III

Sravan

This is a new question and should go in a new post - that way it might be able to help others with the same problem.

Anyway, it looks like you have sum of rows option selected as the Total Mode. Change to Expression Total, which is usually the correct one for %.

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

HI Jonathan,

Thanks for your Answer. Apologies for starting in the same thread. Nexttime I will take care of Opening a new post.


Thanks again.
Sravan