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 / Gallery text return tw...
Power Apps
Suggested Answer

Gallery text return two values with lookup

(1) ShareShare
ReportReport
Posted on by 4
I have an issue using lookup to translate from data source file
 
LookUp(Translation,key="item" And Title=setLang,Value)
 
the issue is that the lookup return with two value while there is only one value in the data source file.
 
and if I use thisitem.item it only shows the correct value.
 
I am trying to translate the full page but the issue with gallery that return two values
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Can you try using the following please:
    LookUp(Translation,key="item" And Title=setLang)
    
    Or if you are trying to get a value from a specific column, you could use the following:
    LookUp(Translation,key="item" And Title=setLang).ColumnName
    
    If this doesn't work I would suggest you share how you have things up for translation and what are you trying to translate? What do you mean by translating the whole page?
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • AG-21101159-0 Profile Picture
    4 on at
    I tried both but it did not work for me
  • timl Profile Picture
    37,269 Super User 2026 Season 1 on at
    Where in your app are you calling LookUp?
     
    The property that controls the items that are shown in a gallery is the Items property. This property expects a Table and it's this formula that results in the 2 items that are shown in your gallery. Therefore can you confirm the formula that you've used here? 
  • Nandit Profile Picture
    1,568 Moderator on at
     
    Can you share how you have things up for translation and what are you trying to translate? 
     
    Kind regards,
    Nandit
  • Suggested answer
    SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at
    Pls check the following:
     
    • The issue might be due to the logical conditions (key="item" And Title=setLang).
      • LookUp(Translation, key = "item" && Title = setLang, Value)
    • Even if you expect only one value in the data source, there might be duplicate entries for the same key and Title in the Translation table.
    • If you're using this inside a Gallery and it’s returning multiple values, it may be because the Gallery context (such as ThisItem.item) is conflicting with the LookUp function.
      • LookUp(Translation, key = ThisItem.item && Title = setLang, Value)
         
    • If there are still multiple matches and you only need the first match, you can wrap the LookUp in a First() function
      • First(LookUp(Translation, key = "item" && Title = setLang, Value)).Value
         
    • Use a Label control to display the results of your LookUp function temporarily
      • Text(LookUp(Translation, key = "item" && Title = setLang, Value))
    try out ping me if you require more details.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard