Hi @VineethKN ,
Based on the formula that you provided, I think there is something wrong with it.
I have made a test on my side, please consider modify your formula as below:
SortByColumns(
Filter(
RoutingMethod,
RecordId in Filter(RoutingLink, GBERecordId = dd_SbgGbe.Selected.RecordID).RoutingRecordId,
Text(ActiveStatus) = "true",
If( /* <-- Modify your If function as here: */
OriginCountry = DestCountry,
RoutingType = "Both" || RoutingType= "Domestic",
RoutingType="Both" || RoutingType = "International"
)
),
"RoutinfCode",
Descending
)
Please consider take a try with above formula, then check if the issue is solved.
More details about Filter function and If function in PowerApps, please check the following article:
Filter function
If function
Best regards,