Hi team,
I have two lists namely cow master and calf. I am trying to create a gallery based on breed type, it shows the number of male calf, female calf and alive cows and its total.
I am writing the formula as below.
ClearCollect(varTotalAnimalGallery, GroupBy(AddColumns(Filter(AddColumns(SSS_calf,"cow_details",LookUp(SSS_CowMaster,cow_breed.Value = SSS_calf[@calf_breed])),calf_alive = true),"BreedType",calf_breed.Value,"CowCount",cow_details.cow_gender.Value),"BreedType","BreedGroup")
both cow_breed and calf_breed is a choice column. However when i write the formula, i am getting incompatible type to compare.
I am not why it is showing the error.

Gallery view :
