I have a source table with 2 columns:
| profit_center | year_month |
| PC_A23 | 202006 |
| PC_B43 | 202007 |
In my Power App, I have 2 objects.
1. Label with Text property set to Max(my_table, year_month) - to give me the largest/latest year_month value
2. Drop Down with Items property set to
SortByColumns(Filter(my_table,Label.Text=year_month),"profit_center") - to give me the profit center whose year_month equals to the one shown in the Label object.
The Drop Down formula gives me a yellow sign error that says "Incompatible type. We can't evaluate your formula because the values being compared in the formula aren't the same type".
I think the reason for this is because year_month is integer and I'm trying to compare it to Text value. However, I don't know how to solve this issue. I tried to convert the Label value to a text Text(Max(my_table, year_month)) but it didn't work.

Report
All responses (
Answers (