using dbt to manage data quality issues

Using a test within dbt, is there a clever way to test the data in a table not based on fixed value, but a value that occurs 90% of the time for example. This is to manage the data quality.