Skip to main content

Notifications

Community site session details

Community site session details

Session Id : v+2+W/x/rGXaEyLM/adc2O
Power Apps - Building Power Apps
Answered

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

Like (0) ShareShare
ReportReport
Posted on 5 Mar 2023 15:14:30 by 142

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.

  • LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on 05 Mar 2023 at 16:49:51
    Re: ThisItem.Id = This formula uses scope, which is not presently supported for evaluation.

    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!

  • Sohan Profile Picture
    142 on 05 Mar 2023 at 16:10:55
    Re: ThisItem.Id = This formula uses scope, which is not presently supported for evaluation.

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

    Sohan014_0-1678032643634.png

     

  • Verified answer
    LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on 05 Mar 2023 at 15:52:52
    Re: ThisItem.Id = This formula uses scope, which is not presently supported for evaluation.

    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!

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard
Loading complete