John (Yiannis) Toutountzoglou
asked on
Matrix Background Color
Common Question But i can not understand what is going on!!
in My Matrix The Value TextBox is a date Field=FORMAT(MAX(Fields!Expr1.Va lue),"dd-M M-yyyy")
What i want to do is
1.when the value ="" then Color White
2.When Value Less than today Color Red
3.10 Days Before today Yellow..
Finnaly When Value>=Today Color Green
SO far ..
The Result Of my code is that there are no Greens Even if i have Values >today and i have yellows without any Values in Range
in My Matrix The Value TextBox is a date Field=FORMAT(MAX(Fields!Expr1.Va
What i want to do is
1.when the value ="" then Color White
2.When Value Less than today Color Red
3.10 Days Before today Yellow..
Finnaly When Value>=Today Color Green
SO far ..
The Result Of my code is that there are no Greens Even if i have Values >today and i have yellows without any Values in Range
=IIF(FORMAT(MAX(Fields!Expr1.Value),"dd-MM-yyyy") = "","White",
IIF(
FORMAT(MAX(Fields!Expr1.Value),"dd-MM-yyyy")<Format(Today,"dd-MM-yyyy"),"Red",
IIF(
FORMAT(MAX(Fields!Expr1.Value),"dd-MM-yyyy")<Format(DateAdd("d",-10,today),"dd-MM-yyyy"),"Yellow",
"Green"
)
)
)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much Kaufmed
NP. Glad to help :)
ASKER
And i Replace Is Not with Is
Open in new window