Pivot samples
Configuration
Custom mark
You can specify your own function that will define the logic of applying styles to cells with certain values.
Check documentation:
Conditional Formatting of Cells
Mark