Perspective fill in table with values and styles

The generally recommended approach is to retrieve your data at the top level of the binding (via query, HTTP binding, whatever) and then use a script transform - you can loop through the result rows and add a style key as appropriate. Take a look at this thread for some inspiration; it's a bit more complicated than you might need (supporting per-column cell styling) but should be an inspiration: