Thank You rshafique!,
I was also able to get this to work based on what you did. What I needed to do was combine the values in a column in a Sharepoint list with those in an excel based list of Lookup values that acted as the choices I wanted to show on a form dropdown. But ultimately what I really wanted to combine these 2 to display on the form, because I also have an "Other" option whereupon the user can enter a custom value, if none of the values in the list represent what they need. For example;
Excel Lookup List:
MANUFACTURERS
Manufacturer_1
Manufacturer_2
Manufacturer_3
Manufacturer_4
SP LIST COLUMN VALUES:
Device Manufacturers
Manufacturer_1
Manufacturer_2
Manufacturer_5 <-- entered as a custom value from the user
Manufacturer_6 <-- entered as a custom value from the user
Here is the combined list I wanted on the form dropdown, so I can show the base values from the lookup, and also any new custom values entered by the user, with no duplicate values:
FORM MANUFACTURER DROPDOWN:
Manufacturer_1
Manufacturer_2
Manufacturer_3
Manufacturer_4
Manufacturer_5 <-- entered as a custom value from the user
Manufacturer_6 <-- entered as a custom value from the user
And here is how I did that based on your example:
Entered in Screen1.OnVisible --> this is a collection of base lookup values from an excel spreadsheet "Table" called "MANUFACTURER_TABLE".
ClearCollect(collection_Manufacturer, MANUFACTURER_TABLE)
Entered in Screen1.OnVisible --> this is a collection of values from a Sharepoint List (SP_TRANSACTION_LIST) column called "Device Manufacturers" where the transactions are entered from a form. If users enter a custom value, these new values should show up in the drop-down.
ClearCollect(list_Manufacturers,
Ungroup(
Table(
{list_ManufacturersOptions: Choices(SP_TRANSACTION_LIST.Device_x0020_Manufacturers)},
{list_ManufacturersOptions: ["Other"]}
),
"list_ManufacturersOptions"
));
Entered in Screen1.OnVisible --> this is a collection combining the above collections and calling the new one "tables_Manufacturers" - "list_Manufacturers" and "collection_Manufacturer", not grouped or sorted, basically just appending one table to another.
ClearCollect(tables_Manufacturers, Ungroup(Table({all_Manufacturers: list_Manufacturers},{all_Manufacturers: collection_Manufacturer}), "all_Manufacturers"));
Entered in Screen1.OnVisible --> this is a new collection based on the above collection "tables_Manufacturers" but is now only showing Distinct values in the dropdown. Keep in mind here that the Column Name in my example within my Sharepoint list is actually "Device Manufacturer", but when I tried to enter that inside "Distinct", the powerapps screen editor gave an error when I tried it and tried Device_X0020_Manufacturer. When I put in "Value" as below inside "Distinct", it worked. So be aware, when you put in the column value name like "Column Name" or COLUMN_NAME or Column_X0020_Name inside "Distinct", that actual column name may not work, especially one that has spaces in it, and you may need to put in "Value", or "Result" like below.
ClearCollect(dist_Manufacturers, Distinct(tables_Manufacturers, Value));
Thanks for the help, I search a bunched and could not find a solution that worked to combine to tables or collections together and not repeat rows, and this worked for me!