Here is my actual example.
My pulldown drives a label value:
SelectedDiscipline.Text:
If(Dropdown1.Selected.Value="Operations Review","Oper_x0020_Appvl",
If(Dropdown1.Selected.Value="Purchasing Review","Purch_x0020_Appvl",
If(Dropdown1.Selected.Value="Quality Review","Quality_x0020_Appvl")))
Here is the long form of my Items statement:
If(Dropdown1.Selected.Value="Purchasing Review",
If(ShowCompleted_Box_1.Value=true,
If(Radio2_1.Selected.Value="Oldest First",SortByColumns(Filter('Engineering Change Notice', Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending, "Engrg_x0020_Release_x0020_Date",Ascending),If(Radio2_1.Selected.Value="Part Number",SortByColumns(Filter('Engineering Change Notice', Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), "Purch_x0020_Appvl",Ascending,"Part_x0020_Number",Ascending))),
If(Radio2_1.Selected.Value="Oldest First",SortByColumns(Filter('Engineering Change Notice', Purch_x0020_Appvl=false And Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending, "Engrg_x0020_Release_x0020_Date",Ascending),If(Radio2_1.Selected.Value="Part Number",SortByColumns(Filter('Engineering Change Notice', Purch_x0020_Appvl=false And Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending,"Part_x0020_Number",Ascending)))),
If(Dropdown1.Selected.Value="Quality Review",
If(ShowCompleted_Box_1.Value=true,
If(Radio2_1.Selected.Value="Oldest First",SortByColumns(Filter('Engineering Change Notice', Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending, "Engrg_x0020_Release_x0020_Date",Ascending),If(Radio2_1.Selected.Value="Part Number",SortByColumns(Filter('Engineering Change Notice', Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending,"Part_x0020_Number",Ascending))),
If(Radio2_1.Selected.Value="Oldest First",SortByColumns(Filter('Engineering Change Notice', Quality_x0020_Appvl=false And Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending, "Engrg_x0020_Release_x0020_Date",Ascending),If(Radio2_1.Selected.Value="Part Number",SortByColumns(Filter('Engineering Change Notice', Quality_x0020_Appvl=false And Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending,"Part_x0020_Number",Ascending)))),
If(Dropdown1.Selected.Value="Operations Review",
If(ShowCompleted_Box_1.Value=true,
If(Radio2_1.Selected.Value="Oldest First",SortByColumns(Filter('Engineering Change Notice', Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending, "Engrg_x0020_Release_x0020_Date",Ascending),If(Radio2_1.Selected.Value="Part Number",SortByColumns(Filter('Engineering Change Notice', Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending,"Part_x0020_Number",Ascending))),
If(Radio2_1.Selected.Value="Oldest First",SortByColumns(Filter('Engineering Change Notice', Oper_x0020_Appvl=false And Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending, "Engrg_x0020_Release_x0020_Date",Ascending),If(Radio2_1.Selected.Value="Part Number",SortByColumns(Filter('Engineering Change Notice', Oper_x0020_Appvl=false And Value(ECN_x0020_Status_x0020_Powerapps0)=4 And StartsWith(Part_x0020_Number,TextInput1_1.Text)), SelectedDiscipline.Text,Ascending,"Part_x0020_Number",Ascending)))))))
If I can use my dropdown to actually name the variable, I can cut my statement reduncancy, and shorten it (and others) by 2/3. You can use Selected_Discipline. Text for SortByColumns sort criteria, which is great. I need to take it another step and use the .Text for variable/column names. The variable names in RED above are the ones I want to replace with the text in the label.