Since a good example is better than a lot of text
TableStyleTransform.zip (8.6 KB)
I use a dataset in the custom props of the table component for this example but you can use it with a named query also (Just make sure that the return format is set to Dataset)
You will need to change also the name of the column where you want to do the check for the style definition (Yellow highlight).
in the zip file i've include the view and styles used.
Hope this help
Fyi: if you use this structure with column definition using a viewPath make sure the render is set to auto. Otherwise the cell value will not be send to the render view.
Regards