Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
stabben23
Partner - Master
Partner - Master

Change Background color on Rank

Hi,

is it possible to change the background color that depends on the Rank Value.

In my example I have 9 account and I want to show them in separate textobject. The textbox included '1050' should in this case be green. Is it possible for the textobject to know about the dimension outside the object it self? The expression is sum({$<Account={'50'}>}Value)

//Staffan2013-12-20_0752.png

21 Replies
stabben23
Partner - Master
Partner - Master
Author

2013-12-20_1029.png

stabben23
Partner - Master
Partner - Master
Author

No, I have 10 texobject.

stabben23
Partner - Master
Partner - Master
Author

One of this textbox shall be green, the other ones red.

tresesco
MVP
MVP

Staffan,

I have not got yet the logic of yours; how do you get the values account wise in text boxes if it is not hardcoded?

stabben23
Partner - Master
Partner - Master
Author

Hi tresesco,

You are right about that, the values is hardcoded, but that is not the case here. I have

sum({$< Account ={'10'}>}Value) for ex in the expression for textbox with value from Account 10.

The case here is to get the textbox with the highest value to change color. And I try to do that with backgroudcolor.

tresesco
MVP
MVP

This?

=If( Aggr(Rank(Sum(Value)), Months) =1, lightgreen(), red())

stabben23
Partner - Master
Partner - Master
Author

No, works in tables but not in the textobjects, all went red.

stabben23
Partner - Master
Partner - Master
Author

Here is the file tresesco

tresesco
MVP
MVP

PFA

stabben23
Partner - Master
Partner - Master
Author

tresesco, this is absolutly a possible solution and maybe the best. I dident "se" that I have to hardcode the Account inside the textobjects backgroundcolor. Do you think there is a way to NOT use the Account No in the expression?

Thanks!

//Staffan