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 / ThisItem.Id = This for...
Power Apps
Answered

ThisItem.Id = This formula uses scope, which is not presently supported for evaluation.

(0) ShareShare
ReportReport
Posted on by 154

I am facing this problem many times. I try many ways to solve this problem. But, I don't know how to solve this problem. If anyone gives me a suggestion. It will be helpful for me.

Categories:
I have the same question (5)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Sohan014,

     

    The message you are receiving is not exactly an error but more of a notification that the editor cannot evaluate the line of code since it is using the scope of a gallery or form.

     

    In other words, if the text is displaying correctly - you have nothing to worry about. This notification will always appear when using scope (e.g. ThisItem) - even with very simple formulas such as ThisItem.Name. As a note: ThisItem can only be used in a Gallery or Form - which will refer to a particular row in the data set.

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Sohan Profile Picture
    154 on at

    Thanks for your response. But for this error, my data is not showing the gallery. so what should I do?

    Sohan014_0-1678032643634.png

     

  • LaurensM Profile Picture
    12,516 Moderator on at

    If the code within the screenshot is written in the Text property of the label, it should work. I unfortunately was unable to recreate the issue on my end.

     

    However with Explicit Column selection turned on (will be by default), it might be beneficial to check whether (1) ThisItem.rep_id actually has a value in your gallery and (2) whether the Filter actually returns something. It might be that the Filter() is simply not retrieving values due to there being no matching values (check your data) or rep_id not having a value caused by Explicit Column selection. 

     

    Should rep_id not have a value, the only 2 workarounds I know of is:

     

    (option 1) In the Items property of your gallery, hardcode the needed columns with the ShowColumns() formula

    (option 2) Create a new label in the gallery, set it to ThisItem.rep_id and make it invisible

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Aman Anand Profile Picture
    2 on at
    Hey @LaurensM,
     
    For me, it is not showing the current selected item in the gallery as well and it states that control expected a table value. Please Help!

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