cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
seadude
Memorable Member
Memorable Member

Different Data Sources, Same DropDown/ComboBox?

Hello,
I want to do something like:

If(varXYZ, SharepointList.ColumnName, [“different”, “data”, “shape”] )

For DropDowns and ComboBoxes. Is there a way to combine different data shapes under the same DD/CBX controls like this?

Thank you
2 REPLIES 2
RandyHayes
Super User
Super User

@seadude 

Sure...you just need to have common signatures with the data.

So, in this case that you stated, your table in the else part of your If statement will have a signature of "Value", so you need to shape the true part of the If to equal that...like so:

 

If(varXYZ, 
   RenameColumns(
            ShowColumns(SharepointList, "ColumnName"),
            "Value"), 
   [“different”, “data”, “shape”] 
)

In this case, the ShowColumn will return a table of "ColumnName", we then rename it to "Value" as that is the result of the manual table.

You could do it the other way around as well...put the rename columns around the manual table and rename the "Value" column to "ColumnName".

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

Hi @seadude was the above reply helpful? 

 

@Anonymous 

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,133)