Hello,
I'm sorting gallery by value calculated in the gallery this way:
Sort(
AddColumns(
DataSource,
"SortField",
DateDiff(Last(Filter(DataSource, PersonColumn.Email = Person.Email)).Created, Today()) - number_column
),SortField, Descending)
To select items in the gallery I'm using usual "Set(varRecord, ThisItem)"
Everything works fine until I sort gallery this way. After that I'm getting "incompatible types error" everywhere where I used the varRecord. I suspect this is due to schema difference between gallery and record?
Is there any way to filter the gallery with calculated values that would not cause this error?
Thank you very much in advance.