hi, Is there any way to display empty table instead of below message("The query returned no rows)?

i have a query. if no yellow and red records then it wii display a empty result instead of "the query returned no rows"

my expected output if no records are there see below image

is there any possible way?
can any one help us?