I have a PowerApp that shows metrics for work completed. I am currently using the following to show distinct work values (workCat) and then sorting on results, and this works.
Sort(
Distinct(
'DataSource',
workCat.Value
).Result,
Result
)
The problem is, I also see workCat records that are blank (I have a radiomenu that allows to choose by month). I would like to still show the distinct workCat, but only when CountRows(Filter(DataSource, month = viewMonth)) > 0. So if there was no workCat for the chosen month, that month would not show up in the gallery.
An example would be that if trickethelp (workCat) was zero for the month of February, then it would not show up when I select February in the radiomenu.