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 / How to get text from a...
Power Apps
Unanswered

How to get text from a column in the lookup function?

(1) ShareShare
ReportReport
Posted on by 49

 

LookUp(
 'tbl_Level 4 Names' As Inner,
 Inner.'Level 4' = colMerged.'Level 4',
 Inner.'Level 4 Name'
 )

 

I'm trying to compare the value of the level 4 column in tbl_Level 4 Names to the Level 4 column in colMerged? I get an error saying These types cannot be compared. Text, Table. Which makes sense, but how do I get the text out of the colMerged.'Level 4' 

Categories:
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi

    Try this

    LookUp( 'tbl_Level 4 Names' As Inner, Inner.'Level 4' = colMerged.'Level 4', First(Inner).'Level 4 Name' )

    Or

    LookUp(
    'tbl_Level 4 Names' As Inner,
    Inner.'Level 4' = First(colMerged).'Level 4',
    Inner.'Level 4 Name'
    )

    Solved: Re: Convert table to text - Power Platform Community (microsoft.com)

    Thanks!

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • mbrown1 Profile Picture
    49 on at

    That does work for the first item in the list, but there's a list of items so It ends up saying the first level 4 name is the same across all items. Would there be a way around this?

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Try this

    LookUp( 'tbl_Level 4 Names' As Inner, Inner.'Level 4' = FirstN(colMerged, 1).'Level 4', Inner.'Level 4 Name' )

  • mbrown1 Profile Picture
    49 on at

    Gives an error saying Cannot compare the two types. Text,Table. I assume the able FirstN(colMerged, 1) just has 1 record, is there a way to just pull out the text from 1 column?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard