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 / Using If and IsBlank i...
Power Apps
Answered

Using If and IsBlank in a gallery label

(0) ShareShare
ReportReport
Posted on by 44

Hello guys

 

I'm building a normal gallery for my app but there is a label that I need to show the text based on if a field have data or not.

For this I'm using this expresion:

 

If(IsBlank(ThisItem.'New_owner'),ThisItem.'System Owner',ThisItem.'New_owner')

What I'm trying to achieve is that if the New_owner field is blank them bring me the text in the System Owmner field, if not, take the text from New_owner.

 

However, powerapps does not allow me to do this because it says "invalid argument type (text). Expecting a record value instead).

 

thanks for the help.

Categories:
I have the same question (0)
  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @dev85 Where does the Data come from? What field type is "New_owner" and "System Owner"? Is it a TextField or a person field? (Assuming you are using SharePoint)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @dev85 

    Assuming it is a person column you are working with...

    Please consider changing your Formula to the following:

    Coalesce(
     ThisItem.'New_owner'.DisplayName,
     ThisItem.'System Owner'.DisplayName
    )

    Your trouble is that you are trying to display a record in a text property...you need to specify the column you want.  In the above, DisplayName was chosen.

     

    I hope this is helpful for you.

  • dev85 Profile Picture
    44 on at

    You are correct, the info is coming from a sharepoint list. The new_owner field is a type person and the system_owner is a type text.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @dev85 

    If System Owner is of type text, then change your formula to:

    Coalesce(
     ThisItem.'New_owner'.DisplayName,
     ThisItem.'System Owner'
    )

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard