In modern controls, the "Display Fields" property of the combo box, doesn't exist.
How to define programmatically which field the user will see?
I Want "Field A" if certain condition is met and "Field B" otherwise.
My datasource is a Dataverse table (in the Items property).
You can set the Item property as below:
If(condition1,
Distinct(<Table Name>, <Field A>),
condition2,
Distinct(<Table Name>, <Field B>),
Distinct(<Table Name>, <Field C>)
)
As per your conditions, the item property and dropdown content will keep changing.