I have a raster image that contains a different value and the polygons over the raster's (attached below). Is it possible to calculate the percentage of different cells inside the polygon i.e., 20% cells have x value, 80% have y values. If I use zonal histograms they give me no of cells of the same value i.e., 200 cells of histogram 1. 800 cells of histogram 2 and blah blah .....etc but I want in percentage, not in numbers.
Is it possible to get this percentage in QGIS?