web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Setting Variables and ...
Power Apps
Answered

Setting Variables and Concatenating Values

(0) ShareShare
ReportReport
Posted on by 5,836 Moderator

This is probably going to be an either or answer so let me describe what I am doing.

 

Scenario:

 

Dropdown1 - Holiday (Data Source: SharePoint Holiday list, Single Line of Text)

Dropdown2 - Prefix (Data Source: Filtered SharePoint Descriptors list, Single Line of Text)

Dropdown3 - Suffix (Data Source: Filtered SharePoint Descriptors list, Single Line of Text)

tiSwapwith - text

 

Desired Outcome:   Concatenate the values of the the 4 listed fields to compose the 'Official' Holiday Name

 

Example: 

     Dropdown4 (Holiday) = Christmas

     Dropdown2 (prefix) = blank

     Dropdown3 (Suffix) = Holiday

     tiSwapWith = Observed

 

Outcome:  Christmas Holiday Observed

 

I have tried using Concat 4 different ways: (just the basics, not including any IF statements to exclude fields if they are blank at this point).   **Important Note:  'Value' is not an available option.

 

1.  Using one of the available options for the field

concat1.jpg

 

2.  Using a different set of available options for the field

concat2.jpg

 

3.  Trying a different set of option, but one isn't valid.

concat3.jpg

 

4.  Trying this way

concat4.jpg

 

Since I wasn't able to make this work, I thought I could set the values of these fields to variables and then use the variables in the Concat function.  

 

How can I set multiple variables with a single set command?

 

I start with Set(varHolidayName, Dropdown4.SelectedText.....    but don't know how to finish this to add (varPrefix, Dropdown2.SelectedText) and (varSuffix, Dropdown2.SelectedText

 

Once I get the basics here down I will add in the IF, IsBlank() etc. to be able set correctly concat using only the fields that have values in them.

 

All suggestions are greatly appreciated.

 

 

 

 

 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,393 Super User 2025 Season 2 on at

    Hi @JR-BejeweledOne 

    I think the main issue here is that you're missing the field name after the Selected or SelectedText properties.

    For example, if you type a dot after Selected, the Intellisense should show you the available field names and you can then select the one that's appropriate.

     

    image.png

    Hope that's of some help.

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    It's Friday!

     

    If I try to use Dropdown4.Selected.   There is no additional option such as Value or Text.  

     

    Thanks.  

  • timl Profile Picture
    36,393 Super User 2025 Season 2 on at

    Hi @JR-BejeweledOne , Hopefully, Dropdown4.Selected.Value etc should work for you...

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I had to edit that reply because that went away and just isn't there now,  not sure why it was showing for a brief time.

  • timl Profile Picture
    36,393 Super User 2025 Season 2 on at

    To diagnose this further, if you add a label and type in just Dropdown2.Selected, do you see the help panel beneath that shows the name of the available fields and values?

     

    image.png

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Yes, I do but 'Value' is not an option for Dropdown2.Selected in the Concatenate function

  • Verified answer
    JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Ok, I figured it out.  Because it's a SharePoint list data source, you have to use the field name from the list.   Dropdown2.Selected.Title

     

    Dropdown2.Selected.Value isn't an option but if you select Title it works.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard