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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Convert Text to usable...
Power Apps
Answered

Convert Text to usable Expression?

(0) ShareShare
ReportReport
Posted on by 4

Hi, I'm building an app where there's a dynamic component but I believe I can only achieve this by converting text into an expression. 

 

A simplified example is this:

I have a Gallery linked to a Collection (with Category, Field, Type, e.g. Collection.Category, Collection.Field, Collection.Type) > TextInput control > Default

 

In the 'Default' field I would normally just type in:

 

 

First(PowerBIIntegration.Data).PropertyName

 

 

With this, the Default text for this TextInput control will be something like "ABC Company", but since I am making it dynamic (based on some user selections prior) I instead was thinking of using this:

 

 

Concatenate("First(PowerBIIntegration.Data).",ThisItem.Field)

 

 

In this case, ThisItem.Field = PropertyName however when I tested this out, the Default text for this TextInput control ended up being "First(PowerBIIntegration.Data).PropertyName" which is the expression I want but the control is treating it as text. 

 

Is there a way to then convert this outputted text from the Concatenate function into a usable expression?

 

I've attached a screen shot in case that's useful.

SCR-20231203-mcho.png
Categories:
I have the same question (0)
  • Verified answer
    DavidZoon Profile Picture
    738 Most Valuable Professional on at

    Hello @Wesssso ,

     

    It's impossible to convert a text string into a PoweFx function

  • Wesssso Profile Picture
    4 on at

    Ahh bugger that's unfortunate. Thank you for your input. 

     

    Would you happen to know if there's another way to implement what I'm trying to do (assuming you're able to figure out based on my post/screen shot)?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard