I am trying to get the year from a date in dataverse. Then compare that year to the text dropdown I have for the years to be able to filter the list. For some reason, the line in RED is giving me issues (probably because I don't know what I am doing)



No Idea what I am doing wrong. I feel like its me not understanding how a date gets converted to a number or text that I can use to compare with the text from the dropdown.
SortByColumns(
If(Text(DropdownPPYear.Selected.Value) = "All",
Filter(
'ITCosting PrePaid Schedules',
PmtMonthDate >= DateAdd(Now(),1, Years) &&
VendorSearchInput.Text in Vendor
),
Filter(
'ITCosting PrePaid Schedules',
Text(Value(Year(PmtMonthDate))), >= Value(DropdownPPYear.Selected.Value) &&
VendorSearchInput.Text in Vendor
)
),
"crd83_pmtmonthdate",
SortOrder.Ascending
)
