I have one dataverse table TabStat where I have one choice column TActive and another column TEmail. This choice column has two choices Vacant, Occupied
I have another table TabUp which have one column TabEmail.
I put this TabUp table in gallery and added one Label control where I want to count the number of rows in table TabStat where TEmail is matching with ThisItem.TabEmail and TActive = "Occupied"
I use below formula but I am getting "Incompatible types of comparison, OptionSetValue cannot be compared with Text" error.
CountRows(Filter(TabStat,ThisItem.TabEmail = TEmail && 'TActive (TabStat)'.Occupied = "Occupied"))
Even If I use Text to convert OptionSetValue to text, I get Delegation warning and formula doesn't work.
CountRows(Filter(TabStat,ThisItem.TabEmail = TEmail && Text('TActive (TabStat)'.Occupied) = "Occupied"))
I tried using WITH function but still error is not going.
Could anyone help, I always face issue with OPTIONSETVALUE kind of columns.