When comparing "Label.Text" from a gallery with List column in "LookUp" function it gives error Incompatible Types for Comparison. These types can't be compared:Table, Text
Formula:
Collect(
HSEScoreValues,
{
Project_Name: Value(DataCardValue1.Selected.Value),
Survey_Date: DataCardValue2.SelectedDate,
Category:LookUp('HSE-CategoryQuestion','HSE-CategoryQuestion'.Question=QuestionLabel.Text,'HSE-CategoryQuestion'.Category)
}
)
In above LookUp formula:
HSE-CategoryQuestion is the list with text(choice) columns "Question" & "Category"
QuestionLabel is Text Label in Gallery connected to the list "HSE-CategoryQuestion" fetching the "Category" column values
so Error occurring here:
LookUp('HSE-CategoryQuestion','HSE-CategoryQuestion'.Question=QuestionLabel.Text,'HSE-CategoryQuestion'.Category)
'HSE-CategoryQuestion'.Question=QuestionLabel.Text

What's the work around? @RandyHayes @WarrenBelz @Pstork1 @rubin_boer @CNT @BCLS776 @zmansuri @Drrickryp @timl @Ramole @BCBuizer
Edit: I tried with
LookUp('HSE-CategoryQuestion',Question=QuestionLabel.Text,'HSE-CategoryQuestion'.Category)
It stores "Category" as Table like data in collection.... "Category" column expands to multiple rows of Category. Also Project_Name is empty (in above function Project_Name: Value(DataCardValue1.Selected.Value))

Plz guide regarding this issue!
Update: Solved with
Category: LookUp(
'HSE-CategoryQuestion',
Question = QuestionLabel.Text,
ThisItem.Category
)